GtkFontChooserDialog: Use g_object_new to set initial values in the dialog constructor
This commit is contained in:
committed by
Matthias Clasen
parent
01f279338f
commit
a55d2f67b0
@ -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);
|
||||
GtkFontChooserDialog *dialog;
|
||||
|
||||
if (title)
|
||||
gtk_window_set_title (GTK_WINDOW (fontchooserdiag), title);
|
||||
|
||||
return GTK_WIDGET (fontchooserdiag);
|
||||
dialog = g_object_new (GTK_TYPE_FONT_CHOOSER_DIALOG, "title", title, NULL);
|
||||
|
||||
return GTK_WIDGET (dialog);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user