[nautilus-actions] Remove unused PROP_SELECTED_ROW property



commit 3d71b3cbb33ccc34cada4f9ea56a567ce614ba01
Author: Pierre Wieser <pwieser trychlos org>
Date:   Tue Jun 15 22:26:57 2010 +0200

    Remove unused PROP_SELECTED_ROW property

 ChangeLog                   |    3 +++
 src/nact/nact-main-tab.h    |    1 -
 src/nact/nact-main-window.c |   25 -------------------------
 3 files changed, 3 insertions(+), 26 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index d58f181..943db23 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2010-06-15 Pierre Wieser <pwieser trychlos org>
 
+	* src/nact/nact-main-tab.h:
+	* src/nact/nact-main-window.c: Remove unused PROP_SELECTED_ROW property.
+
 	* po/POTFILES.in: Add src/nact/nact-ienvironment-tab.c file.
 
 	* src/nact/nact-ienvironment-tab.c: Connect signals.
diff --git a/src/nact/nact-main-tab.h b/src/nact/nact-main-tab.h
index 4c1c9cd..3d7610b 100644
--- a/src/nact/nact-main-tab.h
+++ b/src/nact/nact-main-tab.h
@@ -45,7 +45,6 @@
  */
 #define TAB_UPDATABLE_PROP_EDITED_ACTION				"nact-tab-updatable-edited-action"
 #define TAB_UPDATABLE_PROP_EDITED_PROFILE				"nact-tab-updatable-edited-profile"
-#define TAB_UPDATABLE_PROP_SELECTED_ROW					"nact-tab-updatable-selected-row"
 #define TAB_UPDATABLE_PROP_EDITABLE						"nact-tab-updatable-editable"
 #define TAB_UPDATABLE_PROP_REASON						"nact-tab-updatable-reason"
 
diff --git a/src/nact/nact-main-window.c b/src/nact/nact-main-window.c
index a621d95..b99521c 100644
--- a/src/nact/nact-main-window.c
+++ b/src/nact/nact-main-window.c
@@ -108,12 +108,6 @@ struct NactMainWindowPrivate {
 	NAObjectProfile *edited_profile;
 
 	/**
-	 * Currently selected row.
-	 * May be null if list is empty or selection is multiple.
-	 */
-	NAObjectId      *selected_row;
-
-	/**
 	 * The convenience clipboard object.
 	 */
 	NactClipboard   *clipboard;
@@ -125,7 +119,6 @@ struct NactMainWindowPrivate {
 enum {
 	PROP_EDITED_ITEM = 1,
 	PROP_EDITED_PROFILE,
-	PROP_SELECTED_ROW,
 	PROP_EDITABLE,
 	PROP_REASON
 };
@@ -376,13 +369,6 @@ class_init( NactMainWindowClass *klass )
 			G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE );
 	g_object_class_install_property( object_class, PROP_EDITED_PROFILE, spec );
 
-	spec = g_param_spec_pointer(
-			TAB_UPDATABLE_PROP_SELECTED_ROW,
-			"Selected NAObjectId",
-			"A pointer to the currently selected row",
-			G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE );
-	g_object_class_install_property( object_class, PROP_SELECTED_ROW, spec );
-
 	spec = g_param_spec_boolean(
 			TAB_UPDATABLE_PROP_EDITABLE,
 			"Editable item ?",
@@ -711,10 +697,6 @@ instance_get_property( GObject *object, guint property_id, GValue *value, GParam
 				g_value_set_pointer( value, self->private->edited_profile );
 				break;
 
-			case PROP_SELECTED_ROW:
-				g_value_set_pointer( value, self->private->selected_row );
-				break;
-
 			case PROP_EDITABLE:
 				g_value_set_boolean( value, self->private->editable );
 				break;
@@ -749,10 +731,6 @@ instance_set_property( GObject *object, guint property_id, const GValue *value,
 				self->private->edited_profile = g_value_get_pointer( value );
 				break;
 
-			case PROP_SELECTED_ROW:
-				self->private->selected_row = g_value_get_pointer( value );
-				break;
-
 			case PROP_EDITABLE:
 				self->private->editable = g_value_get_boolean( value );
 				break;
@@ -1275,7 +1253,6 @@ on_iactions_list_selection_changed( NactIActionsList *instance, GSList *selected
 		return;
 	}
 
-	window->private->selected_row = NULL;
 	window->private->edited_item = NULL;
 	window->private->editable = FALSE;
 	window->private->reason = 0;
@@ -1284,7 +1261,6 @@ on_iactions_list_selection_changed( NactIActionsList *instance, GSList *selected
 	if( count == 1 ){
 		g_return_if_fail( NA_IS_OBJECT_ID( selected_items->data ));
 		object = NA_OBJECT( selected_items->data );
-		window->private->selected_row = NA_OBJECT_ID( object );
 
 		if( NA_IS_OBJECT_ITEM( object )){
 			window->private->edited_item = NA_OBJECT_ITEM( object );
@@ -1543,7 +1519,6 @@ reload( NactMainWindow *window )
 
 		window->private->edited_item = NULL;
 		window->private->edited_profile = NULL;
-		window->private->selected_row = NULL;
 
 		na_object_unref_items( window->private->deleted );
 		window->private->deleted = NULL;



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