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++;
|
tree_view->priv->n_expand_columns++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (minimum != NULL)
|
*minimum = tree_view->priv->minimum_width;
|
||||||
*minimum = tree_view->priv->minimum_width;
|
*natural = tree_view->priv->natural_width;
|
||||||
if (natural != NULL)
|
|
||||||
*natural = tree_view->priv->natural_width;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
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);
|
height = gtk_tree_view_get_height (tree_view) + gtk_tree_view_get_effective_header_height (tree_view);
|
||||||
|
|
||||||
if (minimum != NULL)
|
*minimum = height;
|
||||||
*minimum = height;
|
*natural = height;
|
||||||
if (natural != NULL)
|
|
||||||
*natural = height;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user