[hitori] src/interface.c: Use gtk_show_uri_on_window()



commit 3b835d21bb25e7b8f89161e0b70592c053549b35
Author: Javier Jardón <jjardon gnome org>
Date:   Mon Mar 20 21:51:37 2017 +0000

    src/interface.c: Use gtk_show_uri_on_window()
    
    Instead deprecated gtk_show_uri()

 src/interface.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/interface.c b/src/interface.c
index cab918e..8a5e46f 100644
--- a/src/interface.c
+++ b/src/interface.c
@@ -634,7 +634,7 @@ help_cb (GSimpleAction *action, GVariant *parameters, gpointer user_data)
        HitoriApplication *self = HITORI_APPLICATION (user_data);
        GError *error = NULL;
 
-       if (gtk_show_uri (gtk_widget_get_screen (self->window), "help:hitori", gtk_get_current_event_time (), 
&error) == FALSE) {
+       if (gtk_show_uri_on_window (GTK_WINDOW (self->window), "help:hitori", gtk_get_current_event_time (), 
&error) == FALSE) {
                GtkWidget *dialog = gtk_message_dialog_new (GTK_WINDOW (self->window),
                                                            GTK_DIALOG_MODAL,
                                                            GTK_MESSAGE_ERROR,


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