[Xfce4-commits] [apps/parole] 01/01: Replace deprecated gtk_show_uri

noreply at xfce.org noreply at xfce.org
Wed May 24 11:52:55 CEST 2017


This is an automated email from the git hooks/post-receive script.

b   l   u   e   s   a   b   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/parole.

commit f7168030ce2b6edddf365098e753023baf411c65
Author: Sean Davis <smd.seandavis at gmail.com>
Date:   Wed May 24 05:52:49 2017 -0400

    Replace deprecated gtk_show_uri
---
 src/parole-medialist.c | 4 ++++
 src/parole-player.c    | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/src/parole-medialist.c b/src/parole-medialist.c
index 1dbd1ec..cb5b586 100644
--- a/src/parole-medialist.c
+++ b/src/parole-medialist.c
@@ -1171,7 +1171,11 @@ parole_media_list_open_folder (GtkWidget *menu)
         gchar *uri;
         uri = g_filename_to_uri (dirname, NULL, NULL);
         TRACE ("Opening %s", dirname);
+#if GTK_CHECK_VERSION(3,22,0)
+        gtk_show_uri_on_window (GTK_WINDOW (gtk_menu_get_attach_widget (GTK_MENU (menu))), uri, GDK_CURRENT_TIME, NULL);
+#else
         gtk_show_uri (gtk_widget_get_screen (menu),  uri, GDK_CURRENT_TIME, NULL);
+#endif
 
         g_free (uri);
     }
diff --git a/src/parole-player.c b/src/parole-player.c
index 3b39974..758d2fa 100644
--- a/src/parole-player.c
+++ b/src/parole-player.c
@@ -2939,7 +2939,11 @@ static void
 on_bug_report_clicked (GtkWidget *w, ParolePlayer *player)
 {
     GtkWidget *dialog;
+#if GTK_CHECK_VERSION(3,22,0)
+    if (!gtk_show_uri_on_window(GTK_WINDOW(player->priv->window), "http://docs.xfce.org/apps/parole/bugs", GDK_CURRENT_TIME, NULL))
+#else
     if (!gtk_show_uri(NULL, "http://docs.xfce.org/apps/parole/bugs", GDK_CURRENT_TIME, NULL))
+#endif
     {
         dialog = gtk_message_dialog_new(GTK_WINDOW(player->priv->window),
                                         GTK_DIALOG_DESTROY_WITH_PARENT,

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list