Commit f3339d7a authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

Move initialization code from _new to _init. (#168249, Murray Cumming)

2005-02-23  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkaboutdialog.c (gtk_about_dialog_init)
	(gtk_about_dialog_new): Move initialization code from _new to
	_init.  (#168249, Murray Cumming)
parent 20113848
2005-02-23 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkaboutdialog.c (gtk_about_dialog_init)
(gtk_about_dialog_new): Move initialization code from _new to
_init. (#168249, Murray Cumming)
Wed Feb 23 17:34:01 2005 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_node_queue_redraw): Patch from
......
2005-02-23 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkaboutdialog.c (gtk_about_dialog_init)
(gtk_about_dialog_new): Move initialization code from _new to
_init. (#168249, Murray Cumming)
Wed Feb 23 17:34:01 2005 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_node_queue_redraw): Patch from
......
2005-02-23 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkaboutdialog.c (gtk_about_dialog_init)
(gtk_about_dialog_new): Move initialization code from _new to
_init. (#168249, Murray Cumming)
Wed Feb 23 17:34:01 2005 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_node_queue_redraw): Patch from
......
......@@ -158,6 +158,7 @@ static void display_credits_dialog (GtkWidget
gpointer data);
static void display_license_dialog (GtkWidget *button,
gpointer data);
static void close_cb (GtkAboutDialog *about);
static GtkAboutDialogActivateLinkFunc activate_email_hook = NULL;
......@@ -506,6 +507,13 @@ gtk_about_dialog_init (GtkAboutDialog *about)
gtk_window_set_resizable (GTK_WINDOW (about), FALSE);
gtk_widget_pop_composite_child ();
/* force defaults */
gtk_about_dialog_set_name (about, NULL);
gtk_about_dialog_set_logo (about, NULL);
/* Close dialog on user response */
g_signal_connect (about, "response", G_CALLBACK (close_cb), NULL);
}
static void
......@@ -2091,16 +2099,6 @@ gtk_about_dialog_new (void)
{
GtkAboutDialog *dialog = g_object_new (GTK_TYPE_ABOUT_DIALOG, NULL);
/* force defaults */
gtk_about_dialog_set_name (dialog, NULL);
gtk_about_dialog_set_logo (dialog, NULL);
/* Close dialog on user response */
g_signal_connect (dialog,
"response",
G_CALLBACK (close_cb),
NULL);
return GTK_WIDGET (dialog);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment