glade3 r1905 - in trunk: . plugins/gtk+
- From: jpu svn gnome org
- To: svn-commits-list gnome org
- Subject: glade3 r1905 - in trunk: . plugins/gtk+
- Date: Mon, 15 Sep 2008 20:25:24 +0000 (UTC)
Author: jpu
Date: Mon Sep 15 20:25:23 2008
New Revision: 1905
URL: http://svn.gnome.org/viewvc/glade3?rev=1905&view=rev
Log:
* plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in:
added glade_gtk_label_string_from_value() to avoid
param spec warnings
Modified:
trunk/ChangeLog
trunk/plugins/gtk+/glade-gtk.c
trunk/plugins/gtk+/gtk+.xml.in
Modified: trunk/plugins/gtk+/glade-gtk.c
==============================================================================
--- trunk/plugins/gtk+/glade-gtk.c (original)
+++ trunk/plugins/gtk+/glade-gtk.c Mon Sep 15 20:25:23 2008
@@ -7249,6 +7249,37 @@
}
}
+gchar *
+glade_gtk_label_string_from_value (GladeWidgetAdaptor *adaptor,
+ GladePropertyClass *klass,
+ const GValue *value)
+{
+ if (GLADE_IS_PARAM_SPEC_ATTRIBUTES (klass->pspec))
+ {
+ GList *l, *list = g_value_get_boxed (value);
+ GString *string = g_string_new ("");
+ gchar *str;
+
+ for (l = list; l; l = g_list_next (l))
+ {
+ GladeAttribute *attr = l->data;
+
+ /* Return something usefull at least to for the backend to compare */
+ gchar *attr_str = glade_gtk_string_from_attr (attr);
+ g_string_append_printf (string, "%d=%s ", attr->type, attr_str);
+ g_free (attr_str);
+ }
+ str = string->str;
+ g_string_free (string, FALSE);
+ return str;
+ }
+ else
+ return GWA_GET_CLASS
+ (GTK_TYPE_WIDGET)->string_from_value (adaptor,
+ klass,
+ value);
+}
+
/* ----------------------------- GtkTextView ------------------------------ */
static void
Modified: trunk/plugins/gtk+/gtk+.xml.in
==============================================================================
--- trunk/plugins/gtk+/gtk+.xml.in (original)
+++ trunk/plugins/gtk+/gtk+.xml.in Mon Sep 15 20:25:23 2008
@@ -584,6 +584,7 @@
<set-property-function>glade_gtk_label_set_property</set-property-function>
<read-widget-function>glade_gtk_label_read_widget</read-widget-function>
<write-widget-function>glade_gtk_label_write_widget</write-widget-function>
+ <string-from-value-function>glade_gtk_label_string_from_value</string-from-value-function>
<properties>
<property id="glade-attributes" _name="Attributes" save="False">
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]