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)
This commit is contained in:
Matthias Clasen 2005-02-24 03:46:25 +00:00 committed by Matthias Clasen
parent 20113848dd
commit f3339d7a05
4 changed files with 26 additions and 10 deletions

View File

@ -1,3 +1,9 @@
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

View File

@ -1,3 +1,9 @@
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

View File

@ -1,3 +1,9 @@
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

View File

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