[nautilus-actions] na_gtk_utils_find_widget_by_type(): removed function



commit f1fb89fa4a547d968937cfc09aa934285e38e990
Author: Pierre Wieser <pwieser trychlos org>
Date:   Wed Feb 22 20:39:06 2012 +0100

    na_gtk_utils_find_widget_by_type(): removed function

 ChangeLog               |    4 ++++
 src/core/na-gtk-utils.c |   29 -----------------------------
 src/core/na-gtk-utils.h |    1 -
 3 files changed, 4 insertions(+), 30 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index bbcea75..cdb20b9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2012-02-22 Pierre Wieser <pwieser trychlos org>
 
+	* src/core/na-gtk-utils.c:
+	* src/core/na-gtk-utils.h (na_gtk_utils_find_widget_by_type): Remove no
+	more used function.
+
 	* src/core/na-ioptions-list.c (radio_button_create_group): Directly pack
 	radio buttons inside of the GtkVBox parent container.
 
diff --git a/src/core/na-gtk-utils.c b/src/core/na-gtk-utils.c
index 73bdd7a..287586b 100644
--- a/src/core/na-gtk-utils.c
+++ b/src/core/na-gtk-utils.c
@@ -42,35 +42,6 @@ static GList *position_to_int_list( gint x, gint y, gint width, gint height );
 static void   free_int_list( GList *list );
 
 /*
- * na_gtk_utils_find_widget_by_type:
- * @container: a #GtkContainer, usually the #GtkWindow toplevel.
- * @type: the searched #GType.
- *
- * Returns: the first child widget which is of @type type.
- */
-GtkWidget *
-na_gtk_utils_find_widget_by_type( GtkContainer *container, GType type )
-{
-	GList *children = gtk_container_get_children( container );
-	GList *ic;
-	GtkWidget *found = NULL;
-
-	for( ic = children ; ic && !found ; ic = ic->next ){
-
-		if( GTK_IS_WIDGET( ic->data )){
-			if( G_OBJECT_TYPE( ic->data ) == type ){
-				found = GTK_WIDGET( ic->data );
-			} else if( GTK_IS_CONTAINER( ic->data )){
-				found = na_gtk_utils_find_widget_by_type( GTK_CONTAINER( ic->data ), type );
-			}
-		}
-	}
-
-	g_list_free( children );
-	return( found );
-}
-
-/*
  * na_gtk_utils_find_widget_by_name:
  * @container: a #GtkContainer, usually the #GtkWindow toplevel.
  * @name: the name of the searched widget.
diff --git a/src/core/na-gtk-utils.h b/src/core/na-gtk-utils.h
index 8177beb..8110c68 100644
--- a/src/core/na-gtk-utils.h
+++ b/src/core/na-gtk-utils.h
@@ -43,7 +43,6 @@ G_BEGIN_DECLS
 /* widget hierarchy
  */
 GtkWidget *na_gtk_utils_find_widget_by_name( GtkContainer *container, const gchar *name );
-GtkWidget *na_gtk_utils_find_widget_by_type( GtkContainer *container, GType type );
 
 #ifdef NA_MAINTAINER_MODE
 void       na_gtk_utils_dump_children          ( GtkContainer *container );



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