gchar *path_str,
gpointer data);
-static void solipa_gtkliststore_select_unselect_all (GtkListStore *store,
- gboolean select);
-
static void solipa_on_btn_select_all_clicked (GtkButton *button,
gpointer user_data);
static void solipa_on_btn_unselect_all_clicked (GtkButton *button,
gtk_tree_path_free (path);
}
-static void
-solipa_gtkliststore_select_unselect_all (GtkListStore *store, gboolean select)
+void
+solipa_gtkliststore_select_unselect_all (GtkListStore *store, guint column, gboolean select)
{
GtkTreeIter iter;
{
do
{
- gtk_list_store_set (store, &iter, 0, select, -1);
+ gtk_list_store_set (store, &iter, column, select, -1);
} while (gtk_tree_model_iter_next (GTK_TREE_MODEL (store), &iter));
}
}
solipa_on_btn_select_all_clicked (GtkButton *button,
gpointer user_data)
{
- solipa_gtkliststore_select_unselect_all ((GtkListStore *)user_data, TRUE);
+ solipa_gtkliststore_select_unselect_all ((GtkListStore *)user_data, 0, TRUE);
}
static void
solipa_on_btn_unselect_all_clicked (GtkButton *button,
gpointer user_data)
{
- solipa_gtkliststore_select_unselect_all ((GtkListStore *)user_data, FALSE);
+ solipa_gtkliststore_select_unselect_all ((GtkListStore *)user_data, 0, FALSE);
}
guint
gboolean solipa_file_exists (const gchar *filename);
+void solipa_gtkliststore_select_unselect_all (GtkListStore *store,
+ guint column,
+ gboolean select);
+
gboolean solipa_gtktreemodel_to_csv (GtkTreeModel *model, const gchar *filename,
gboolean overwrite,
const gchar *quote, gboolean quote_all,