GNOME Bugzilla – Bug 701858
gnome-clocks: suggestion: Make headerbar a titlebar. Convert Window to a Template.
Last modified: 2013-06-09 20:52:13 UTC
Improvements: Make headerbar a titlebar. Convert Window to a Template.
Created attachment 246312 [details] [review] a patch proposal: Make headerbar a titlebar. Convert Window to a Template.
Review of attachment 246312 [details] [review]: The patch looks good, as discussed in the chat we can try to refactor the close button in the header class later, but I think we can start committing this. Just a couple of comments below. ::: data/ui/window.ui @@ -18,3 +12,3 @@ </child> <child> - <object class="GtkFrame" id="frame1"> + <object class="GtkGrid" id="main_panel"> why do we need an extra grid around the frame? ::: src/window.vala @@ -74,0 +72,11 @@ + separator = new Gtk.Separator (Gtk.Orientation.VERTICAL); + separator.no_show_all = true; + separator.valign = Gtk.Align.FILL; ... 8 more ... nitpick: I do not think we leave a space before () in the other parts of the code
(In reply to comment #2) > Review of attachment 246312 [details] [review]: > > The patch looks good, as discussed in the chat we can try to refactor the close > button in the header class later, but I think we can start committing this. > > Just a couple of comments below. > > ::: data/ui/window.ui > @@ -18,3 +12,3 @@ > </child> > <child> > - <object class="GtkFrame" id="frame1"> > + <object class="GtkGrid" id="main_panel"> > > why do we need an extra grid around the frame? > no, we do not need it at all) > ::: src/window.vala > @@ -74,0 +72,11 @@ > + separator = new Gtk.Separator (Gtk.Orientation.VERTICAL); > + separator.no_show_all = true; > + separator.valign = Gtk.Align.FILL; > ... 8 more ... > > nitpick: I do not think we leave a space before () in the other parts of the > code thanks, this is a tipo.
Created attachment 246358 [details] [review] a patch proposal: Make headerbar a titlebar. Convert Window to a Template.
Created attachment 246365 [details] [review] a patch proposal: Make headerbar a titlebar. Convert Window to a Template.
pushed