[anjuta] preferences: fix preferences registration for recent gtk+ versions



commit a07181f2dd37b341898d75399cd97b41a16a1994
Author: Carl-Anton Ingmarsson <ca ingmarsson gmail com>
Date:   Sat Feb 6 22:48:42 2010 +0100

    preferences: fix preferences registration for recent gtk+ versions
    
    gtk_widget_get_name() is not guaranteed to be equal to gtk_buildable_get_name()
    
    https://bugzilla.gnome.org/show_bug.cgi?id=609190

 libanjuta/anjuta-preferences.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libanjuta/anjuta-preferences.c b/libanjuta/anjuta-preferences.c
index 94ebafb..f17ed31 100644
--- a/libanjuta/anjuta-preferences.c
+++ b/libanjuta/anjuta-preferences.c
@@ -1486,11 +1486,11 @@ anjuta_preferences_register_all_properties_from_builder_xml (AnjutaPreferences *
 		GtkWidget *widget, *p;
 		gboolean cont_flag = FALSE;
 
-		if (!GTK_IS_WIDGET (node->data))
+		if (!GTK_IS_WIDGET (node->data) || !GTK_IS_BUILDABLE (node->data))
 			continue;
 		
 		widget = node->data;
-		name = gtk_widget_get_name (widget);
+		name = gtk_buildable_get_name (GTK_BUILDABLE (widget));
 
 		if (!g_str_has_prefix (name, PREFERENCE_PROPERTY_PREFIX))
 			continue;



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