Beispiel #1
0
static void term_app_request(VteTerminal *term, gpointer user_data) {
    int event = GPOINTER_TO_INT(user_data);

    if (event == TERM_ICONIFY_WINDOW) {
        gdk_window_iconify(GTK_WIDGET(mainwindow)->window);
    }
    if (event == TERM_DEICONIFY_WINDOW) {
        gdk_window_deiconify(GTK_WIDGET(mainwindow)->window);
    }
    if (event == TERM_RAISE_WINDOW) {
        gdk_window_raise(GTK_WIDGET(mainwindow)->window);
    }
    if (event == TERM_LOWER_WINDOW) {
        gdk_window_lower(GTK_WIDGET(mainwindow)->window);
    }
    if (event == TERM_MAXIMIZE_WINDOW) {
        gdk_window_maximize(GTK_WIDGET(mainwindow)->window);
    }
    if (event == TERM_RESTORE_WINDOW) {
        gdk_window_unmaximize(GTK_WIDGET(mainwindow)->window);
    }
    if (event == TERM_REFRESH_WINDOW) {
        GdkRectangle rect;
        rect.x = rect.y = 0;
        rect.width = mainwindow->allocation.width;
        rect.height = mainwindow->allocation.height;
        gdk_window_invalidate_rect(GTK_WIDGET(mainwindow)->window, &rect, TRUE);
    }
}
Beispiel #2
0
static void
maximize_window(GtkWidget *widget, gpointer data)
{
	if (GTK_IS_WIDGET(data)) {
		if ((GTK_WIDGET(data))->window) {
			gdk_window_maximize((GTK_WIDGET(data))->window);
		}
	}
}
Beispiel #3
0
static void maximize_window_cb (G_GNUC_UNUSED GtkWidget *widget, gpointer data)
{
    DEBUG_FUNCTION ("maximize_window_cb");
    DEBUG_ASSERT (data != NULL);

    if (GTK_IS_WIDGET(data))
        if (gtk_widget_get_window (GTK_WIDGET(data)))
            gdk_window_maximize (gtk_widget_get_window (GTK_WIDGET(data)));
}
Beispiel #4
0
static void
maximize_window(GtkWidget *widget, gpointer data)
{
	GdkWindow *window;

	if (GTK_IS_WIDGET(data)) {
		window = gtk_widget_get_window(GTK_WIDGET(data));
		if (window) {
			gdk_window_maximize(window);
		}
	}
}
Beispiel #5
0
JNIEXPORT void JNICALL
Java_org_gnome_gdk_GdkWindow_gdk_1window_1maximize
(
	JNIEnv* env,
	jclass cls,
	jlong _self
)
{
	GdkWindow* self;

	// convert parameter self
	self = (GdkWindow*) _self;

	// call function
	gdk_window_maximize(self);

	// cleanup parameter self
}
Beispiel #6
0
static VALUE
gdkwin_maximize(VALUE self)
{
    gdk_window_maximize(_SELF(self));
    return self;
}