diff options
Diffstat (limited to 'src/plugins/fs/fs.c')
-rw-r--r-- | src/plugins/fs/fs.c | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/src/plugins/fs/fs.c b/src/plugins/fs/fs.c index c3aa10ed..b9506106 100644 --- a/src/plugins/fs/fs.c +++ b/src/plugins/fs/fs.c | |||
@@ -82,7 +82,8 @@ void | |||
82 | on_anonymity_spin_changed_fs (GtkWidget * w, gpointer dummy) | 82 | on_anonymity_spin_changed_fs (GtkWidget * w, gpointer dummy) |
83 | { | 83 | { |
84 | gint val; | 84 | gint val; |
85 | GdkColor color; | 85 | GdkColor bcolor; |
86 | GdkColor fcolor; | ||
86 | GtkSpinButton *spin; | 87 | GtkSpinButton *spin; |
87 | 88 | ||
88 | spin = GTK_SPIN_BUTTON (w); | 89 | spin = GTK_SPIN_BUTTON (w); |
@@ -95,15 +96,23 @@ on_anonymity_spin_changed_fs (GtkWidget * w, gpointer dummy) | |||
95 | if (val == 0) | 96 | if (val == 0) |
96 | { | 97 | { |
97 | if ((TRUE == gdk_color_parse ("red", | 98 | if ((TRUE == gdk_color_parse ("red", |
98 | &color)) && | 99 | &bcolor)) && |
99 | (TRUE == gdk_colormap_alloc_color (gdk_colormap_get_system (), | 100 | (TRUE == gdk_colormap_alloc_color (gdk_colormap_get_system (), |
100 | &color, FALSE, TRUE))) | 101 | &bcolor, FALSE, TRUE)) && |
101 | gtk_widget_modify_base (w, GTK_STATE_NORMAL, &color); | 102 | (TRUE == gdk_color_parse ("black", |
103 | &fcolor)) && | ||
104 | (TRUE == gdk_colormap_alloc_color (gdk_colormap_get_system (), | ||
105 | &fcolor, FALSE, TRUE))) | ||
106 | { | ||
107 | gtk_widget_modify_base (w, GTK_STATE_NORMAL, &bcolor); | ||
108 | gtk_widget_modify_text (w, GTK_STATE_NORMAL, &fcolor); | ||
109 | } | ||
102 | } | 110 | } |
103 | else | 111 | else |
104 | gtk_widget_modify_base (w, GTK_STATE_NORMAL, NULL); | 112 | { |
105 | 113 | gtk_widget_modify_base (w, GTK_STATE_NORMAL, NULL); | |
106 | 114 | gtk_widget_modify_text (w, GTK_STATE_NORMAL, NULL); | |
115 | } | ||
107 | } | 116 | } |
108 | 117 | ||
109 | static void * | 118 | static void * |