forked from AuroraMiddleware/gtk
levelbar: 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
6be0603215
commit
fd527691a8
@ -545,10 +545,8 @@ gtk_level_bar_get_preferred_width (GtkWidget *widget,
|
||||
else
|
||||
width += block_width;
|
||||
|
||||
if (minimum)
|
||||
*minimum = width;
|
||||
if (natural)
|
||||
*natural = width;
|
||||
*minimum = width;
|
||||
*natural = width;
|
||||
}
|
||||
|
||||
static void
|
||||
@ -572,10 +570,8 @@ gtk_level_bar_get_preferred_height (GtkWidget *widget,
|
||||
else
|
||||
height += block_height;
|
||||
|
||||
if (minimum)
|
||||
*minimum = height;
|
||||
if (natural)
|
||||
*natural = height;
|
||||
*minimum = height;
|
||||
*natural = height;
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user