Ref #202: "Set as wallpaper" doesn't work with GNOME Shell
[geeqie.git] / src / layout_util.c
index ffc5d6c..4a82bfe 100644 (file)
@@ -1788,7 +1788,9 @@ static const gchar *menu_ui_description =
 "      </menu>"
 "      <placeholder name='PreferencesSection'/>"
 "      <separator/>"
+#if !GTK_CHECK_VERSION(3,0,0)
 "      <menuitem action='Wallpaper'/>"
+#endif
 "      <separator/>"
 "    </menu>"
 "    <menu action='ViewMenu'>"
@@ -2509,6 +2511,11 @@ static void layout_util_sync_views(LayoutWindow *lw)
        action = gtk_action_group_get_action(lw->action_group, "SplitSingle");
        gtk_radio_action_set_current_value(GTK_RADIO_ACTION(action), lw->split_mode);
 
+       action = gtk_action_group_get_action(lw->action_group, "SplitNextPane");
+       gtk_action_set_sensitive(action, !(lw->split_mode == SPLIT_NONE));
+       action = gtk_action_group_get_action(lw->action_group, "SplitPreviousPane");
+       gtk_action_set_sensitive(action, !(lw->split_mode == SPLIT_NONE));
+
        action = gtk_action_group_get_action(lw->action_group, "ViewIcons");
        gtk_radio_action_set_current_value(GTK_RADIO_ACTION(action), lw->options.file_view_type);