[nautilus-actions] Use GtkBuildable interface instead of 'name' field (fix #607704)
- From: Pierre Wieser <pwieser src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [nautilus-actions] Use GtkBuildable interface instead of 'name' field (fix #607704)
- Date: Sat, 23 Jan 2010 11:36:54 +0000 (UTC)
commit 8a7b884c3187167745fd6f4e0f2466432dd97a72
Author: Pierre Wieser <pwieser trychlos org>
Date: Sat Jan 23 12:37:35 2010 +0100
Use GtkBuildable interface instead of 'name' field (fix #607704)
ChangeLog | 5 +++++
nautilus-actions/nact/base-window.c | 8 +++++---
2 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 52712ca..e0b759f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-01-23 Pierre Wieser <pwieser trychlos org>
+
+ * nautilus-actions/nact/base-window.c (search_for_child_widget):
+ Use GtkBuildable interface instead of 'name' field (fix #607704).
+
2009-01-20 Pierre Wieser <pwieser trychlos org>
* .gitignore:
diff --git a/nautilus-actions/nact/base-window.c b/nautilus-actions/nact/base-window.c
index 9117067..71f30ac 100644
--- a/nautilus-actions/nact/base-window.c
+++ b/nautilus-actions/nact/base-window.c
@@ -1202,13 +1202,15 @@ search_for_child_widget( GtkContainer *container, const gchar *name )
GList *ic;
GtkWidget *found = NULL;
GtkWidget *child;
+ const gchar *child_name;
for( ic = children ; ic ; ic = ic->next ){
if( GTK_IS_WIDGET( ic->data )){
child = GTK_WIDGET( ic->data );
- if( child->name && strlen( child->name )){
- /*g_debug( "%s: child=%s", thisfn, child->name );*/
- if( !g_ascii_strcasecmp( name, child->name )){
+ child_name = gtk_buildable_get_name( GTK_BUILDABLE( child ));
+ if( child_name && strlen( child_name )){
+ /*g_debug( "%s: child=%s", thisfn, child_name );*/
+ if( !g_ascii_strcasecmp( name, child_name )){
found = child;
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]