]> saetta.ns0.it Git - solipa/libsolipa/commitdiff
Pubblicata la funzione Solipa::gtkliststore_select_unselect_all. Pre_EvolutionDataServer_2.32
authorAndrea Zagli <a.zagli@comune.scandicci.fi.it>
Thu, 17 Feb 2011 14:49:17 +0000 (15:49 +0100)
committerAndrea Zagli <a.zagli@comune.scandicci.fi.it>
Thu, 17 Feb 2011 14:49:17 +0000 (15:49 +0100)
src/utils.c
src/utils.h

index e61623b2516d7e8d373707a1b71814fcbcf1559d..3042b774dc69d794c9a61edaeaa9685cae1e27a6 100644 (file)
@@ -38,9 +38,6 @@ static void solipa_fixed_toggled (GtkCellRendererToggle *cell,
                                   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,
@@ -291,8 +288,8 @@ solipa_fixed_toggled (GtkCellRendererToggle *cell,
        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;
 
@@ -300,7 +297,7 @@ solipa_gtkliststore_select_unselect_all (GtkListStore *store, gboolean select)
                {
                        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));
                }
 }
@@ -309,14 +306,14 @@ static void
 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
index e88e1a8590e2e14093612b2707ee74015787dccc..ed5fab13cb3e41c2829d246865937b2e0b29cf6c 100644 (file)
@@ -29,6 +29,10 @@ G_BEGIN_DECLS
 
 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,