diff options
Diffstat (limited to 'libgnome-control-center')
-rw-r--r-- | libgnome-control-center/cc-panel.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/libgnome-control-center/cc-panel.c b/libgnome-control-center/cc-panel.c index 9cb5da500..0ed562779 100644 --- a/libgnome-control-center/cc-panel.c +++ b/libgnome-control-center/cc-panel.c @@ -131,7 +131,11 @@ cc_panel_get_preferred_width (GtkWidget *widget, GtkBin *bin = GTK_BIN (widget); GtkWidget *child; - *minimum = *natural = 0; + if (minimum != NULL) + *minimum = 0; + + if (natural != NULL) + *natural = 0; if ((child = gtk_bin_get_child (bin))) gtk_widget_get_preferred_width (child, minimum, natural); @@ -145,7 +149,11 @@ cc_panel_get_preferred_height (GtkWidget *widget, GtkBin *bin = GTK_BIN (widget); GtkWidget *child; - *minimum = *natural = 0; + if (minimum != NULL) + *minimum = 0; + + if (natural != NULL) + *natural = 0; if ((child = gtk_bin_get_child (bin))) gtk_widget_get_preferred_height (child, minimum, natural); |