diff options
author | Xavier Claessens <xclaesse@gmail.com> | 2009-07-24 19:19:27 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2009-07-29 17:21:42 +0800 |
commit | e5574c03936d59e2fc0077fcad318ad008c09d92 (patch) | |
tree | 7ef6b0f55bc6bdf9623cf3dc736543a8c634c62a /libempathy-gtk | |
parent | 1036277e3c369afe3a1fba9aeaf3552fcd5a20aa (diff) | |
download | gsoc2013-empathy-e5574c03936d59e2fc0077fcad318ad008c09d92.tar gsoc2013-empathy-e5574c03936d59e2fc0077fcad318ad008c09d92.tar.gz gsoc2013-empathy-e5574c03936d59e2fc0077fcad318ad008c09d92.tar.bz2 gsoc2013-empathy-e5574c03936d59e2fc0077fcad318ad008c09d92.tar.lz gsoc2013-empathy-e5574c03936d59e2fc0077fcad318ad008c09d92.tar.xz gsoc2013-empathy-e5574c03936d59e2fc0077fcad318ad008c09d92.tar.zst gsoc2013-empathy-e5574c03936d59e2fc0077fcad318ad008c09d92.zip |
Accept gibing NULL widget to empathy_url_show()
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-ui-utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-ui-utils.c b/libempathy-gtk/empathy-ui-utils.c index 2218533f5..8114cc21e 100644 --- a/libempathy-gtk/empathy-ui-utils.c +++ b/libempathy-gtk/empathy-ui-utils.c @@ -1363,7 +1363,7 @@ empathy_url_show (GtkWidget *parent, gchar *real_url; GError *error = NULL; - g_return_if_fail (GTK_IS_WIDGET (parent)); + g_return_if_fail (parent == NULL || GTK_IS_WIDGET (parent)); g_return_if_fail (url != NULL); real_url = fixup_url (url); @@ -1371,7 +1371,7 @@ empathy_url_show (GtkWidget *parent, url = real_url; } - gtk_show_uri (gtk_widget_get_screen (parent), url, + gtk_show_uri (parent ? gtk_widget_get_screen (parent) : NULL, url, gtk_get_current_event_time (), &error); if (error) { |