[latexila] MainWindow: stop TeplTab::close-request signal emission
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila] MainWindow: stop TeplTab::close-request signal emission
- Date: Sat, 25 Nov 2017 13:35:35 +0000 (UTC)
commit 72b9aa0f20534435cb4d761e4f7e206d83eaa939
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sat Nov 25 07:18:24 2017 +0100
MainWindow: stop TeplTab::close-request signal emission
TeplTab::close-request has now a default object method handler, which
will be used in latexila in the future, but not yet now.
src/main_window.vala | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/main_window.vala b/src/main_window.vala
index c7f00be..b6edd4d 100644
--- a/src/main_window.vala
+++ b/src/main_window.vala
@@ -701,7 +701,10 @@ public class MainWindow : ApplicationWindow
if (tab == null)
return null;
- tab.close_request.connect (() => { close_tab (tab); });
+ tab.close_request.connect (() => {
+ close_tab (tab);
+ Signal.stop_emission_by_name (tab, "close-request");
+ });
Document doc = tab.document;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]