[gedit] Remove bogus assertions in the doc sidepane.
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Remove bogus assertions in the doc sidepane.
- Date: Mon, 4 Jul 2011 13:41:43 +0000 (UTC)
commit dae312a1e86ec5bd5faa4589aa5b4d3dad831f32
Author: Paolo Borelli <pborelli gnome org>
Date: Mon Jul 4 15:44:32 2011 +0200
Remove bogus assertions in the doc sidepane.
gedit/gedit-documents-panel.c | 11 ++++-------
1 files changed, 4 insertions(+), 7 deletions(-)
---
diff --git a/gedit/gedit-documents-panel.c b/gedit/gedit-documents-panel.c
index 6d32ffb..12901fe 100644
--- a/gedit/gedit-documents-panel.c
+++ b/gedit/gedit-documents-panel.c
@@ -164,8 +164,8 @@ get_iter_from_tab (GeditDocumentsPanel *panel,
gedit_debug (DEBUG_PANEL);
g_assert (notebook != NULL || tab != NULL);
+ g_assert (tab != NULL);
g_assert (tab_iter != NULL);
- g_assert ((tab == NULL && tab_iter == NULL) || (tab != NULL && tab_iter != NULL));
search_notebook = (gedit_multi_notebook_get_n_notebooks (panel->priv->mnb) > 1);
@@ -237,6 +237,9 @@ get_iter_from_tab (GeditDocumentsPanel *panel,
if (is_cur)
{
+ g_assert (gtk_tree_store_iter_is_valid (GTK_TREE_STORE (panel->priv->model),
+ &iter));
+
*tab_iter = iter;
success = TRUE;
@@ -252,12 +255,6 @@ get_iter_from_tab (GeditDocumentsPanel *panel,
out:
- if (tab_iter != NULL)
- {
- g_assert (gtk_tree_store_iter_is_valid (GTK_TREE_STORE (panel->priv->model),
- tab_iter));
- }
-
return success;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]