GNOME Bugzilla – Bug 735224
[PATCH] Don't create more than one preferences' dialog.
Last modified: 2014-08-22 18:10:33 UTC
Created attachment 284218 [details] [review] Don't create more than one preferences' dialog. A new preferences’ dialog is created each time “Preferences” is clicked in the app’menu. So, you could have more than one on the screen…
Review of attachment 284218 [details] [review]: Nits: ::: src/iagno.vala @@ +29,3 @@ private Gtk.Label light_label; private Gtk.Label light_score_label; + private Gtk.Dialog propbox = null; It's really pathetic that Vala accepts code like this. :/ This variable should be a nullable Gtk.Dialog? but I don't know why Vala has nullable variables at all if it doesn't enforce them. @@ +384,3 @@ + if (propbox == null) + create_preferences_dialog (); + propbox.show_all (); tab ?
Created attachment 284240 [details] [review] Don't create more than one preferences' dialog.