After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 740922 - GtkWindow with GtkHeaderBar has wrong size
GtkWindow with GtkHeaderBar has wrong size
Status: RESOLVED DUPLICATE of bug 739174
Product: gtk+
Classification: Platform
Component: .General
3.13.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2014-11-30 13:50 UTC by Christoph Reiter (lazka)
Modified: 2015-08-16 12:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Python example (583 bytes, text/plain)
2014-11-30 13:50 UTC, Christoph Reiter (lazka)
Details

Description Christoph Reiter (lazka) 2014-11-30 13:50:19 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.
Comment 1 Christoph Reiter (lazka) 2014-11-30 14:22:45 UTC
did some more testing:

* Same problem with GtkWindow and gtk_window_set_titlebar(GtkHeaderBar), so not GtkDialog specific.
* Same problem under XFCE
Comment 2 Stephen Brandt 2015-06-20 15:46:36 UTC
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.
Comment 3 Matthias Clasen 2015-08-16 12:50:56 UTC

*** This bug has been marked as a duplicate of bug 739174 ***