[gimp/metadata-browser] app (actions): Rewrite code to conditionally declare vars
- From: Roman Joost <romanofski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/metadata-browser] app (actions): Rewrite code to conditionally declare vars
- Date: Fri, 2 Dec 2011 02:18:14 +0000 (UTC)
commit 42b76d54ec2c178f6bbb49f7615bfb65d0951add
Author: Mukund Sivaraman <muks banu com>
Date: Tue Oct 11 10:08:59 2011 +0530
app (actions): Rewrite code to conditionally declare vars
app/actions/window-actions.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/app/actions/window-actions.c b/app/actions/window-actions.c
index bce205d..9422659 100644
--- a/app/actions/window-actions.c
+++ b/app/actions/window-actions.c
@@ -92,14 +92,16 @@ window_actions_update (GimpActionGroup *group,
if (GTK_IS_WINDOW (window))
{
- GdkDisplay *display;
GdkScreen *screen;
gchar *screen_name;
- display = gtk_widget_get_display (window);
-
#ifndef GIMP_UNSTABLE
- show_menu = (gdk_display_get_n_screens (display) > 1);
+ {
+ GdkDisplay *display;
+
+ display = gtk_widget_get_display (window);
+ show_menu = (gdk_display_get_n_screens (display) > 1);
+ }
#else
show_menu = TRUE;
#endif /* !GIMP_UNSTABLE */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]