Commit e6a51e4a authored by Tristan Van Berkom's avatar Tristan Van Berkom

More accurate fix for GtkTreeMenu regression.

The previous fix rebuilds the root menu unconditionally,
this one only rebuilds the root menu if the root path
has indeed changed.
parent 34b573b0
......@@ -961,7 +961,7 @@ row_reordered_cb (GtkTreeModel *model,
GtkTreeMenuPrivate *priv = menu->priv;
gboolean this_menu = FALSE;
if (path == NULL || priv->root == NULL)
if (gtk_tree_path_get_depth (path) == 0 && !priv->root)
this_menu = TRUE;
else if (priv->root)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment