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 653592 - Open picture in default image viewer
Open picture in default image viewer
Status: RESOLVED FIXED
Product: frogr
Classification: Other
Component: UI
master
Other Linux
: Normal enhancement
: ---
Assigned To: frogr maintainers
frogr maintainers
Depends on:
Blocks:
 
 
Reported: 2011-06-28 20:20 UTC by Joaquim Rocha
Modified: 2011-06-29 09:33 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch that adds this enhancement (4.86 KB, patch)
2011-06-28 20:20 UTC, Joaquim Rocha
none Details | Review

Description Joaquim Rocha 2011-06-28 20:20:47 UTC
Created attachment 190888 [details] [review]
Patch that adds this enhancement

I've just started using Frogr and I missed a way of viewing the images in a bigger size so I thought a good idea was to be able to open it in the default image viewer.

With this patch, the details' dialog will show the picture (when viewed individually) inside a button which brings it up with the image viewer when clicked.


Hope it is useful for you as well.
Comment 1 Mario Sánchez Prada 2011-06-28 21:35:10 UTC
I liked it! And the patch looks good to me so I already push it (keeping authorship, of course):

http://git.gnome.org/browse/frogr/commit/?id=a49bc074fb8d5ec51949cfbac32a3240cddc9740

Also, I added a couple of commits on top of yours to reuse the frogr_util_open_uri() function instead of gtk_show_uri(), so we make sure it works properly in old versions of GTK2 and the Mac.

Thanks!
Comment 2 Joaquim Rocha 2011-06-29 07:39:02 UTC
Cool, thanks for pushing it.

I think the "Open in default image viewer" should also be available from the View menu and/or the context menu so we don't need to access the details' dialog.

Cheers,
Comment 3 Mario Sánchez Prada 2011-06-29 09:33:18 UTC
(In reply to comment #2)
> Cool, thanks for pushing it.
> 
> I think the "Open in default image viewer" should also be available from the
> View menu and/or the context menu so we don't need to access the details'
> dialog.

I agree with being able to open an image both through the context menu and the menu, what I'm not sure about is whether "View" is the right place to put such an option, I think the "Actions" menu is a better place for that (another thing that is arguable is the "Actions" name, of course :-)).

Also, we must take care of the case where multiple images are selected and we use one of those new menu items. I think the way to go is just to open them all and let the recipient app to operate as it wishes (e.g. eog will open all of them with one single window, allowing to iterate over them). I wrote a new util function that you can use for that:

  frogr_util_open_multiple_uris (const gchar *uris)

It's not tested at all yet, so if you find it doesn't work as you expect feel free to fix it too :-)

Ah, last but not least, I personally do not think opening a new bug for that is needed, but I'd rather leave the decision to you, and if you finally reuse this bug, I'd just ask you to reopen it so we can still track down the progress.

Thanks!