[nautilus-actions: 25/30] display empty label when item not set
- From: Pierre Wieser <pwieser src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [nautilus-actions: 25/30] display empty label when item not set
- Date: Sat, 21 Nov 2009 18:03:22 +0000 (UTC)
commit 4ba1c2265573e1ac6b317de58387737ef56ac61c
Author: Pierre Wieser <pwieser trychlos org>
Date: Sat Nov 21 12:40:29 2009 +0100
display empty label when item not set
ChangeLog | 6 ++++++
TODO | 7 +++++++
nautilus-actions/nact/nact-iaction-tab.c | 2 +-
3 files changed, 14 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 3296a42..6fa8bc4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-11-21 Pierre Wieser <pwieser trychlos org>
+
+ * nautilus-actions/nact/nact-iaction-tab.c
+ (on_tab_updatable_selection_changed):
+ Display empty label when item not set.
+
2009-11-20 Pierre Wieser <pwieser trychlos org>
Define functions with actual type for arguments.
diff --git a/TODO b/TODO
index 05e5e0e..e07184f 100644
--- a/TODO
+++ b/TODO
@@ -87,3 +87,10 @@
- in 64bits arch, pkglibdir=/lib ??
- NACT: unable to really delete an action imported with schemas
+
+- bug when dnd to nautilus
+ see https://bugzilla.gnome.org/show_bug.cgi?id=593453
+
+- nact: dnd an action into nact, then deleting it: the '*' is always here
+
+- nact: importing an action doesn't set toolbar label
diff --git a/nautilus-actions/nact/nact-iaction-tab.c b/nautilus-actions/nact/nact-iaction-tab.c
index 46fd97d..966d399 100644
--- a/nautilus-actions/nact/nact-iaction-tab.c
+++ b/nautilus-actions/nact/nact-iaction-tab.c
@@ -406,7 +406,7 @@ on_tab_updatable_selection_changed( NactIActionTab *instance, gint count_selecte
enable_label = ( item && ( NA_IS_OBJECT_MENU( item ) || target_selection || target_background ));
label_widget = base_window_get_widget( BASE_WINDOW( instance ), "ActionMenuLabelEntry" );
- label = na_object_get_label( item );
+ label = item ? na_object_get_label( item ) : g_strdup( "" );
gtk_entry_set_text( GTK_ENTRY( label_widget ), label );
if( item ){
check_for_label( instance, GTK_ENTRY( label_widget ), label );
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]