And drop deprecated g_type_init() calls.
m4_define([gtk_binary_version], [3.0.0])
# required versions of other packages
-m4_define([glib_required_version], [2.33.1])
+m4_define([glib_required_version], [2.35.0])
m4_define([pango_required_version], [1.30.0])
m4_define([atk_required_version], [2.5.3])
m4_define([cairo_required_version], [1.10.0])
{
BloatPad *bloat_pad;
- g_type_init ();
-
g_set_application_name ("Bloatpad");
bloat_pad = g_object_new (bloat_pad_get_type (),
PlugMan *
plug_man_new (void)
{
- g_type_init ();
-
return g_object_new (plug_man_get_type (),
"application-id", "org.gtk.Test.plugman",
"flags", G_APPLICATION_HANDLES_OPEN,
MenuButton *
menu_button_new (void)
{
- g_type_init ();
-
return g_object_new (menu_button_get_type (),
"application-id", "org.gtk.Test.Sunny",
"flags", G_APPLICATION_HANDLES_OPEN,
_gdk_rendering_mode = GDK_RENDERING_MODE_RECORDING;
}
- g_type_init ();
-
/* Do any setup particular to the windowing system */
gdk_display_manager_get ();
}
#endif
#endif
- g_type_init ();
-
/* Translators: this message will appear immediately after the */
/* usage string - Usage: COMMAND [OPTION]... <THIS_MESSAGE> */
context =
*
* Creates a new #GtkApplication instance.
*
- * This function calls g_type_init() for you. gtk_init() is called
- * as soon as the application gets registered as the primary instance.
+ * When using #GtkApplication, it is not necessary to call gtk_init()
+ * manually. It is called as soon as the application gets registered as
+ * the primary instance.
*
* Concretely, gtk_init() is called in the default handler for the
* #GApplication::startup signal. Therefore, #GtkApplication subclasses should
{
g_return_val_if_fail (application_id == NULL || g_application_id_is_valid (application_id), NULL);
- g_type_init ();
-
return g_object_new (GTK_TYPE_APPLICATION,
"application-id", application_id,
"flags", flags,
_gtk_register_resource ();
- /* do what the call to gtk_type_init() used to do */
- g_type_init ();
-
_gtk_accel_map_init ();
/* Set the 'initialized' flag.
if (!force_update && is_cache_up_to_date (path))
return 0;
- g_type_init ();
build_cache (path);
if (strcmp (var_name, "-") != 0)
GtkWidget *w1;
gchar *path;
- g_type_init ();
gtk_init (&argc, &argv);
toplevel = gtk_window_new (GTK_WINDOW_TOPLEVEL);
{
GtkWidget *w;
- g_type_init ();
gtk_init (&argc, &argv);
toplevel = gtk_window_new (GTK_WINDOW_TOPLEVEL);
GtkPrintOperation *print;
GtkPrintSettings *settings;
- g_type_init ();
-
settings = gtk_print_settings_new ();
/* gtk_print_settings_set_printer (settings, "printer"); */