GNOME Bugzilla – Bug 740922
GtkWindow with GtkHeaderBar has wrong size
Last modified: 2015-08-16 12:50:56 UTC
Created attachment 291827 [details] Python example I'm trying to port my dialogs to use headerbars if gtk-dialogs-use-header is set. My problem is that using gtk_window_set_default_size and gtk_window_resize don't work correctly on dialogs if I set use_header_bar=True. * The height is wrong by 80px * The width is wrong by "MIN((width - 170px), 52px)" See the attached Python example. Tested under gnome-shell 3.14.1 with trunk.
did some more testing: * Same problem with GtkWindow and gtk_window_set_titlebar(GtkHeaderBar), so not GtkDialog specific. * Same problem under XFCE
I see the same issue for Gtk 3.14.4 using vala code. The reported width and height values of the application window appear exactly 52 pixels larger when using client side decorations. It seems a large invisible border is counted towards the window size and not just the actual contents.
*** This bug has been marked as a duplicate of bug 739174 ***