summaryrefslogtreecommitdiff
path: root/gtk/gtkfilechooser.c
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2006-05-02 23:56:43 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2006-05-02 23:56:43 +0000
commitf26aad1916445d25c99878138dfc384de67a2060 (patch)
treeb72263ecb326e82a49f1e8d1871ec4288b8aa299 /gtk/gtkfilechooser.c
parent33cddd12d78abb2efe6facba9c859017f8df9819 (diff)
downloadgtk+-f26aad1916445d25c99878138dfc384de67a2060.tar.gz
Boilerplate reduction
Diffstat (limited to 'gtk/gtkfilechooser.c')
-rw-r--r--gtk/gtkfilechooser.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/gtk/gtkfilechooser.c b/gtk/gtkfilechooser.c
index 55689952b3..4ed46e9a85 100644
--- a/gtk/gtkfilechooser.c
+++ b/gtk/gtkfilechooser.c
@@ -39,18 +39,12 @@ gtk_file_chooser_get_type (void)
if (!file_chooser_type)
{
- static const GTypeInfo file_chooser_info =
- {
- sizeof (GtkFileChooserIface), /* class_size */
- NULL, /* base_init */
- NULL, /* base_finalize */
- (GClassInitFunc)gtk_file_chooser_class_init, /* class_init */
- };
-
- file_chooser_type = g_type_register_static (G_TYPE_INTERFACE,
- I_("GtkFileChooser"),
- &file_chooser_info, 0);
-
+ file_chooser_type = g_type_register_static_simple (G_TYPE_INTERFACE,
+ I_("GtkFileChooser"),
+ sizeof (GtkFileChooserIface),
+ gtk_file_chooser_class_init,
+ 0, NULL, 0);
+
g_type_interface_add_prerequisite (file_chooser_type, GTK_TYPE_WIDGET);
}