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
This commit is contained in:
Alexander Larsson
2013-10-14 15:37:52 +02:00
committed by Matthias Clasen
parent 9d74f186c9
commit ad963d1b3a
2 changed files with 11 additions and 0 deletions

View File

@@ -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;

View File

@@ -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);