From cc8ed9bf53023f7d0e422eceb8a8a4de656d4493 Mon Sep 17 00:00:00 2001 From: Tony Houghton Date: Mon, 3 Sep 2007 23:46:54 +0100 Subject: [PATCH] Got rid of panel options from main Options dialog. No longer warn about options without widgets. --- ROX-Filer/Options.xml | 21 --------------------- ROX-Filer/src/options.c | 6 +----- ROX-Filer/src/panel.c | 38 -------------------------------------- 3 files changed, 1 insertion(+), 64 deletions(-) diff --git a/ROX-Filer/Options.xml b/ROX-Filer/Options.xml index 6bc90d8d..b36497e1 100644 --- a/ROX-Filer/Options.xml +++ b/ROX-Filer/Options.xml @@ -219,27 +219,6 @@ indicator'>If this is on then files which have one or more extended attributes s -
- - - - Every panel icon is shown with an image and some text. - Applications have just an image, everything else has both an image and text. - Only the image is shown. - - - The size of the panels. - - Ask the window manager not to cover panels at all when you maximise windows. Some window managers may not honour this. If unset, the filer asks for just a couple of pixels at the edge of the screen to remain uncovered, so that auto-raising works. - - - - If you have an Xinerama multi-monitor setup, use this option to confine the panels to one monitor instead of spanning them. - The monitor the panels are confined to in Xinerama mode (numbered from 0). - - -
-
diff --git a/ROX-Filer/src/options.c b/ROX-Filer/src/options.c index b17da736..4d0fe375 100644 --- a/ROX-Filer/src/options.c +++ b/ROX-Filer/src/options.c @@ -837,8 +837,6 @@ static void null_widget(gpointer key, gpointer value, gpointer data) { Option *option = (Option *) value; - g_return_if_fail(option->widget != NULL); - option->widget = NULL; } @@ -1183,10 +1181,8 @@ static void update_cb(gpointer key, gpointer value, gpointer data) Option *option = (Option *) value; g_return_if_fail(option != NULL); - if (option->widget == NULL) { - g_warning("No widget for option %s", (char *) key); + if (option->widget == NULL) return; - } updating_widgets++; diff --git a/ROX-Filer/src/panel.c b/ROX-Filer/src/panel.c index 537f78b0..c33da740 100644 --- a/ROX-Filer/src/panel.c +++ b/ROX-Filer/src/panel.c @@ -2116,44 +2116,6 @@ static void panel_style_changed(void) g_idle_add((GtkFunction) recreate_panels, names); } - - if (o_panel_style.has_changed) - { - for (i = 0; i < PANEL_NUMBER_OF_SIDES; i++) - { - if (current_panel[i]) - panel_set_style(current_panel[i]); - } - } - if (o_panel_width.has_changed) - { - for (i = 0; i < PANEL_NUMBER_OF_SIDES; i++) - { - if (current_panel[i]) - panel_update(current_panel[i]); - } - } - - if (o_panel_xinerama.has_changed || o_panel_monitor.has_changed || - o_panel_avoid.has_changed) - { - //if (panel_check_xinerama() || o_panel_avoid.has_changed) - { - for (i = 0; i < PANEL_NUMBER_OF_SIDES; i++) - { - if (current_panel[i]) - { - reposition_panel( - current_panel[i]->window, - ¤t_panel[i]-> - window->allocation, - current_panel[i]); - gtk_widget_queue_resize( - current_panel[i]->window); - } - } - } - } } static gboolean draw_panel_edge(GtkWidget *widget, GdkEventExpose *event, -- 2.11.4.GIT