forked from AuroraMiddleware/gtk
eventbox: Remove unneeded checks
Size vfuncs always get non-null out variables passed, so no need to check for NULL.
This commit is contained in:
parent
d7a3e67025
commit
6be0603215
@ -500,10 +500,7 @@ gtk_event_box_get_preferred_width (GtkWidget *widget,
|
||||
GtkBin *bin = GTK_BIN (widget);
|
||||
GtkWidget *child;
|
||||
|
||||
if (minimum)
|
||||
*minimum = 0;
|
||||
|
||||
if (natural)
|
||||
*natural = 0;
|
||||
|
||||
child = gtk_bin_get_child (bin);
|
||||
@ -522,10 +519,7 @@ gtk_event_box_get_preferred_height_and_baseline_for_width (GtkWidget *widget,
|
||||
GtkBin *bin = GTK_BIN (widget);
|
||||
GtkWidget *child;
|
||||
|
||||
if (minimum)
|
||||
*minimum = 0;
|
||||
|
||||
if (natural)
|
||||
*natural = 0;
|
||||
|
||||
if (minimum_baseline)
|
||||
|
Loading…
Reference in New Issue
Block a user