GNOME Bugzilla – Bug 705520
Get rid of the WM's titlebar
Last modified: 2013-08-13 08:45:13 UTC
Some of the core applications (eg., gnome-clocks, gnome-weather) are beginning to lose the WM's titlebar. I think we should do the same.
Created attachment 250887 [details] [review] all: Get rid of the WM's titlebar
Review of attachment 250887 [details] [review]: ::: src/embed.js @@ +442,3 @@ // pack the toolbar this._toolbar = new Preview.PreviewToolbar(this._preview); + let toplevel = this.widget.get_toplevel(); I'd rather you got this from the GtkApplication toplevel list instead (also above and below). ::: src/mainToolbar.js @@ +74,3 @@ }, + addCloseButton: function() { Since bug 702971 has been committed to GTK, I think we should use that feature of GtkHeaderBar directly instead.
Created attachment 250946 [details] [review] all: Get rid of the WM's titlebar
(In reply to comment #2) > Review of attachment 250887 [details] [review]: > > ::: src/embed.js > @@ +442,3 @@ > // pack the toolbar > this._toolbar = new Preview.PreviewToolbar(this._preview); > + let toplevel = this.widget.get_toplevel(); > > I'd rather you got this from the GtkApplication toplevel list instead (also > above and below). Ok. Done. There is one instance of the following snippet in src/selections.js: let toplevel = this.widget.get_toplevel(); if (!toplevel.is_toplevel()) Do you want to similarly replace it? > ::: src/mainToolbar.js > @@ +74,3 @@ > }, > > + addCloseButton: function() { > > Since bug 702971 has been committed to GTK, I think we should use that feature > of GtkHeaderBar directly instead. Done.
Review of attachment 250946 [details] [review]: Looks good now, thanks!