[gedit] Fix closing tabs when tab is not in notebook
- From: Garrett Regier <gregier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Fix closing tabs when tab is not in notebook
- Date: Sat, 1 Jan 2011 20:48:22 +0000 (UTC)
commit 63fb0a077294f5a46878336ff432bcf63ff5e50f
Author: Garrett Regier <alias301 gmail com>
Date: Sat Jan 1 12:40:58 2011 -0800
Fix closing tabs when tab is not in notebook
gedit/gedit-multi-notebook.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gedit/gedit-multi-notebook.c b/gedit/gedit-multi-notebook.c
index 0bc0d77..2a4b7ba 100644
--- a/gedit/gedit-multi-notebook.c
+++ b/gedit/gedit-multi-notebook.c
@@ -758,11 +758,12 @@ gedit_multi_notebook_close_tabs (GeditMultiNotebook *mnb,
GTK_WIDGET (l->data));
if (n != -1)
+ {
+ gedit_notebook_remove_tab (GEDIT_NOTEBOOK (nbs->data),
+ GEDIT_TAB (l->data));
break;
+ }
}
-
- gedit_notebook_remove_tab (GEDIT_NOTEBOOK (nbs->data),
- GEDIT_TAB (l->data));
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]