[Xfce4-commits] [apps/xfce4-terminal] 01/01: Refine previous commit
noreply at xfce.org
noreply at xfce.org
Wed Feb 8 08:06:29 CET 2017
This is an automated email from the git hooks/post-receive script.
f2404 pushed a commit to branch master
in repository apps/xfce4-terminal.
commit 70ffea0df067216e6266d44aa92601f362328807
Author: Igor <f2404 at yandex.ru>
Date: Wed Feb 8 10:06:24 2017 +0300
Refine previous commit
---
terminal/terminal-window.c | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/terminal/terminal-window.c b/terminal/terminal-window.c
index fdee2a3..5f67c39 100644
--- a/terminal/terminal-window.c
+++ b/terminal/terminal-window.c
@@ -578,12 +578,15 @@ terminal_window_delete_event (GtkWidget *widget,
if (terminal_window_confirm_close (window))
{
/* disconnect handlers for closing Set Title dialog */
- n_pages = gtk_notebook_get_n_pages (GTK_NOTEBOOK (window->priv->notebook));
- for (i = 0; i < n_pages; i++)
+ if (window->priv->title_dialog != NULL)
{
- child = gtk_notebook_get_nth_page (GTK_NOTEBOOK (window->priv->notebook), i);
- g_signal_handlers_disconnect_by_func (G_OBJECT (child),
- G_CALLBACK (title_dialog_close), window);
+ n_pages = gtk_notebook_get_n_pages (GTK_NOTEBOOK (window->priv->notebook));
+ for (i = 0; i < n_pages; i++)
+ {
+ child = gtk_notebook_get_nth_page (GTK_NOTEBOOK (window->priv->notebook), i);
+ g_signal_handlers_disconnect_by_func (G_OBJECT (child),
+ G_CALLBACK (title_dialog_close), window);
+ }
}
/* avoid a lot of page remove calls */
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list