[libgdata] demos: Use non-deprecated API



commit b1115818eb0aa8d8f171df06c7a2e9a6fbac073c
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Sat Mar 25 15:16:48 2017 +0000

    demos: Use non-deprecated API
    
    Otherwise the build will fail with the default -Werror settings.

 demos/scrapbook/scrapbook.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/demos/scrapbook/scrapbook.c b/demos/scrapbook/scrapbook.c
index 399fba7..5c97db3 100644
--- a/demos/scrapbook/scrapbook.c
+++ b/demos/scrapbook/scrapbook.c
@@ -35,7 +35,7 @@
 static void
 open_in_web_browser (GtkWidget *widget, gchar *uri) /* quicky wrapper for gtk_show_uri */
 {
-       gtk_show_uri                    (gtk_widget_get_screen (widget), uri, GDK_CURRENT_TIME, NULL);
+       gtk_show_uri_on_window (gtk_widget_get_toplevel (widget), uri, GDK_CURRENT_TIME, NULL);
 }
 
 static void


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