mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
tests: Add a hack to silence gcc
This commit is contained in:
parent
b38249b35c
commit
55b88f1779
@ -275,19 +275,6 @@ widget_test_properties (GtkWidget *widget,
|
||||
g_free (pspecs);
|
||||
}
|
||||
|
||||
static void
|
||||
widget_fixups (GtkWidget *widget)
|
||||
{
|
||||
/* post-constructor for widgets that need additional settings to work correctly */
|
||||
if (GTK_IS_COMBO_BOX (widget))
|
||||
{
|
||||
GtkListStore *store = gtk_list_store_new (1, G_TYPE_STRING);
|
||||
g_object_set (widget, "model", store, NULL);
|
||||
g_object_unref (store);
|
||||
gtk_combo_box_append_text (GTK_COMBO_BOX (widget), "test text");
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
widget_property_tests (gconstpointer test_data)
|
||||
{
|
||||
@ -295,7 +282,6 @@ widget_property_tests (gconstpointer test_data)
|
||||
/* create widget */
|
||||
GtkWidget *widget = gtk_widget_new (wtype, NULL);
|
||||
g_object_ref_sink (widget);
|
||||
widget_fixups (widget);
|
||||
/* test property values */
|
||||
widget_test_properties (widget, +2); /* test default_value */
|
||||
widget_test_properties (widget, 0); /* test minimum */
|
||||
|
Loading…
Reference in New Issue
Block a user