mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-17 07:30:09 +00:00
treeview: Reorder code
This just moves a function and is in preparation for the next commit.
This commit is contained in:
parent
f54e37a23b
commit
2008148303
@ -6806,22 +6806,6 @@ do_validate_rows (GtkTreeView *tree_view, gboolean queue_resize)
|
|||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
|
||||||
validate_rows (GtkTreeView *tree_view)
|
|
||||||
{
|
|
||||||
gboolean retval;
|
|
||||||
|
|
||||||
retval = do_validate_rows (tree_view, TRUE);
|
|
||||||
|
|
||||||
if (! retval && tree_view->priv->validate_rows_timer)
|
|
||||||
{
|
|
||||||
g_source_remove (tree_view->priv->validate_rows_timer);
|
|
||||||
tree_view->priv->validate_rows_timer = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
return retval;
|
|
||||||
}
|
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
do_presize_handler (GtkTreeView *tree_view)
|
do_presize_handler (GtkTreeView *tree_view)
|
||||||
{
|
{
|
||||||
@ -6865,6 +6849,22 @@ presize_handler_callback (GtkWidget *widget,
|
|||||||
return G_SOURCE_REMOVE;
|
return G_SOURCE_REMOVE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static gboolean
|
||||||
|
validate_rows (GtkTreeView *tree_view)
|
||||||
|
{
|
||||||
|
gboolean retval;
|
||||||
|
|
||||||
|
retval = do_validate_rows (tree_view, TRUE);
|
||||||
|
|
||||||
|
if (! retval && tree_view->priv->validate_rows_timer)
|
||||||
|
{
|
||||||
|
g_source_remove (tree_view->priv->validate_rows_timer);
|
||||||
|
tree_view->priv->validate_rows_timer = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
return retval;
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
install_presize_handler (GtkTreeView *tree_view)
|
install_presize_handler (GtkTreeView *tree_view)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user