Mercurial > geeqie
diff src/layout_util.c @ 1375:df58e511d90e
Display pixel coordinates and rgb - patch by Ruben Stein
author | nadvornik |
---|---|
date | Wed, 04 Mar 2009 18:53:47 +0000 |
parents | acf1797b74c7 |
children | 3c9abbc05792 |
line wrap: on
line diff
--- a/src/layout_util.c Tue Mar 03 23:17:07 2009 +0000 +++ b/src/layout_util.c Wed Mar 04 18:53:47 2009 +0000 @@ -666,6 +666,16 @@ layout_toolbar_toggle(lw); } +static void layout_menu_info_pixel_cb(GtkToggleAction *action, gpointer data) +{ + LayoutWindow *lw = data; + + if (lw->options.info_pixel_hidden == gtk_toggle_action_get_active(action)) return; + + layout_exit_fullscreen(lw); + layout_info_pixel_toggle(lw); +} + /* NOTE: these callbacks are called also from layout_util_sync_views */ static void layout_menu_bar_cb(GtkToggleAction *action, gpointer data) { @@ -1260,6 +1270,7 @@ { "ShowMarks", NULL, N_("Show _Marks"), "M", NULL, CB(layout_menu_marks_cb), FALSE }, { "FloatTools", PIXBUF_INLINE_ICON_FLOAT, N_("_Float file list"), "L", NULL, CB(layout_menu_float_cb), FALSE }, { "HideToolbar", NULL, N_("Hide tool_bar"), NULL, NULL, CB(layout_menu_toolbar_cb), FALSE }, + { "HideInfoPixel", NULL, N_("Hide Pi_xel Info"), NULL, NULL, CB(layout_menu_info_pixel_cb), FALSE }, { "SBar", NULL, N_("_Info"), "<control>K", NULL, CB(layout_menu_bar_cb), FALSE }, { "ExifWin", NULL, N_("E_xif window"), "<control>E", NULL, CB(layout_menu_bar_exif_cb), FALSE }, { "SBarSort", NULL, N_("Sort _manager"), "<control>S", NULL, CB(layout_menu_bar_sort_cb), FALSE }, @@ -1418,6 +1429,7 @@ " <menuitem action='FloatTools'/>" " <menuitem action='HideTools'/>" " <menuitem action='HideToolbar'/>" +" <menuitem action='HideInfoPixel'/>" " <placeholder name='ToolsSection'/>" " <separator/>" " <menuitem action='SBar'/>" @@ -1852,6 +1864,9 @@ action = gtk_action_group_get_action(lw->action_group, "HideToolbar"); gtk_toggle_action_set_active(GTK_TOGGLE_ACTION(action), lw->options.toolbar_hidden); + + action = gtk_action_group_get_action(lw->action_group, "HideInfoPixel"); + gtk_toggle_action_set_active(GTK_TOGGLE_ACTION(action), lw->options.info_pixel_hidden); action = gtk_action_group_get_action(lw->action_group, "ShowMarks"); gtk_toggle_action_set_active(GTK_TOGGLE_ACTION(action), lw->options.show_marks);