]> Pileus Git - ~andy/gtk/commitdiff
Bump GLib dependency to 2.35
authorMatthias Clasen <mclasen@redhat.com>
Tue, 30 Oct 2012 16:52:11 +0000 (12:52 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 4 Nov 2012 18:01:38 +0000 (13:01 -0500)
And drop deprecated g_type_init() calls.

12 files changed:
configure.ac
examples/bloatpad.c
examples/plugman.c
examples/sunny.c
gdk/gdk.c
gtk/gtk-launch.c
gtk/gtkapplication.c
gtk/gtkmain.c
gtk/updateiconcache.c
tests/testappchooser.c
tests/testappchooserbutton.c
tests/testnouiprint.c

index de69ffe7195921429cb0795ffd651282e36bab4a..393892738ebad68ea6f313bb7dc6367cac1373db 100644 (file)
@@ -39,7 +39,7 @@ AC_CONFIG_AUX_DIR([build-aux])
 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])
index 8d0da4ece1254c43e555db63ac8a7dffa76d1da9..f5cf1a9df1e637afba1cbb3f63fb6b1047475f57 100644 (file)
@@ -411,8 +411,6 @@ bloat_pad_new (void)
 {
   BloatPad *bloat_pad;
 
-  g_type_init ();
-
   g_set_application_name ("Bloatpad");
 
   bloat_pad = g_object_new (bloat_pad_get_type (),
index 7efeeae26a43bc9cf9729ddf689d15481fefcbfa..c074aa93933321998a844b725f6e94685a47989e 100644 (file)
@@ -465,8 +465,6 @@ plug_man_class_init (PlugManClass *class)
 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,
index 524b898260a5a4ea3152028be998df9e52b61d78..91787065bfe14731f105aefe62b7ffbb50421845 100644 (file)
@@ -191,8 +191,6 @@ menu_button_class_init (MenuButtonClass *class)
 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,
index 6c354b14cc10cb3755285c53856656ab70bab27d..bc668d4cdb3ee4585537cd100f79472ae961d7f7 100644 (file)
--- a/gdk/gdk.c
+++ b/gdk/gdk.c
@@ -274,8 +274,6 @@ gdk_pre_parse_libgtk_only (void)
         _gdk_rendering_mode = GDK_RENDERING_MODE_RECORDING;
     }
 
-  g_type_init ();
-
   /* Do any setup particular to the windowing system */
   gdk_display_manager_get ();
 }
index 7a15ffe8c9b5db0f2db71043e34fd345a56a228a..083b665032f83daeaa7724c7a7f76f45c5641bb9 100644 (file)
@@ -65,8 +65,6 @@ main (int argc, char *argv[])
 #endif
 #endif
 
-  g_type_init ();
-
   /* Translators: this message will appear immediately after the */
   /* usage string - Usage: COMMAND [OPTION]... <THIS_MESSAGE>    */
   context =
index 4e9de420ed45122ad2d327da04f56500530a788b..a4486c4212f9a317017d21caa13f1da5e411a70a 100644 (file)
@@ -768,8 +768,9 @@ gtk_application_class_init (GtkApplicationClass *class)
  *
  * 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
@@ -800,8 +801,6 @@ gtk_application_new (const gchar       *application_id,
 {
   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,
index 80dd3e4db1b36799453996824e8ed17e8a000b75..f490aa2f7e14fa613c716fcc323f92ab6682ed42 100644 (file)
@@ -710,9 +710,6 @@ do_post_parse_initialization (int    *argc,
 
   _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.
index 4159c9337a8a51008d1107fb50d451c5d0ff2807..d3ebd2c1175b9a54ce20186eab422416e605c981 100644 (file)
@@ -1736,7 +1736,6 @@ main (int argc, char **argv)
   if (!force_update && is_cache_up_to_date (path))
     return 0;
 
-  g_type_init ();
   build_cache (path);
 
   if (strcmp (var_name, "-") != 0)
index 76af2388a5b4f2bff4cb03357e4ec4048c0a20e6..436c56a378d4c2ee552f667eb3a181802917e65c 100644 (file)
@@ -155,7 +155,6 @@ main (int argc, char **argv)
   GtkWidget *w1;
   gchar *path;
 
-  g_type_init ();
   gtk_init (&argc, &argv);
 
   toplevel = gtk_window_new (GTK_WINDOW_TOPLEVEL);
index 92fbb1a03e86860d7eb28c6740f479532bdb0444..0bc54fe53b03d0d489f47b188ef3efdd19a567f3 100644 (file)
@@ -67,7 +67,6 @@ main (int argc,
 {
   GtkWidget *w;
 
-  g_type_init ();
   gtk_init (&argc, &argv);
 
   toplevel = gtk_window_new (GTK_WINDOW_TOPLEVEL);
index b6a7b15b9fb658379c167d748cfbf6fce78df3b2..885fa243ba2ad45d55a50181268b144cf3a711dc 100644 (file)
@@ -81,8 +81,6 @@ main (int argc, char **argv)
   GtkPrintOperation *print;
   GtkPrintSettings *settings;
 
-  g_type_init ();
-
   settings = gtk_print_settings_new ();
   /* gtk_print_settings_set_printer (settings, "printer"); */