Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/notebook.py
diff options
context:
space:
mode:
authorroot <root@ghunt-desktop.(none)>2010-10-30 19:36:14 (GMT)
committer root <root@ghunt-desktop.(none)>2010-10-30 19:36:14 (GMT)
commit966312ba98d729177238f4663d789a789663eb2e (patch)
treee39e90f5699170b3cc05e03fdd8b2e05110d9498 /notebook.py
parent7e0dfb3e1df6ffa0194048d93ac4f55df00107a0 (diff)
start working on release 7, include all new files, breakpoints still need work
Diffstat (limited to 'notebook.py')
-rw-r--r--notebook.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/notebook.py b/notebook.py
index cfb1563..1f80f7b 100644
--- a/notebook.py
+++ b/notebook.py
@@ -44,7 +44,12 @@ class Notebook(gtk.Notebook):
gobject.PARAM_READWRITE |
gobject.PARAM_CONSTRUCT_ONLY)
}
-
+ __gsignals__ = {
+ 'do-close-page': (gobject.SIGNAL_RUN_FIRST,
+ gobject.TYPE_NONE,
+ ([]))
+ }
+
def __init__(self, **kwargs):
# Initialise the Widget
#
@@ -154,8 +159,4 @@ class Notebook(gtk.Notebook):
def _close_page(self, button, child):
# Remove a page from the notebook
page = self.page_num(child)
- #If the close icon is clicked and file changed, ask about saving
- self.interactive_close = True
- self.save_page()
- if page != -1:
- self.remove_page(page)
+ self.emit('do-close-page')