![]() |
![]() |
![]() |
![]() |
void gtk_test_init (int *argcp
,char ***argvp
,...
);
This function is used to initialize a GTK+ test program.
It will in turn call g_test_init()
and gtk_init()
to properly
initialize the testing framework and graphical toolkit. It’ll
also set the program’s locale to “C” and prevent loading of rc
files and Gtk+ modules. This is done to make tets program
environments as deterministic as possible.
Like gtk_init()
and g_test_init()
, any known arguments will be
processed and stripped from argc
and argv
.
argcp |
Address of the |
|
argvp |
Address of the
|
[inout][array length=argcp] |
... |
currently unused |
Since: 2.14
const GType *
gtk_test_list_all_types (guint *n_types
);
Return the type ids that have been registered after
calling gtk_test_register_all_types()
.
Since: 2.14
void
gtk_test_register_all_types (void
);
Force registration of all core Gtk+ and Gdk object types.
This allowes to refer to any of those object types via
g_type_from_name()
after calling this function.
Since: 2.14
void
gtk_test_widget_wait_for_draw (GtkWidget *widget
);
Enters the main loop and waits for widget
to be “drawn”. In this
context that means it waits for the frame clock of widget
to have
run a full styling, layout and drawing cycle.
This function is intended to be used for syncing with actions that
depend on widget
relayouting or on interaction with the display
server.
Since: 3.10