[nautilus-actions] Clear schemes list store on dialog dispose
- From: Pierre Wieser <pwieser src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [nautilus-actions] Clear schemes list store on dialog dispose
- Date: Mon, 26 Oct 2009 18:19:12 +0000 (UTC)
commit 343bfc2f86935b2d16b6ca27ff99b8fbba97ca55
Author: Pierre Wieser <pwieser trychlos org>
Date: Mon Oct 26 06:23:26 2009 +0100
Clear schemes list store on dialog dispose
ChangeLog | 3 +++
src/nact/nact-iadvanced-tab.c | 12 ++++++++++++
2 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 7505b4d..d3eb5c9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2009-10-26 Pierre Wieser <pwieser trychlos org>
+ * src/nact/nact-iadvanced-tab.c (release_schemes_list):
+ Clear the list store on dialog dispose.
+
* src/nact/nact-iaction-tab.c
(nact_iaction_tab_initial_load_toplevel):
Unref model after having initialized the combobox listview.
diff --git a/src/nact/nact-iadvanced-tab.c b/src/nact/nact-iadvanced-tab.c
index 73d00ac..65c0b3d 100644
--- a/src/nact/nact-iadvanced-tab.c
+++ b/src/nact/nact-iadvanced-tab.c
@@ -89,6 +89,7 @@ static void on_scheme_selection_toggled( GtkCellRendererToggle *rendere
static gboolean reset_schemes_list( GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data );
static void scheme_cell_edited( NactIAdvancedTab *instance, const gchar *path_string, const gchar *text, gint column, gboolean *state, gchar **old_text );
static void set_action_schemes( gchar *scheme, GtkTreeModel *model );
+static void release_schemes_list( NactIAdvancedTab *instance );
GType
nact_iadvanced_tab_get_type( void )
@@ -370,6 +371,8 @@ nact_iadvanced_tab_dispose( NactIAdvancedTab *instance )
g_return_if_fail( NACT_IS_IADVANCED_TAB( instance ));
if( st_initialized && !st_finalized ){
+
+ release_schemes_list( instance );
}
}
@@ -763,3 +766,12 @@ set_action_schemes( gchar *scheme, GtkTreeModel *model )
-1 );
}
}
+
+static void
+release_schemes_list( NactIAdvancedTab *instance )
+{
+ GtkTreeModel *model;
+
+ model = get_schemes_tree_model( instance );
+ gtk_list_store_clear( GTK_LIST_STORE( model ));
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]