diff options
-rw-r--r-- | gtk/gtkfontchooserdialog.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/gtk/gtkfontchooserdialog.c b/gtk/gtkfontchooserdialog.c index bd0d7ca390..08c529f8dd 100644 --- a/gtk/gtkfontchooserdialog.c +++ b/gtk/gtkfontchooserdialog.c @@ -151,14 +151,11 @@ gtk_font_chooser_dialog_init (GtkFontChooserDialog *fontchooserdiag) GtkWidget* gtk_font_chooser_dialog_new (const gchar *title) { - GtkFontChooserDialog *fontchooserdiag; - - fontchooserdiag = g_object_new (GTK_TYPE_FONT_CHOOSER_DIALOG, NULL); - - if (title) - gtk_window_set_title (GTK_WINDOW (fontchooserdiag), title); - - return GTK_WIDGET (fontchooserdiag); + GtkFontChooserDialog *dialog; + + dialog = g_object_new (GTK_TYPE_FONT_CHOOSER_DIALOG, "title", title, NULL); + + return GTK_WIDGET (dialog); } /** |