[nautilus-actions] Always returns the treeview name



commit e9ed086683698978e90540250cb5ff81e3ae79af
Author: pierre <pierre vfedora10 virtuals pwi>
Date:   Mon Sep 28 13:14:22 2009 +0200

    Always returns the treeview name
    
    Else, nact_iactions_list_dispose is not able to release tree model resources.

 src/nact/nact-assistant-export.c |    4 +---
 src/nact/nact-main-window.c      |    4 +---
 2 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/src/nact/nact-assistant-export.c b/src/nact/nact-assistant-export.c
index b44336e..9faf4e8 100644
--- a/src/nact/nact-assistant-export.c
+++ b/src/nact/nact-assistant-export.c
@@ -558,9 +558,7 @@ on_iactions_list_get_treeview_name( NactIActionsList *instance )
 
 	g_return_val_if_fail( NACT_IS_ASSISTANT_EXPORT( instance ), NULL );
 
-	if( !NACT_ASSISTANT_EXPORT( instance )->private->dispose_has_run ){
-		name = g_strdup( "ActionsList" );
-	}
+	name = g_strdup( "ActionsList" );
 
 	return( name );
 }
diff --git a/src/nact/nact-main-window.c b/src/nact/nact-main-window.c
index 4b6bb67..af09436 100644
--- a/src/nact/nact-main-window.c
+++ b/src/nact/nact-main-window.c
@@ -1035,9 +1035,7 @@ iactions_list_get_treeview_name( NactIActionsList *instance )
 
 	g_return_val_if_fail( NACT_IS_MAIN_WINDOW( instance ), NULL );
 
-	if( !NACT_MAIN_WINDOW( instance )->private->dispose_has_run ){
-		name = g_strdup( "ActionsList" );
-	}
+	name = g_strdup( "ActionsList" );
 
 	return( name );
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]