[nautilus-actions] Remove nact_icommand_tab_has_label() unused function



commit e05273ce1dbe458594b55e78299f69c9f7fc21fd
Author: Pierre Wieser <pwieser trychlos org>
Date:   Mon Oct 26 06:07:10 2009 +0100

    Remove nact_icommand_tab_has_label() unused function

 ChangeLog                    |    4 ++++
 src/nact/nact-icommand-tab.c |   23 -----------------------
 src/nact/nact-icommand-tab.h |    2 --
 3 files changed, 4 insertions(+), 25 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index aed035d..9143b03 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2009-10-26 Pierre Wieser <pwieser trychlos org>
 
+	* src/nact/nact-icommand-tab.c:
+	* src/nact/nact-icommand-tab.h (nact_icommand_tab_has_label):
+	Remove unused function.
+
 	* configure.ac: Bump version number to 2.29.2.
 
 2009-10-25 Pierre Wieser <pwieser trychlos org>
diff --git a/src/nact/nact-icommand-tab.c b/src/nact/nact-icommand-tab.c
index 78be6d0..4a682be 100644
--- a/src/nact/nact-icommand-tab.c
+++ b/src/nact/nact-icommand-tab.c
@@ -292,29 +292,6 @@ nact_icommand_tab_dispose( NactICommandTab *instance )
 	}
 }
 
-/**
- * A profile can only be saved if it has at least a label.
- * Returns TRUE if the label of the profile is not empty.
- */
-gboolean
-nact_icommand_tab_has_label( NactICommandTab *instance )
-{
-	gboolean has_label = FALSE;
-	GtkWidget *label_entry;
-	const gchar *label;
-
-	g_return_val_if_fail( NACT_IS_ICOMMAND_TAB( instance ), FALSE );
-
-	if( st_initialized && !st_finalized ){
-
-		label_entry = get_label_entry( instance );
-		label = gtk_entry_get_text( GTK_ENTRY( label_entry ));
-		has_label = ( g_utf8_strlen( label, -1 ) > 0 );
-	}
-
-	return( has_label );
-}
-
 static void
 on_iactions_list_column_edited( NactICommandTab *instance, NAObject *object, gchar *text, gint column )
 {
diff --git a/src/nact/nact-icommand-tab.h b/src/nact/nact-icommand-tab.h
index 0cbc9cf..98c3a33 100644
--- a/src/nact/nact-icommand-tab.h
+++ b/src/nact/nact-icommand-tab.h
@@ -66,8 +66,6 @@ void     nact_icommand_tab_runtime_init_toplevel( NactICommandTab *instance );
 void     nact_icommand_tab_all_widgets_showed( NactICommandTab *instance );
 void     nact_icommand_tab_dispose( NactICommandTab *instance );
 
-gboolean nact_icommand_tab_has_label( NactICommandTab *instance );
-
 G_END_DECLS
 
 #endif /* __NACT_ICOMMAND_TAB_H__ */



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