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 744841 - Prevent multiple about dialogs from opening
Prevent multiple about dialogs from opening
Status: RESOLVED FIXED
Product: gnome-photos
Classification: Applications
Component: general
3.14.x
Other All
: Normal normal
: ---
Assigned To: GNOME photos maintainer(s)
GNOME photos maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2015-02-20 06:54 UTC by Pranav Kant
Modified: 2015-02-26 09:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
About dialog: prevent to open more than one about dialog (4.41 KB, patch)
2015-02-24 23:35 UTC, Alessandro Bono
none Details | Review
About dialog: prevent to open more than one about dialog (4.95 KB, patch)
2015-02-25 10:08 UTC, Alessandro Bono
none Details | Review
about dialog: prevent to open more than one about dialog (3.35 KB, patch)
2015-02-25 10:34 UTC, Alessandro Bono
none Details | Review
about dialog: prevent to open more than one about dialog (3.31 KB, patch)
2015-02-25 10:40 UTC, Alessandro Bono
committed Details | Review

Description Pranav Kant 2015-02-20 06:54:35 UTC
Currently when we click to open 'About' dialog, we can open another 'About' dialog over it.

I don't think this is expected behavior. It shouldn't allow any other 'About' dialog to pop over it.
Comment 1 Debarshi Ray 2015-02-20 17:51:11 UTC
Yes, this is a bug. We should somehow disable the 'app.about' action while an about dialog is being shown.
Comment 2 Matthias Clasen 2015-02-21 06:11:37 UTC
Or you could just have a single about dialog and always present that when the action is activated. That is what most other apps do, and is how GtkAboutDialog is meant to be used.
Comment 3 Alessandro Bono 2015-02-24 23:35:26 UTC
Created attachment 297841 [details] [review]
About dialog: prevent to open more than one about dialog

Instead of creating a GtkWidget with gtk_about_dialog_new () then show it, use gtk_show_about_dialog () only like gnome-calendar does.
Comment 4 Debarshi Ray 2015-02-25 09:41:22 UTC
Review of attachment 297841 [details] [review]:

Thanks for the patch, Alessandro. It looks good except a few minor things.

Please don't exceed 72 characters per line in the commit message. Also, there is no need to explain the change literally because they are visible in 'git show', 'git format-patch', etc.. It is enough to just explain the overall goal or impact.

In this case, the fix is straightforward, so you can just use a subject and omit the body / description.

https://wiki.gnome.org/Git/CommitMessages has a longer guide.

::: src/photos-application.c
@@ +177,3 @@
+                         /* Translators: Put your names here */
+                         "translator-credits", _("translator-credits"),
+                         NULL);

I prefer to keep the code in src/photos-main-window.c.
Comment 5 Alessandro Bono 2015-02-25 10:08:00 UTC
Created attachment 297862 [details] [review]
About dialog: prevent to open more than one about dialog

Instead of creating a GtkWidget with gtk_about_dialog_new () then show it, use gtk_show_about_dialog () only like gnome-calendar does.
Comment 6 Alessandro Bono 2015-02-25 10:34:32 UTC
Created attachment 297865 [details] [review]
about dialog: prevent to open more than one about dialog
Comment 7 Alessandro Bono 2015-02-25 10:40:12 UTC
Created attachment 297866 [details] [review]
about dialog: prevent to open more than one about dialog
Comment 8 Debarshi Ray 2015-02-26 09:18:39 UTC
Review of attachment 297866 [details] [review]:

Perfect. Thanks Alessandro. I tweaked the commit message a little bit before pushing it.