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
deiconify_window(GtkWidget *widget, gpointer data)
{
	if (GTK_IS_WIDGET(data)) {
		if ((GTK_WIDGET(data))->window) {
			gdk_window_deiconify((GTK_WIDGET(data))->window);
		}
	}
}
Beispiel #3
0
static void deiconify_window_cb (G_GNUC_UNUSED GtkWidget *widget, gpointer data)
{
    DEBUG_FUNCTION ("deiconify_window_cb");
    DEBUG_ASSERT (data != NULL);

    if (GTK_IS_WIDGET(data))
        if (gtk_widget_get_window ((GTK_WIDGET (data))))
            gdk_window_deiconify (gtk_widget_get_window ((GTK_WIDGET (data))));
}
Beispiel #4
0
JNIEXPORT void JNICALL
Java_org_gnome_gdk_GdkWindow_gdk_1window_1deiconify
(
	JNIEnv* env,
	jclass cls,
	jlong _self
)
{
	GdkWindow* self;

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

	// call function
	gdk_window_deiconify(self);

	// cleanup parameter self
}
Beispiel #5
0
static VALUE
gdkwin_deiconify(VALUE self)
{
    gdk_window_deiconify(_SELF(self));
    return self;
}