JNIEXPORT jint JNICALL Java_org_gnome_gdk_GdkWindow_gdk_1window_1get_1type_1hint ( JNIEnv* env, jclass cls, jlong _self ) { GdkWindowTypeHint result; jint _result; GdkWindow* self; // convert parameter self self = (GdkWindow*) _self; // call function result = gdk_window_get_type_hint(self); // cleanup parameter self // translate return value to JNI type _result = (jint) result; // and finally return _result; }
static gboolean screenshot_window_is_desktop (GdkWindow *window) { GdkWindow *root_window = gdk_get_default_root_window (); GdkWindowTypeHint window_type_hint; if (window == root_window) return TRUE; window_type_hint = gdk_window_get_type_hint (window); if (window_type_hint == GDK_WINDOW_TYPE_HINT_DESKTOP) return TRUE; return FALSE; }
static gboolean gtkutil_esc_destroy (GtkWidget * win, GdkEventKey * key, gpointer userdata) { GtkWidget *wid; /* Destroy the window of detached utils */ if (!gtk_widget_is_toplevel (win)) { if (gdk_window_get_type_hint (gtk_widget_get_window (win)) == GDK_WINDOW_TYPE_HINT_DIALOG) wid = gtk_widget_get_parent (win); else return FALSE; } else wid = win; if (key->keyval == GDK_Escape) gtk_widget_destroy (wid); return FALSE; }
static VALUE gdkwin_get_type_hint(VALUE self) { return GENUM2RVAL(gdk_window_get_type_hint(_SELF(self)), GDK_TYPE_WINDOW_TYPE_HINT); }
static VALUE rg_type_hint(VALUE self) { return GDKWINDOWHINT2RVAL(gdk_window_get_type_hint(_SELF(self))); }