Put window position on top-right like default Gtk apps
This commit is contained in:
parent
5fa7ba487e
commit
b48ed0a1b8
|
@ -242,6 +242,9 @@ uiWindow *uiNewWindow(const char *title, int width, int height, int hasMenubar)
|
||||||
gtk_window_set_title(w->window, title);
|
gtk_window_set_title(w->window, title);
|
||||||
gtk_window_resize(w->window, width, height);
|
gtk_window_resize(w->window, width, height);
|
||||||
|
|
||||||
|
// it will put the created window on top-right instead bottom-right
|
||||||
|
gtk_window_set_type_hint(w->window, GDK_WINDOW_TYPE_HINT_MENU);
|
||||||
|
|
||||||
w->vboxWidget = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
|
w->vboxWidget = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
|
||||||
w->vboxContainer = GTK_CONTAINER(w->vboxWidget);
|
w->vboxContainer = GTK_CONTAINER(w->vboxWidget);
|
||||||
w->vbox = GTK_BOX(w->vboxWidget);
|
w->vbox = GTK_BOX(w->vboxWidget);
|
||||||
|
|
Loading…
Reference in New Issue