Refresh target foldor colour when changed in preferences.
authorDarko Koruga <darko@users.sourceforge.net>
Fri, 14 Sep 2001 07:34:03 +0000 (07:34 +0000)
committerDarko Koruga <darko@users.sourceforge.net>
Fri, 14 Sep 2001 07:34:03 +0000 (07:34 +0000)
ChangeLog.claws
src/folderview.c

index db5f280..932bf2d 100644 (file)
@@ -1,3 +1,8 @@
+2001-09-14 [darko]
+       
+       * src/folderview.c
+               refresh target folder style after colour is changed
+
 2001-09-13 [paul]
 
        * configure.in
index cc08ab3..b9eefd3 100644 (file)
@@ -2208,11 +2208,17 @@ static void folderview_property_cb(FolderView *folderview, guint action, GtkWidg
 }
 
 void folderview_set_target_folder_color(gint color_op) {
+       gint firstone = 1;
        GList *list;
        FolderView *folderview;
 
        for (list = folderview_list; list != NULL; list = list->next) {
                folderview = (FolderView *)list->data;
                gtkut_convert_int_to_gdk_color(color_op, &folderview->color_op);
+               if (firstone) {
+                       bold_tgtfold_style->fg[GTK_STATE_NORMAL] =
+                               folderview->color_op;
+                       firstone = 0;
+               }
        }
 }