while (gtk_tree_model_iter_nth_child (model, &child_iter, iter, 0))
gtk_tree_store_remove (GTK_TREE_STORE (model), &child_iter);
}
- else
- {
- parent = katze_item_get_parent (item);
- katze_array_remove_item (parent, item);
- }
gtk_tree_store_remove (GTK_TREE_STORE (model), iter);
g_object_unref (item);
+
+ parent = katze_item_get_parent (item);
+ katze_array_remove_item (parent, item);
}
static gboolean
{
location_action = _action_by_name (browser, "Location");
gtk_tree_model_get (model, &iter, 0, &item, -1);
- midori_browser_model_remove_item (model, item, &iter);
midori_location_action_delete_item_from_uri (
MIDORI_LOCATION_ACTION (location_action), katze_item_get_uri (item));
+ midori_browser_model_remove_item (model, item, &iter);
}
return FALSE;
{
location_action = _action_by_name (browser, "Location");
gtk_tree_model_get (model, &iter, 0, &item, -1);
- midori_browser_model_remove_item (model, item, &iter);
midori_location_action_delete_item_from_uri (
MIDORI_LOCATION_ACTION (location_action), katze_item_get_uri (item));
+ midori_browser_model_remove_item (model, item, &iter);
}
}
gtk_tree_model_get (model, &iter, 0, &item, -1);
parent = katze_item_get_parent (item);
katze_array_remove_item (parent, item);
- /* FIXME: This is a preliminary hack, until we fix it properly again */
- gtk_tree_store_remove (GTK_TREE_STORE (model), &iter);
- g_object_unref (item);
}
}