Mercurial > geeqie
changeset 1739:8436cdbc315c
Remove an unused variable and minor code cleanup.
author | zas_ |
---|---|
date | Mon, 07 Sep 2009 08:18:18 +0000 |
parents | 869ef66693f3 |
children | 6146ec0c9ab9 |
files | src/layout_util.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/layout_util.c Sun Sep 06 14:29:19 2009 +0000 +++ b/src/layout_util.c Mon Sep 07 08:18:18 2009 +0000 @@ -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)) {