fix bug 4239, 'Preferences: Text Options Header Display modal is not modal' (sic)
[claws.git] / src / foldersel.c
index 8435cbffba559243a3951bd0b4589c9d0569ad12..27d446945a738dd7e487996a80a747ba1dc38a0f 100644 (file)
@@ -1,6 +1,6 @@
 /*
- * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2013 Hiroyuki Yamamoto and the Claws Mail team
+ * Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
+ * Copyright (C) 1999-2018 Hiroyuki Yamamoto and the Claws Mail team
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -14,7 +14,6 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
- * 
  */
 
 #include "defs.h"
@@ -251,6 +250,7 @@ static void foldersel_create(const gchar *title)
        gtk_container_set_border_width(GTK_CONTAINER(window), 4);
        gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER);
        gtk_window_set_resizable(GTK_WINDOW(window), TRUE);
+       gtk_window_set_type_hint(GTK_WINDOW(window), GDK_WINDOW_TYPE_HINT_DIALOG);
 
        gtk_widget_realize(window);
        g_signal_connect(G_OBJECT(window), "delete_event",
@@ -402,7 +402,7 @@ static void foldersel_append_item(GtkTreeStore *store, FolderItem *item,
        static GdkColor color_noselect = {0, COLOR_DIM, COLOR_DIM, COLOR_DIM};
        static GdkColor color_new;
 
-       gtkut_convert_int_to_gdk_color(prefs_common.color_new, &color_new);
+       gtkut_convert_int_to_gdk_color(prefs_common.color[COL_NEW], &color_new);
 
        name = folder_item_get_name(item);
 
@@ -487,7 +487,7 @@ static void foldersel_set_tree(Folder *cur_folder, FolderSelectionType type)
                }
                
                if (cur_folder && (cur_folder->klass != folder->klass
-                   && strcmp2(cur_folder->name, folder->name) != 0))
+                   && g_strcmp0(cur_folder->name, folder->name) != 0))
                    continue;
                
                foldersel_insert_gnode_in_store(tree_store, folder->node, NULL);