[gtk+/gtk-3-10] GtkAboutDialog: Add missing calls to g_type_ensure() for used types



commit ad963d1b3a5fda9eb22f95a58bcc2b407e91e495
Author: Alexander Larsson <alexl redhat com>
Date:   Mon Oct 14 15:37:52 2013 +0200

    GtkAboutDialog: Add missing calls to g_type_ensure() for used types
    
    If nothing else used these types then the template instantiation will
    fail.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=710096

 gtk/gtkaboutdialog.c |    9 +++++++++
 gtk/gtkdialog.c      |    2 ++
 2 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkaboutdialog.c b/gtk/gtkaboutdialog.c
index 467123e..c8045e3 100644
--- a/gtk/gtkaboutdialog.c
+++ b/gtk/gtkaboutdialog.c
@@ -45,6 +45,7 @@
 #include "gtkorientable.h"
 #include "gtkscrolledwindow.h"
 #include "gtktextview.h"
+#include "gtkviewport.h"
 #include "gtkshow.h"
 #include "gtkmain.h"
 #include "gtkmessagedialog.h"
@@ -685,6 +686,14 @@ gtk_about_dialog_init (GtkAboutDialog *about)
 {
   GtkAboutDialogPrivate *priv;
 
+  g_type_ensure (GTK_TYPE_IMAGE);
+  g_type_ensure (GTK_TYPE_TOGGLE_BUTTON);
+  g_type_ensure (GTK_TYPE_STACK);
+  g_type_ensure (GTK_TYPE_SCROLLED_WINDOW);
+  g_type_ensure (GTK_TYPE_VIEWPORT);
+  g_type_ensure (GTK_TYPE_GRID);
+  g_type_ensure (GTK_TYPE_TEXT_VIEW);
+
   /* Data */
   priv = gtk_about_dialog_get_instance_private (about);
   about->priv = priv;
diff --git a/gtk/gtkdialog.c b/gtk/gtkdialog.c
index 4de0c90..122be61 100644
--- a/gtk/gtkdialog.c
+++ b/gtk/gtkdialog.c
@@ -370,6 +370,8 @@ gtk_dialog_init (GtkDialog *dialog)
 {
   dialog->priv = gtk_dialog_get_instance_private (dialog);
 
+  g_type_ensure (GTK_TYPE_BUTTON_BOX);
+
   gtk_widget_init_template (GTK_WIDGET (dialog));
 
   update_spacings (dialog);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]