# HG changeset patch # User nadvornik # Date 1246137127 0 # Node ID daab013a0dcf592b278f04417cc675ed8a2cdd49 # Parent 8ebc26a4383f2f37a7f313fd3078a0a7a57e00f6 reordered View menu diff -r 8ebc26a4383f -r daab013a0dcf src/layout.c --- a/src/layout.c Sat Jun 27 20:47:17 2009 +0000 +++ b/src/layout.c Sat Jun 27 21:12:07 2009 +0000 @@ -1396,10 +1396,9 @@ image = layout_image_setup_split(lw, mode); -// gtk_box_pack_start(GTK_BOX(lw->utility_box), image, TRUE, TRUE, 0); -// gtk_box_reorder_child(GTK_BOX(lw->utility_box), image, 0); gtk_paned_pack1(GTK_PANED(lw->utility_paned), image, TRUE, FALSE); gtk_widget_show(image); + layout_util_sync(lw); } static void layout_grid_setup(LayoutWindow *lw) diff -r 8ebc26a4383f -r daab013a0dcf src/layout_util.c --- a/src/layout_util.c Sat Jun 27 20:47:17 2009 +0000 +++ b/src/layout_util.c Sat Jun 27 21:12:07 2009 +0000 @@ -1401,10 +1401,10 @@ static GtkToggleActionEntry menu_toggle_entries[] = { { "Thumbnails", PIXBUF_INLINE_ICON_THUMB,N_("Show _Thumbnails"), "T", N_("Show Thumbnails"), CB(layout_menu_thumb_cb), FALSE }, { "ShowMarks", NULL, N_("Show _Marks"), "M", N_("Show Marks"), CB(layout_menu_marks_cb), FALSE }, - { "ShowInfoPixel", GTK_STOCK_COLOR_PICKER, N_("Show Pi_xel Info"), NULL, N_("Show Pixel Info"), CB(layout_menu_info_pixel_cb), FALSE }, + { "ShowInfoPixel", GTK_STOCK_COLOR_PICKER, N_("Pi_xel Info"), NULL, N_("Show Pixel Info"), CB(layout_menu_info_pixel_cb), FALSE }, { "FloatTools", PIXBUF_INLINE_ICON_FLOAT,N_("_Float file list"), "L", N_("Float file list"), CB(layout_menu_float_cb), FALSE }, { "HideToolbar", NULL, N_("Hide tool_bar"), NULL, N_("Hide toolbar"), CB(layout_menu_toolbar_cb), FALSE }, - { "SBar", NULL, N_("_Info"), "K", N_("Info"), CB(layout_menu_bar_cb), FALSE }, + { "SBar", NULL, N_("_Info sidebar"), "K", N_("Info sidebar"), CB(layout_menu_bar_cb), FALSE }, { "SBarSort", NULL, N_("Sort _manager"), "S", N_("Sort manager"), CB(layout_menu_bar_sort_cb), FALSE }, { "SlideShow", GTK_STOCK_MEDIA_PLAY, N_("Toggle _slideshow"), "S", N_("Toggle slideshow"), CB(layout_menu_slideshow_cb), FALSE }, { "UseColorProfiles", GTK_STOCK_SELECT_COLOR, N_("Use _color profiles"), NULL, N_("Use color profiles"), CB(layout_color_menu_enable_cb), FALSE}, @@ -1536,57 +1536,9 @@ " " " " " " +" " " " " " -" " -" " -" " -" " -" " -" " -" " -" " -" " -" " -" " -" " -" " -" " -" " -" " -" " -" " -" " -" " -" " -" " -" " -" " -" " -" " -" " -" " -" " -" " -" " -" " -" " -" " -" " -" " -" " -" " -" " -" " -" " -" " -" " -" " -" " -" " -" " -" " -" " " " " " " " @@ -1603,6 +1555,52 @@ " " " " " " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " +" " " " " " " " @@ -1620,16 +1618,13 @@ " " " " " " -" " +" " " " +" " +" " " " " " " " -" " -" " -" " -" " -" " " " " " " " @@ -2313,11 +2308,17 @@ action = gtk_action_group_get_action(lw->action_group, "ImageHistogram"); gtk_toggle_action_set_active(GTK_TOGGLE_ACTION(action), osd_flags & OSD_SHOW_HISTOGRAM); - action = gtk_action_group_get_action(lw->action_group, "HistogramChanR"); - radio_action_set_current_value(GTK_RADIO_ACTION(action), image_osd_histogram_get_channel(lw->image)); - - action = gtk_action_group_get_action(lw->action_group, "HistogramModeLin"); - radio_action_set_current_value(GTK_RADIO_ACTION(action), image_osd_histogram_get_mode(lw->image)); + if (osd_flags & OSD_SHOW_HISTOGRAM) + { + action = gtk_action_group_get_action(lw->action_group, "HistogramChanR"); + radio_action_set_current_value(GTK_RADIO_ACTION(action), image_osd_histogram_get_channel(lw->image)); + + action = gtk_action_group_get_action(lw->action_group, "HistogramModeLin"); + radio_action_set_current_value(GTK_RADIO_ACTION(action), image_osd_histogram_get_mode(lw->image)); + } + + action = gtk_action_group_get_action(lw->action_group, "ConnectZoomMenu"); + gtk_action_set_sensitive(action, lw->split_mode != SPLIT_NONE); layout_util_sync_color(lw); }