[nautilus-actions] NactTreeView: remove unused variable
- From: Pierre Wieser <pwieser src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-actions] NactTreeView: remove unused variable
- Date: Mon, 21 Feb 2011 21:37:56 +0000 (UTC)
commit 833462f6f4afcdf7f7e09fe01a43ad2b41be928f
Author: Pierre Wieser <pwieser trychlos org>
Date: Mon Feb 21 06:53:12 2011 +0100
NactTreeView: remove unused variable
src/nact/nact-tree-view.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/src/nact/nact-tree-view.c b/src/nact/nact-tree-view.c
index 64c0fb5..738cdce 100644
--- a/src/nact/nact-tree-view.c
+++ b/src/nact/nact-tree-view.c
@@ -1132,7 +1132,6 @@ display_label( GtkTreeViewColumn *column, GtkCellRenderer *cell, GtkTreeModel *m
gchar *label;
gboolean modified = FALSE;
gboolean valid = TRUE;
- NAObjectItem *item;
g_return_if_fail( view->private->mode == TREE_MODE_EDITION );
@@ -1147,13 +1146,11 @@ display_label( GtkTreeViewColumn *column, GtkCellRenderer *cell, GtkTreeModel *m
g_object_set( cell, "foreground-set", FALSE, NULL );
modified = na_object_is_modified( object );
- valid = na_object_is_valid( object );
- item = NA_IS_OBJECT_PROFILE( object ) ? na_object_get_parent( object ) : NA_OBJECT_ITEM( object );
-
if( modified ){
g_object_set( cell, "style", PANGO_STYLE_ITALIC, "style-set", TRUE, NULL );
}
+ valid = na_object_is_valid( object );
if( !valid ){
g_object_set( cell, "foreground", "Red", "foreground-set", TRUE, NULL );
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]