[gtk+/wip/jjardon/remove_gtk_show_uri: 1/2] Use gtk_show_uri_on_window() instead gtk_show_uri()
- From: Javier Jardón Cabezas <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/jjardon/remove_gtk_show_uri: 1/2] Use gtk_show_uri_on_window() instead gtk_show_uri()
- Date: Fri, 4 Aug 2017 14:31:34 +0000 (UTC)
commit 1494dd61a04f439b3a173253a71a494fe8531935
Author: Javier Jardón <jjardon gnome org>
Date: Fri Aug 4 15:11:36 2017 +0100
Use gtk_show_uri_on_window() instead gtk_show_uri()
gtk/gtkfilechooserwidget.c | 2 +-
gtk/gtkprintoperation-unix.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c
index c31e52e..b9cf780 100644
--- a/gtk/gtkfilechooserwidget.c
+++ b/gtk/gtkfilechooserwidget.c
@@ -1778,7 +1778,7 @@ open_folder_cb (GSimpleAction *action,
gchar *uri;
uri = g_file_get_uri (file);
- gtk_show_uri (gtk_widget_get_screen (GTK_WIDGET (impl)), uri, gtk_get_current_event_time (), NULL);
+ gtk_show_uri_on_window (gtk_widget_get_toplevel (GTK_WIDGET (impl)), uri, gtk_get_current_event_time
(), NULL);
g_free (uri);
}
diff --git a/gtk/gtkprintoperation-unix.c b/gtk/gtkprintoperation-unix.c
index 9baf694..dee683f 100644
--- a/gtk/gtkprintoperation-unix.c
+++ b/gtk/gtkprintoperation-unix.c
@@ -312,7 +312,7 @@ gtk_print_operation_unix_launch_preview (GtkPrintOperation *op,
g_error_free (error);
error = NULL;
uri = g_filename_to_uri (filename, NULL, NULL);
- gtk_show_uri (screen, uri, GDK_CURRENT_TIME, &error);
+ gtk_show_uri_on_window (parent, uri, GDK_CURRENT_TIME, &error);
g_free (uri);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]