[Xfce4-commits] [xfce/thunar] 03/06: Replace gtk_show_uri by gtk_show_uri_on_window

noreply at xfce.org noreply at xfce.org
Sat Jun 2 06:52:26 CEST 2018


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

a   n   d   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 xfce/thunar.

commit fb1332ed3c47b2aa72a233fcc48422ec027a82d0
Author: Andre Miranda <andreldm at xfce.org>
Date:   Sat Jun 2 01:30:45 2018 -0300

    Replace gtk_show_uri by gtk_show_uri_on_window
---
 thunar/thunar-renamer-dialog.c | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/thunar/thunar-renamer-dialog.c b/thunar/thunar-renamer-dialog.c
index 1bb0b16..562de91 100644
--- a/thunar/thunar-renamer-dialog.c
+++ b/thunar/thunar-renamer-dialog.c
@@ -913,8 +913,9 @@ thunar_renamer_dialog_help (ThunarRenamerDialog *renamer_dialog)
 {
   ThunarxRenamer *renamer;
   const gchar    *help_url = NULL;
-  GdkScreen      *screen;
   GError         *error = NULL;
+  gboolean        uri_launched = FALSE;
+
 
   _thunar_return_if_fail (THUNAR_IS_RENAMER_DIALOG (renamer_dialog));
 
@@ -932,11 +933,13 @@ thunar_renamer_dialog_help (ThunarRenamerDialog *renamer_dialog)
     }
   else
     {
-      /* determine the dialog's screen */
-      screen = gtk_widget_get_screen (GTK_WIDGET (renamer_dialog));
-
       /* try to launch the specific URL */
-      if (!gtk_show_uri (screen, help_url, gtk_get_current_event_time (), &error))
+      uri_launched = gtk_show_uri_on_window (GTK_WINDOW (renamer_dialog),
+                                             help_url,
+                                             gtk_get_current_event_time (),
+                                             &error);
+
+      if (!uri_launched)
         {
           /* tell the user that we failed */
           thunar_dialogs_show_error (GTK_WIDGET (renamer_dialog), error, _("Failed to open the documentation browser"));

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


More information about the Xfce4-commits mailing list