[file-roller] use gdk_display_get_app_launch_context instead of gdk_app_launch_context_new
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller] use gdk_display_get_app_launch_context instead of gdk_app_launch_context_new
- Date: Mon, 7 Mar 2011 19:36:11 +0000 (UTC)
commit 02f2fa8dc6c41d04e105b02f662b23a2c910d6cb
Author: Paolo Bacchilega <paobac src gnome org>
Date: Mon Mar 7 19:48:57 2011 +0100
use gdk_display_get_app_launch_context instead of gdk_app_launch_context_new
src/fr-window.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/fr-window.c b/src/fr-window.c
index 949cb48..b11532a 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -25,6 +25,7 @@
#include <glib/gi18n.h>
#include <gio/gio.h>
+#include <gtk/gtk.h>
#include <gdk/gdk.h>
#include <gdk/gdkkeysyms.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
@@ -8049,7 +8050,7 @@ fr_window_open_files_with_application (FrWindow *window,
for (scan = file_list; scan; scan = scan->next)
uris = g_list_prepend (uris, g_filename_to_uri (scan->data, NULL, NULL));
- context = gdk_app_launch_context_new ();
+ context = gdk_display_get_app_launch_context (gtk_widget_get_display (GTK_WIDGET (window)));
gdk_app_launch_context_set_screen (context, gtk_widget_get_screen (GTK_WIDGET (window)));
gdk_app_launch_context_set_timestamp (context, 0);
@@ -8299,7 +8300,7 @@ fr_window_open_extracted_files (OpenFilesData *odata)
}
}
- context = gdk_app_launch_context_new ();
+ context = gdk_display_get_app_launch_context (gtk_widget_get_display (GTK_WIDGET (odata->window)));
gdk_app_launch_context_set_screen (context, gtk_widget_get_screen (GTK_WIDGET (odata->window)));
gdk_app_launch_context_set_timestamp (context, 0);
result = g_app_info_launch_uris (app, files_to_open, G_APP_LAUNCH_CONTEXT (context), &error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]