Kaydet (Commit) 9f3bd212 authored tarafından Nick Treleaven's avatar Nick Treleaven

Fixed nasty hang when closing a tab and both the next tab and the first tab…

Fixed nasty hang when closing a tab and both the next tab and the first tab files have been externally modified

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@365 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 42e71c36
2006-05-26 Nick Treleaven <nick.treleaven@btinternet.com>
* src/interface.c, src/callbacks.c, src/callbacks.h, geany.glade:
Fixed nasty hang when closing a tab and both the next tab and the
first tab files have been externally modified.
2006-05-25 Nick Treleaven <nick.treleaven@btinternet.com>
* src/document.c: On loading use SCI_SETTEXT instead of SCI_ADDTEXT
......
......@@ -1520,6 +1520,7 @@
<property name="scrollable">True</property>
<property name="enable_popup">True</property>
<signal name="switch_page" handler="on_notebook1_switch_page" last_modification_time="Sat, 23 Apr 2005 15:17:51 GMT"/>
<signal name="switch_page" handler="on_notebook1_switch_page_after" after="yes" last_modification_time="Fri, 26 May 2006 11:47:25 GMT"/>
</widget>
<packing>
<property name="shrink">True</property>
......
......@@ -692,13 +692,35 @@ on_notebook1_switch_page (GtkNotebook *notebook,
utils_update_statusbar(idx, -1);
utils_set_window_title(idx);
utils_update_tag_list(idx, FALSE);
utils_check_disk_status(idx);
switch_notebook_page = FALSE;
}
}
void
on_notebook1_switch_page_after (GtkNotebook *notebook,
GtkNotebookPage *page,
guint page_num,
gpointer user_data)
{
gint idx;
if (closing_all) return;
// guint == -1 seems useless, but it isn't!
if (page_num == -1 && page != NULL)
idx = document_find_by_sci(SCINTILLA(page));
else
idx = document_get_n_idx(page_num);
if (idx >= 0 && app->opening_session_files == FALSE)
{
utils_check_disk_status(idx);
}
}
void
on_tv_notebook_switch_page (GtkNotebook *notebook,
GtkNotebookPage *page,
......
......@@ -570,3 +570,9 @@ on_find_previous1_activate (GtkMenuItem *menuitem,
void
on_go_to_line1_activate (GtkMenuItem *menuitem,
gpointer user_data);
void
on_notebook1_switch_page_after (GtkNotebook *notebook,
GtkNotebookPage *page,
guint page_num,
gpointer user_data);
......@@ -1163,6 +1163,9 @@ create_window1 (void)
g_signal_connect ((gpointer) notebook1, "switch_page",
G_CALLBACK (on_notebook1_switch_page),
NULL);
g_signal_connect_after ((gpointer) notebook1, "switch_page",
G_CALLBACK (on_notebook1_switch_page_after),
NULL);
atko = gtk_widget_get_accessible (window1);
atk_object_set_name (atko, _("Geany"));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment