glade3 r1781 - trunk/gladeui



Author: tvb
Date: Wed Apr  9 19:36:18 2008
New Revision: 1781
URL: http://svn.gnome.org/viewvc/glade3?rev=1781&view=rev

Log:
fixed signals and properties to inherit the base version
of the widget in question.



Modified:
   trunk/gladeui/glade-property-class.c
   trunk/gladeui/glade-widget-adaptor.c

Modified: trunk/gladeui/glade-property-class.c
==============================================================================
--- trunk/gladeui/glade-property-class.c	(original)
+++ trunk/gladeui/glade-property-class.c	Wed Apr  9 19:36:18 2008
@@ -93,6 +93,9 @@
 	property_class->transfer_on_paste = FALSE;
 	property_class->weight = -1.0;
 
+	/* Initialize them to the base version */
+	property_class->version_since_major = GWA_VERSION_SINCE_MAJOR (handle);
+	property_class->version_since_minor = GWA_VERSION_SINCE_MINOR (handle);
 	return property_class;
 }
 

Modified: trunk/gladeui/glade-widget-adaptor.c
==============================================================================
--- trunk/gladeui/glade-widget-adaptor.c	(original)
+++ trunk/gladeui/glade-widget-adaptor.c	Wed Apr  9 19:36:18 2008
@@ -315,10 +315,14 @@
 			 */
 			g_assert (cur->query.signal_id != 0);
 
-			cur->adaptor = adaptor;
+			cur->adaptor = glade_widget_adaptor_get_by_type (type);
 			cur->name = (cur->query.signal_name);
 			cur->type = (gchar *) g_type_name (type);
 
+			/* Initialize signal versions to adaptor version */
+			cur->version_since_major = GWA_VERSION_SINCE_MAJOR (cur->adaptor);
+			cur->version_since_minor = GWA_VERSION_SINCE_MINOR (cur->adaptor);
+
 			list = g_list_prepend (list, cur);
 		}
 		g_free (sig_ids);



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