mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 22:10:08 +00:00
tests: Add a uint8 test
... to ensure the last test works.
This commit is contained in:
parent
b7ad432654
commit
122cde9528
@ -287,6 +287,15 @@ add_tests_for_files_in_directory (GFile *dir)
|
||||
g_list_free_full (files, g_object_unref);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
parse_uint8 (const char *string,
|
||||
GValue *value,
|
||||
GError **error)
|
||||
{
|
||||
g_value_set_uchar (value, 42);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
@ -382,6 +391,12 @@ main (int argc, char **argv)
|
||||
GTK_TYPE_STATE_FLAGS,
|
||||
GTK_STATE_FLAG_NORMAL,
|
||||
G_PARAM_READABLE));
|
||||
gtk_style_properties_register_property (parse_uint8,
|
||||
g_param_spec_uchar ("uint8-property",
|
||||
"uint8 property",
|
||||
"test uint8 properties",
|
||||
0, G_MAXUINT8, 0,
|
||||
G_PARAM_READABLE));
|
||||
|
||||
if (argc < 2)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user