[eog] Simplify some code
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog] Simplify some code
- Date: Thu, 23 Dec 2010 14:58:51 +0000 (UTC)
commit adc355d063324cbc9d233d115ec675d99e3af5d2
Author: Claudio Saavedra <csaavedra igalia com>
Date: Thu Dec 23 16:58:23 2010 +0200
Simplify some code
src/eog-window.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/eog-window.c b/src/eog-window.c
index 1d10099..ea72674 100644
--- a/src/eog-window.c
+++ b/src/eog-window.c
@@ -2657,11 +2657,11 @@ wallpaper_info_bar_response (GtkInfoBar *bar, gint response, EogWindow *window)
}
if (app_info != NULL) {
- GdkScreen *screen;
GdkAppLaunchContext *context;
+ GdkDisplay *display;
- screen = gtk_widget_get_screen (GTK_WIDGET (window));
- context = gdk_display_get_app_launch_context (gdk_screen_get_display (screen));
+ display = gtk_widget_get_display (GTK_WIDGET (window));
+ context = gdk_display_get_app_launch_context (display);
g_app_info_launch (app_info, NULL, G_APP_LAUNCH_CONTEXT (context), &error);
if (error != NULL) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]