Commit 6b676d70 authored by Johan Dahlin's avatar Johan Dahlin Committed by Johan Dahlin

Add another call to gtk_builder_add_string after using delayed properties,

2007-12-19  Johan Dahlin  <johan@gnome.org>

	* tests/buildertest.c (test_object_properties): 
	Add another call to gtk_builder_add_string after using
	delayed properties, as reported in #504393 but already
	fixed in #495769.


svn path=/trunk/; revision=19197
parent a8e6ee33
2007-12-19 Johan Dahlin <johan@gnome.org>
* tests/buildertest.c (test_object_properties):
Add another call to gtk_builder_add_string after using
delayed properties, as reported in #504393 but already
fixed in #495769.
2007-12-18 Christian Persch <chpe@gnome.org>
* configure.in:
......
......@@ -838,7 +838,11 @@ test_object_properties (void)
" </child>"
" </object>"
"</interface>";
GObject *label, *spinbutton;
const gchar buffer2[] =
"<interface>"
" <object class=\"GtkWindow\" id=\"window2\"/>"
"</interface>";
GObject *label, *spinbutton, *window;
builder = builder_new_from_string (buffer, -1, NULL);
label = gtk_builder_get_object (builder, "label1");
......@@ -846,7 +850,12 @@ test_object_properties (void)
spinbutton = gtk_builder_get_object (builder, "spinbutton1");
g_assert (spinbutton != NULL);
g_assert (spinbutton == (GObject*)gtk_label_get_mnemonic_widget (GTK_LABEL (label)));
gtk_builder_add_from_string (builder, buffer2, -1, NULL);
window = gtk_builder_get_object (builder, "window2");
g_assert (window != NULL);
gtk_widget_destroy (GTK_WIDGET (window));
g_object_unref (builder);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment