forked from AuroraMiddleware/gtk
treeview: 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
9652b8cf82
commit
a158a2aa48
@ -2540,10 +2540,8 @@ gtk_tree_view_get_preferred_width (GtkWidget *widget,
|
||||
tree_view->priv->n_expand_columns++;
|
||||
}
|
||||
|
||||
if (minimum != NULL)
|
||||
*minimum = tree_view->priv->minimum_width;
|
||||
if (natural != NULL)
|
||||
*natural = tree_view->priv->natural_width;
|
||||
*minimum = tree_view->priv->minimum_width;
|
||||
*natural = tree_view->priv->natural_width;
|
||||
}
|
||||
|
||||
static void
|
||||
@ -2558,10 +2556,8 @@ gtk_tree_view_get_preferred_height (GtkWidget *widget,
|
||||
|
||||
height = gtk_tree_view_get_height (tree_view) + gtk_tree_view_get_effective_header_height (tree_view);
|
||||
|
||||
if (minimum != NULL)
|
||||
*minimum = height;
|
||||
if (natural != NULL)
|
||||
*natural = height;
|
||||
*minimum = height;
|
||||
*natural = height;
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user