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:
@ -365,11 +365,8 @@ gtk_switch_get_preferred_width (GtkWidget *widget,
|
|||||||
|
|
||||||
g_object_unref (layout);
|
g_object_unref (layout);
|
||||||
|
|
||||||
if (minimum)
|
*minimum = width;
|
||||||
*minimum = width;
|
*natural = width;
|
||||||
|
|
||||||
if (natural)
|
|
||||||
*natural = width;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -417,11 +414,8 @@ gtk_switch_get_preferred_height (GtkWidget *widget,
|
|||||||
g_object_unref (layout);
|
g_object_unref (layout);
|
||||||
g_free (str);
|
g_free (str);
|
||||||
|
|
||||||
if (minimum)
|
*minimum = height;
|
||||||
*minimum = height;
|
*natural = height;
|
||||||
|
|
||||||
if (natural)
|
|
||||||
*natural = height;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|||||||
Reference in New Issue
Block a user