[nautilus-actions] Do not allow editable labels in export assistant
- From: Pierre Wieser <pwieser src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [nautilus-actions] Do not allow editable labels in export assistant
- Date: Sat, 17 Oct 2009 23:49:24 +0000 (UTC)
commit 6a3c794db7928e1c4786bb5926559bce758aede7
Author: Pierre Wieser <pwieser trychlos org>
Date: Sat Oct 17 23:56:21 2009 +0200
Do not allow editable labels in export assistant
ChangeLog | 4 ++++
src/nact/nact-iactions-list.c | 6 +++++-
2 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 8df0673..8949be2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2009-10-17 Pierre Wieser <pwieser trychlos org>
+ * src/nact/nact-iactions-list.c
+ (nact_iactions_list_initial_load_toplevel):
+ Cells are only editable in edition mode.
+
* src/common/na-xml-writer.c:
* src/common/na-xml-writer.h (na_xml_writer_export):
Now returns messages as a GSList.
diff --git a/src/nact/nact-iactions-list.c b/src/nact/nact-iactions-list.c
index 9e116c9..72fcb73 100644
--- a/src/nact/nact-iactions-list.c
+++ b/src/nact/nact-iactions-list.c
@@ -458,7 +458,11 @@ nact_iactions_list_initial_load_toplevel( NactIActionsList *instance )
gtk_tree_view_column_set_title( column, _( "Label" ));
gtk_tree_view_column_set_sort_column_id( column, IACTIONS_LIST_LABEL_COLUMN );
renderer = gtk_cell_renderer_text_new();
- g_object_set( G_OBJECT( renderer ), "editable", TRUE, NULL );
+
+ if( ialid->management_mode == IACTIONS_LIST_MANAGEMENT_MODE_EDITION ){
+ g_object_set( G_OBJECT( renderer ), "editable", TRUE, NULL );
+ }
+
gtk_tree_view_column_pack_start( column, renderer, TRUE );
gtk_tree_view_column_set_cell_data_func(
column, renderer, ( GtkTreeCellDataFunc ) display_label, instance, NULL );
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]