mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-16 23:24:16 +00:00
switch: 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
c3dd043765
commit
ddbd71e22a
@ -365,11 +365,8 @@ gtk_switch_get_preferred_width (GtkWidget *widget,
|
||||
|
||||
g_object_unref (layout);
|
||||
|
||||
if (minimum)
|
||||
*minimum = width;
|
||||
|
||||
if (natural)
|
||||
*natural = width;
|
||||
*minimum = width;
|
||||
*natural = width;
|
||||
}
|
||||
|
||||
static void
|
||||
@ -417,11 +414,8 @@ gtk_switch_get_preferred_height (GtkWidget *widget,
|
||||
g_object_unref (layout);
|
||||
g_free (str);
|
||||
|
||||
if (minimum)
|
||||
*minimum = height;
|
||||
|
||||
if (natural)
|
||||
*natural = height;
|
||||
*minimum = height;
|
||||
*natural = height;
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user