[nautilus-actions] Only setup toolbar label when current item is an action
- From: Pierre Wieser <pwieser src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [nautilus-actions] Only setup toolbar label when current item is an action
- Date: Mon, 26 Oct 2009 20:17:33 +0000 (UTC)
commit 24b975825f5309e1f95f551fdc344d6a27ee2160
Author: Pierre Wieser <pwieser trychlos org>
Date: Mon Oct 26 21:02:02 2009 +0100
Only setup toolbar label when current item is an action
ChangeLog | 3 +++
src/nact/nact-iaction-tab.c | 3 +--
2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 75672fc..737d80c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2009-10-26 Pierre Wieser <pwieser trychlos org>
+ * src/nact/nact-iaction-tab.c (on_toolbar_label_changed):
+ Only setup the label when current item is an action.
+
* src/nact/nact-ibackground-tab.c (setup_folders):
Only tries to setup folders when there is a current profile.
diff --git a/src/nact/nact-iaction-tab.c b/src/nact/nact-iaction-tab.c
index 1eb97b4..2224853 100644
--- a/src/nact/nact-iaction-tab.c
+++ b/src/nact/nact-iaction-tab.c
@@ -657,8 +657,7 @@ on_toolbar_label_changed( GtkEntry *entry, NactIActionTab *instance )
TAB_UPDATABLE_PROP_EDITED_ACTION, &edited,
NULL );
- if( edited ){
- g_return_if_fail( NA_IS_OBJECT_ACTION( edited ));
+ if( edited && NA_IS_OBJECT_ACTION( edited )){
label = gtk_entry_get_text( entry );
na_object_action_toolbar_set_label( NA_OBJECT_ACTION( edited ), label );
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]