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 559021 - go_url_show
go_url_show
Status: RESOLVED FIXED
Product: libgoffice
Classification: Other
Component: General
unspecified
Other All
: Normal minor
: ---
Assigned To: Jody Goldberg
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2008-11-03 00:40 UTC by Morten Welinder
Modified: 2009-03-05 19:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
proposed patch (1.22 KB, patch)
2009-03-03 07:59 UTC, Jean Bréfort
committed Details | Review

Description Morten Welinder 2008-11-03 00:40:06 UTC
We need a two-argument version of go_url_show so we can hint what
screen to show the url on.
Comment 1 Morten Welinder 2008-11-03 00:43:55 UTC
And let's move that function over to ../gtk/somewhere
Comment 2 Hib Eris 2008-11-05 20:51:00 UTC
Do you still need an url_show function in goffice when there is gtk_show_uri?

The unix part of go_url_show just calls gtk_show_uri (or g_app_info_launch_uri if gtk_show_uri is not available).

I think for the windows part you do not need it either, as gtk_show_uri should work on windows too, I guess. Can someone verify that gtk_show_uri works on windows?

So maybe you can just drop go_url_show from goffice completely.
Comment 3 Morten Welinder 2008-11-05 21:34:59 UTC
> Do you still need an url_show function in goffice when there is gtk_show_uri?

In the long run, no.  But we do not like to depend on the very latest from
the gtk+ people.

> So maybe you can just drop go_url_show from goffice completely.

We also like to maintain the interface, just in case someone else uses it.
Having a ten-line wrapper doesn't really hurt us.
Comment 4 Jean Bréfort 2008-11-16 08:04:02 UTC
Would go_url_show_for_screen a good name for the new function? We might also want a timestamp, or not?
Comment 5 Jean Bréfort 2009-03-03 07:59:23 UTC
Created attachment 129923 [details] [review]
proposed patch

I'd not move go_url_show to gtk since it is needed even for without-gtk builds.
Comment 6 Morten Welinder 2009-03-05 15:32:00 UTC
Looks good, apart from the "Since:" line.
Comment 7 Jean Bréfort 2009-03-05 19:12:01 UTC
Yes, 0.8 would be better ;-)
Comment 8 Jean Bréfort 2009-03-05 19:40:42 UTC
Patch commited without the faulty "Since" line.