GNOME Bugzilla – Bug 722574
GtkAboutDialog doesn't get headerbars when used from JS
Last modified: 2014-01-24 20:57:25 UTC
GtkAboutDialog calls g_object_new() with "use-header-bar = TRUE" in gtk_about_dialog_new(). While this works fine for C applications calling that function, it doesn't work when GtkAboutDialog is used from JS (and other bindings), as in that case g_object_new() will be called by the binding without the correct property value. It shouldn't be necessary for a JS application to manually specify use-header-bar = TRUE in order to get the new style.
Created attachment 266685 [details] [review] aboutdialog: make use-header-bar override work from bindings Instead of setting "use-header-bar" from gtk_about_dialog_new(), override its default value by inspecting the properties at constructor() time. This makes it work from bindings as well, since they don't use the convenience C constructor. -- This is not very pretty, but I couldn't think of another way of overriding this cleanly.
Review of attachment 266685 [details] [review]: Ugh, ughly. But ok, lets do that, now that we've started down this road...
Attachment 266685 [details] pushed as 22bcd62 - aboutdialog: make use-header-bar override work from bindings