summaryrefslogtreecommitdiff
path: root/gladeui/glade-command.c
diff options
context:
space:
mode:
authorTristan Van Berkom <tvb@src.gnome.org>2008-04-03 19:52:40 +0000
committerTristan Van Berkom <tvb@src.gnome.org>2008-04-03 19:52:40 +0000
commit64bb8141c669ab3f36a713885472045c6c2ba035 (patch)
treee612211b16213e3ca79cfa3aac10ebbeed50ae79 /gladeui/glade-command.c
parent1b84fad310e3f98deb960fc09bc6ad6ba9169671 (diff)
downloadglade-64bb8141c669ab3f36a713885472045c6c2ba035.tar.gz
merging builder branch into trunk
A plugins/gtk+/glade-keysyms.c M plugins/gtk+/glade-gtk.c M plugins/gtk+/gtk+.xml.in A plugins/gtk+/glade-accels.c M plugins/gtk+/Makefile.am A plugins/gtk+/glade-accels.h M ChangeLog M gladeui/glade-editor.c M gladeui/glade-editor-property.c M gladeui/glade-editor-property.h M gladeui/glade-widget.c M gladeui/glade-widget.h M gladeui/glade-widget-adaptor.c M gladeui/glade-command.c M gladeui/glade-widget-adaptor.h M gladeui/glade-parser.c M gladeui/glade-xml-utils.c M gladeui/glade-base-editor.c M gladeui/glade-utils.c D gladeui/glade-parser.h M gladeui/glade-signal-editor.c M gladeui/glade-xml-utils.h D gladeui/glade-keysyms.c M gladeui/glade-property.c M gladeui/glade-property-class.c M gladeui/glade-property.h M gladeui/glade-builtins.c M gladeui/glade-property-class.h M gladeui/glade-builtins.h M gladeui/glade-project.c M gladeui/glade-signal.c M gladeui/Makefile.am M gladeui/glade-signal.h svn path=/trunk/; revision=1764
Diffstat (limited to 'gladeui/glade-command.c')
-rw-r--r--gladeui/glade-command.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/gladeui/glade-command.c b/gladeui/glade-command.c
index 9bf91f65..1a1e42b1 100644
--- a/gladeui/glade-command.c
+++ b/gladeui/glade-command.c
@@ -364,8 +364,9 @@ glade_command_set_property_execute (GladeCommand *cmd)
#if 0
{
gchar *str =
- glade_property_class_make_string_from_gvalue
- (sdata->property->klass, &new_value);
+ glade_widget_adaptor_string_from_value
+ (GLADE_WIDGET_ADAPTOR (sdata->property->klass->handle),
+ sdata->property->klass, &new_value);
g_print ("Setting %s property of %s to %s (sumode: %d)\n",
sdata->property->klass->id,
@@ -550,8 +551,10 @@ glade_command_set_property_description (GladeCommandSetProperty *me)
else
{
sdata = me->sdata->data;
- value_name = glade_property_class_make_string_from_gvalue (sdata->property->klass,
- sdata->new_value);
+ value_name = glade_widget_adaptor_string_from_value
+ (GLADE_WIDGET_ADAPTOR (sdata->property->klass->handle),
+ sdata->property->klass, sdata->new_value);
+
if (!value_name || strlen (value_name) > MAX_UNDO_MENU_ITEM_VALUE_LEN
|| strchr (value_name, '_')) {
description = g_strdup_printf (_("Setting %s of %s"),