[krb5-auth-dialog] Use gtk_show_uri_on_window



commit 99bcfa4e24e577dae3fa7338362b20cfc15bf4c8
Author: Guido Günther <agx sigxcpu org>
Date:   Thu Jun 8 19:43:40 2017 +0200

    Use gtk_show_uri_on_window
    
    instead of deprecated gtk_show_uri

 src/ka-applet.c |    2 +-
 src/ka-tools.c  |    5 ++---
 src/ka-tools.h  |    2 +-
 3 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/src/ka-applet.c b/src/ka-applet.c
index b18963f..fb52f43 100644
--- a/src/ka-applet.c
+++ b/src/ka-applet.c
@@ -255,7 +255,7 @@ action_help (GSimpleAction *action G_GNUC_UNUSED,
     KaApplet *self = KA_APPLET(userdata);
     GtkWindow *window = ka_applet_last_focused_window (self);
 
-    ka_show_help (gtk_window_get_screen (window), NULL, NULL);
+    ka_show_help (window, NULL);
 }
 
 static void
diff --git a/src/ka-tools.c b/src/ka-tools.c
index ae93803..1dbc94a 100644
--- a/src/ka-tools.c
+++ b/src/ka-tools.c
@@ -21,7 +21,7 @@
 #include "ka-tools.h"
 
 void
-ka_show_help (GdkScreen* screen, const char* chapter, GtkWindow* window)
+ka_show_help (GtkWindow* window, const char* chapter)
 {
   GError *error = NULL;
   const char *section = "";
@@ -32,8 +32,7 @@ ka_show_help (GdkScreen* screen, const char* chapter, GtkWindow* window)
 
   url = g_strdup_printf("help:krb5-auth-dialog%s", section);
 
-  gtk_show_uri (screen, url, gtk_get_current_event_time (), &error);
-
+  gtk_show_uri_on_window (window, url, gtk_get_current_event_time (), &error);
   if (error) {
       GtkWidget *message_dialog;
 
diff --git a/src/ka-tools.h b/src/ka-tools.h
index 9cbf1ae..3263b8e 100644
--- a/src/ka-tools.h
+++ b/src/ka-tools.h
@@ -25,7 +25,7 @@
 
 G_BEGIN_DECLS
 
-void ka_show_help (GdkScreen* screen, const char* section, GtkWindow* window);
+void ka_show_help (GtkWindow* window, const char* section);
 void ka_show_about (KaApplet *applet);
 
 G_END_DECLS


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]