[Xfce4-commits] [apps/xfce4-terminal] 01/01: Improve code formatting
noreply at xfce.org
noreply at xfce.org
Thu Sep 28 21:59:54 CEST 2017
This is an automated email from the git hooks/post-receive script.
f 2 4 0 4 p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository apps/xfce4-terminal.
commit 3d800ed9db44f931533fd41ab669e84961257362
Author: Igor <f2404 at yandex.ru>
Date: Thu Sep 28 15:58:06 2017 -0400
Improve code formatting
---
terminal/terminal-window.c | 22 ++++++++++------------
1 file changed, 10 insertions(+), 12 deletions(-)
diff --git a/terminal/terminal-window.c b/terminal/terminal-window.c
index e62cd3c..eaa04d7 100644
--- a/terminal/terminal-window.c
+++ b/terminal/terminal-window.c
@@ -1671,18 +1671,16 @@ static void
terminal_window_action_close_other_tabs (GtkAction *action,
TerminalWindow *window)
{
- gint npages, n;
- GtkWidget *child;
- GtkNotebook *notebook = GTK_NOTEBOOK (window->priv->notebook);
-
- npages = gtk_notebook_get_n_pages (notebook);
- child = gtk_notebook_get_nth_page (notebook,
- gtk_notebook_get_current_page (notebook));
- /* move current page to the beginning */
- gtk_notebook_reorder_child (notebook, child, 0);
- /* remove the others */
- for (n = npages - 1; n > 0; n--)
- gtk_notebook_remove_page (notebook, n);
+ GtkNotebook *notebook = GTK_NOTEBOOK (window->priv->notebook);
+ gint npages, n;
+
+ /* move current page to the beginning */
+ gtk_notebook_reorder_child (notebook, GTK_WIDGET (window->priv->active), 0);
+
+ /* remove the others */
+ npages = gtk_notebook_get_n_pages (notebook);
+ for (n = npages - 1; n > 0; n--)
+ gtk_notebook_remove_page (notebook, n);
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list