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 705537 - Move to client side decoration
Move to client side decoration
Status: RESOLVED FIXED
Product: gnome-maps
Classification: Applications
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-maps-maint
gnome-maps-maint
Depends on:
Blocks:
 
 
Reported: 2013-08-06 01:10 UTC by Mattias Bengtsson
Modified: 2013-08-07 16:01 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add missing xml-declaration (683 bytes, patch)
2013-08-06 01:10 UTC, Mattias Bengtsson
committed Details | Review
Reindent xml (3.92 KB, patch)
2013-08-06 01:10 UTC, Mattias Bengtsson
committed Details | Review
MainWindow: move to CSD (5.99 KB, patch)
2013-08-06 01:10 UTC, Mattias Bengtsson
reviewed Details | Review
MainWindow: move to CSD (6.25 KB, patch)
2013-08-06 14:21 UTC, Mattias Bengtsson
none Details | Review
MainWindow: move to CSD (6.25 KB, patch)
2013-08-06 15:42 UTC, Mattias Bengtsson
needs-work Details | Review
MainWindow: move to CSD (6.25 KB, patch)
2013-08-06 16:02 UTC, Mattias Bengtsson
needs-work Details | Review
MainWindow: move to CSD (6.36 KB, patch)
2013-08-06 22:13 UTC, Mattias Bengtsson
committed Details | Review

Description Mattias Bengtsson 2013-08-06 01:10:33 UTC
Let's move to client side decorations as that seems to be the designers
long term goal anyway.
Comment 1 Mattias Bengtsson 2013-08-06 01:10:35 UTC
Created attachment 250911 [details] [review]
Add missing xml-declaration

Add missing xml-declaration to app-menu.ui. This is supposed to start
all xml files plus it makes emacs nxml-mode happy.
Comment 2 Mattias Bengtsson 2013-08-06 01:10:40 UTC
Created attachment 250912 [details] [review]
Reindent xml

Reindent main-window.ui to follow the rest of our xml.
Comment 3 Mattias Bengtsson 2013-08-06 01:10:47 UTC
Created attachment 250913 [details] [review]
MainWindow: move to CSD

Move maps to be client side decorated instead of relying on the window
manager doing that. This move has been made by a few other apps in GNOME
already (like devhelp) and is a goal for the future.
Comment 4 Zeeshan Ali 2013-08-06 09:29:05 UTC
Review of attachment 250911 [details] [review]:

ACK
Comment 5 Zeeshan Ali 2013-08-06 09:29:41 UTC
Review of attachment 250912 [details] [review]:

Kudos for doing this :)
Comment 6 Zeeshan Ali 2013-08-06 09:33:55 UTC
Review of attachment 250913 [details] [review]:

Its not very obvious from the .ui file changes, what exactly is happening. If you could summarize (preferably in commit log) what exactly are you changing to achieve the goal, would be nice. Also what is 'CSD'?
Comment 7 Mattias Bengtsson 2013-08-06 14:21:05 UTC
Created attachment 250973 [details] [review]
MainWindow: move to CSD

Move maps to be client side decorated (CSD), that is: Gtk+ will draw the
window decorations instead of relying on the window manager for drawing
them. This move has been made by a few other apps in GNOME already
(like devhelp) and is mandatory for making us work in the wayland
tech demo that will be released in 3.10.
This is done by just moving the GdHeaderBar inside a special child
to window with the attribute type = titlebar and that will be your
new title bar.
Comment 8 Zeeshan Ali 2013-08-06 14:33:48 UTC
Attachment 250911 [details] pushed as 89865d1 - Add missing xml-declaration
Attachment 250912 [details] pushed as 4c5cd5e - Reindent xml
Comment 9 Mattias Bengtsson 2013-08-06 15:42:35 UTC
Created attachment 250988 [details] [review]
MainWindow: move to CSD

Move maps to be client side decorated (CSD), that is: Gtk+ will draw the
window decorations instead of relying on the window manager for drawing
them. 

This move has been made by a few other apps in GNOME already
(like devhelp) and is mandatory for making us work in the wayland
tech demo that will be released in 3.10.

This is done by just moving the GdHeaderBar inside a special child
to window with the attribute type = titlebar and that will be your
new title bar.
Comment 10 Zeeshan Ali 2013-08-06 15:50:50 UTC
Review of attachment 250988 [details] [review]:

Thanks. Could also also add to log that you are adding a 'close' button.
Comment 11 Mattias Bengtsson 2013-08-06 16:02:10 UTC
Created attachment 250989 [details] [review]
MainWindow: move to CSD

Move maps to be client side decorated (CSD), that is: Gtk+ will draw the
window decorations instead of relying on the window manager for drawing
them.

This move has been made by a few other apps in GNOME already
(like devhelp) and is mandatory for making us work in the wayland
tech demo that will be released in 3.10.

This is done by just moving the GdHeaderBar inside a special child
to window with the attribute type = titlebar and that will be your
new title bar. I also added a close button like the other apps do,
which will help people close the app even when maximised.
Comment 12 Zeeshan Ali 2013-08-06 16:30:21 UTC
Review of attachment 250989 [details] [review]:

Dude, you only changed the comment in the bz, not the commit log :)
Comment 13 Mattias Bengtsson 2013-08-06 22:13:12 UTC
Created attachment 251004 [details] [review]
MainWindow: move to CSD

Move maps to be client side decorated (CSD), that is: Gtk+ will draw the
window decorations instead of relying on the window manager for drawing
them.

This move has been made by a few other apps in GNOME already
(like devhelp) and is mandatory for making us work in the wayland
tech demo that will be released in 3.10.

This is done by just moving the GdHeaderBar inside a special child
to window with the attribute type = titlebar and that will be your
new title bar. I also added a close button like the other apps do,
which will help people close the app even when maximised.
Comment 14 Zeeshan Ali 2013-08-06 22:43:19 UTC
Attachment 251004 [details] pushed as 912c9f1 - MainWindow: move to CSD
Comment 15 Ignacio Casal Quinteiro (nacho) 2013-08-07 07:50:49 UTC
Sorry for reopening but I am too lazy to open a new bug :)
You can now remove the custom close button and use the new property they just added in these days show-close-button from the GtkHeaderBar.
Comment 16 Zeeshan Ali 2013-08-07 16:01:51 UTC
(In reply to comment #15)
> Sorry for reopening but I am too lazy to open a new bug :)
> You can now remove the custom close button and use the new property they just
> added in these days show-close-button from the GtkHeaderBar.

This has been fixed as part of bug#705594.