Initialize prefs_widget_parent_class (prefs_widget_destroy): Add more
2001-09-24 Bradford Hovinen <hovinen@ximian.com> * prefs-widget.c (prefs_widget_class_init): Initialize prefs_widget_parent_class (prefs_widget_destroy): Add more paranoid checking to make sure we aren't derefing a NULL pointer
This commit is contained in:
parent
b4d4a62dbb
commit
3dc4919796
2 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
|||
2001-09-24 Bradford Hovinen <hovinen@ximian.com>
|
||||
|
||||
* prefs-widget.c (prefs_widget_class_init): Initialize
|
||||
prefs_widget_parent_class
|
||||
(prefs_widget_destroy): Add more paranoid checking to make sure we
|
||||
aren't derefing a NULL pointer
|
||||
|
||||
2001-09-24 Tambet Ingo <tambet@ximian.com>
|
||||
|
||||
* prefs-widget.c (prefs_widget_init): Fixed to build with new GAL.
|
||||
|
|
|
@ -189,8 +189,8 @@ prefs_widget_destroy (PrefsWidget *prefs_widget)
|
|||
|
||||
g_free (prefs_widget->priv);
|
||||
|
||||
if (GTK_OBJECT_CLASS (prefs_widget_parent_class)->destroy)
|
||||
(*GTK_OBJECT_CLASS (prefs_widget_parent_class)->destroy) (GTK_OBJECT (prefs_widget));
|
||||
if (prefs_widget_parent_class != NULL && GTK_OBJECT_CLASS (prefs_widget_parent_class)->destroy != NULL)
|
||||
GTK_OBJECT_CLASS (prefs_widget_parent_class)->destroy (GTK_OBJECT (prefs_widget));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -382,6 +382,8 @@ prefs_widget_class_init (PrefsWidgetClass *class)
|
|||
|
||||
class->state_changed = NULL;
|
||||
object_class->destroy = prefs_widget_destroy;
|
||||
|
||||
prefs_widget_parent_class = gtk_type_class (gtk_vbox_get_type ());
|
||||
}
|
||||
|
||||
GtkWidget *
|
||||
|
|
Loading…
Add table
Reference in a new issue