Revision: 1839
          http://geeqie.svn.sourceforge.net/geeqie/?rev=1839&view=rev
Author:   zas_
Date:     2009-09-07 08:18:18 +0000 (Mon, 07 Sep 2009)

Log Message:
-----------
Remove an unused variable and minor code cleanup.

Modified Paths:
--------------
    trunk/src/layout_util.c

Modified: trunk/src/layout_util.c
===================================================================
--- trunk/src/layout_util.c     2009-09-06 14:29:19 UTC (rev 1838)
+++ trunk/src/layout_util.c     2009-09-07 08:18:18 UTC (rev 1839)
@@ -661,8 +661,7 @@
 static void layout_menu_overlay_cb(GtkToggleAction *action, gpointer data)
 {
        LayoutWindow *lw = data;
-       GtkToggleAction *histogram_action = 
GTK_TOGGLE_ACTION(gtk_action_group_get_action(lw->action_group, 
"ImageHistogram"));
-
+       
        if (gtk_toggle_action_get_active(action))
                {
                OsdShowFlags flags = image_osd_get(lw->image);
@@ -672,6 +671,8 @@
                }
        else
                {
+               GtkToggleAction *histogram_action = 
GTK_TOGGLE_ACTION(gtk_action_group_get_action(lw->action_group, 
"ImageHistogram"));
+               
                image_osd_set(lw->image, OSD_SHOW_NOTHING);
                gtk_toggle_action_set_active(histogram_action, FALSE); /* this 
calls layout_menu_histogram_cb */
                }
@@ -680,7 +681,6 @@
 static void layout_menu_histogram_cb(GtkToggleAction *action, gpointer data)
 {
        LayoutWindow *lw = data;
-       GtkToggleAction *overlay_action = 
GTK_TOGGLE_ACTION(gtk_action_group_get_action(lw->action_group, 
"ImageOverlay"));
 
        if (gtk_toggle_action_get_active(action))
                {


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Geeqie-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geeqie-svn

Reply via email to