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 561034 - Get rid of gnome-open
Get rid of gnome-open
Status: RESOLVED FIXED
Product: vino
Classification: Applications
Component: Server
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: Vino Maintainer(s)
Vino Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2008-11-16 11:17 UTC by Emilio Pozuelo Monfort
Modified: 2008-11-17 20:05 UTC
See Also:
GNOME target: ---
GNOME version: 2.25/2.26


Attachments
get rid of gnome-open in vino (3.92 KB, patch)
2008-11-16 11:25 UTC, Emilio Pozuelo Monfort
committed Details | Review

Description Emilio Pozuelo Monfort 2008-11-16 11:17:18 UTC
http://live.gnome.org/GnomeGoals/RemoveGnomeOpenGnomeHelp proposes to get rid of gnome-open in favour of the gtk_show_uri API, available in GTK+ since 2.13.1.
Comment 1 Emilio Pozuelo Monfort 2008-11-16 11:25:30 UTC
Created attachment 122781 [details] [review]
get rid of gnome-open in vino

We already check for GTK 2.13.1 in configure.in, so we can use gtk_show_uri.

Thus, we don't need to check for GTK 2.13.1 in vino-status-icon.c in a couple of places, since it will be available.

vino_status_icon_help now calls gtk_show_uri, and in case of error, calls vino_status_icon_spawn_on_error to display an error dialog

vino_status_icon_preferences now launches vino-preferences, and in case of error, calls vino_status_icon_spawn_on_error to display an error dialog

since nothing is using vino_status_icon_spawn_command now, I've converted it to vino_status_icon_spawn_on_error which displays an error dialog

The patch works for me with Vino 2.24.1, and applies to trunk. Please review :)
Comment 2 Jonh Wendell 2008-11-17 13:12:48 UTC
Hi, Emilio.

Thanks for your patch. I've committed it with some changes. See rev 1008: http://svn.gnome.org/viewvc/vino?view=revision&sortby=date&revision=1008

Some tips:
1) GError structure should be passed as reference: &error. You should have seen this in a gcc warning. Pay attention on gcc warnings :)
2) Try to test your patch, for example, making uri to gtk_show_uri invalid. Thus you could see the error dialog in action.

Welcome aboard :)
Comment 3 Emilio Pozuelo Monfort 2008-11-17 20:05:29 UTC
Cool! And thanks for the tips!