aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-ui-utils.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-12-02 05:01:54 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-12-02 05:01:54 +0800
commit646ed927c6691796df969502bf5031771ace99fb (patch)
treea6eb6f2379b37803c2afd0b67c89d29c3c80f4ac /libempathy-gtk/empathy-ui-utils.c
parent9def2fdc5c8a33a36a47b4552eb7e4c4368aab4f (diff)
downloadgsoc2013-empathy-646ed927c6691796df969502bf5031771ace99fb.tar
gsoc2013-empathy-646ed927c6691796df969502bf5031771ace99fb.tar.gz
gsoc2013-empathy-646ed927c6691796df969502bf5031771ace99fb.tar.bz2
gsoc2013-empathy-646ed927c6691796df969502bf5031771ace99fb.tar.lz
gsoc2013-empathy-646ed927c6691796df969502bf5031771ace99fb.tar.xz
gsoc2013-empathy-646ed927c6691796df969502bf5031771ace99fb.tar.zst
gsoc2013-empathy-646ed927c6691796df969502bf5031771ace99fb.zip
Use GTK+ 2.14.0 and gtk_show_uri (Cosimo Cecchi).
svn path=/trunk/; revision=1942
Diffstat (limited to 'libempathy-gtk/empathy-ui-utils.c')
-rw-r--r--libempathy-gtk/empathy-ui-utils.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libempathy-gtk/empathy-ui-utils.c b/libempathy-gtk/empathy-ui-utils.c
index 91783d7ce..cd5cf0766 100644
--- a/libempathy-gtk/empathy-ui-utils.c
+++ b/libempathy-gtk/empathy-ui-utils.c
@@ -1332,7 +1332,8 @@ fixup_url (const gchar *url)
}
void
-empathy_url_show (const char *url)
+empathy_url_show (GtkWidget *parent,
+ const char *url)
{
gchar *real_url;
GError *error = NULL;
@@ -1342,10 +1343,9 @@ empathy_url_show (const char *url)
url = real_url;
}
- /* FIXME: this does not work for multihead, we should use
- * GdkAppLaunchContext or gtk_show_url, see bug #514396.
- */
- g_app_info_launch_default_for_uri (url, NULL, &error);
+ gtk_show_uri (gtk_widget_get_screen (parent), url,
+ gtk_get_current_event_time (), &error);
+
if (error) {
GtkWidget *dialog;
@@ -1371,7 +1371,7 @@ link_button_hook (GtkLinkButton *button,
const gchar *link,
gpointer user_data)
{
- empathy_url_show (link);
+ empathy_url_show (GTK_WIDGET (button), link);
}
GtkWidget *