[hamster-applet/gnome-2-30] fixed the stale selection issues



commit f82604903f621bc0b4d69efe69efa4ba9b2f7ecb
Author: Toms Bauģis <toms baugis gmail com>
Date:   Fri May 21 14:45:53 2010 +0100

    fixed the stale selection issues

 data/overview.ui               |    2 +-
 data/overview_totals.ui        |    1 -
 src/hamster/overview.py        |    1 +
 src/hamster/overview_totals.py |    5 +----
 4 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/data/overview.ui b/data/overview.ui
index c95462b..38c1253 100644
--- a/data/overview.ui
+++ b/data/overview.ui
@@ -315,7 +315,7 @@
                 <property name="can_focus">True</property>
                 <property name="tab_hborder">8</property>
                 <property name="tab_vborder">4</property>
-                <signal name="switch_page" handler="on_window_tabs_switch_page"/>
+                <signal name="switch_page" handler="on_window_tabs_switch_page" after="yes"/>
                 <child>
                   <object class="GtkAlignment" id="overview_tab">
                     <property name="visible">True</property>
diff --git a/data/overview_totals.ui b/data/overview_totals.ui
index 2da6ccc..51f9207 100644
--- a/data/overview_totals.ui
+++ b/data/overview_totals.ui
@@ -79,7 +79,6 @@
                 <child>
                   <object class="GtkEventBox" id="reports_box">
                     <property name="visible">True</property>
-                    <signal name="expose_event" handler="on_reports_box_expose_event"/>
                     <child>
                       <object class="GtkVBox" id="vbox1">
                         <property name="visible">True</property>
diff --git a/src/hamster/overview.py b/src/hamster/overview.py
index 51d1c8b..e8944ec 100644
--- a/src/hamster/overview.py
+++ b/src/hamster/overview.py
@@ -319,6 +319,7 @@ class Overview(object):
         elif pagenum == 1:
             self.get_widget('remove').set_sensitive(False)
             self.get_widget('edit').set_sensitive(False)
+            self.reports.do_charts()
 
 
     def on_add_clicked(self, button):
diff --git a/src/hamster/overview_totals.py b/src/hamster/overview_totals.py
index 916de15..b937465 100644
--- a/src/hamster/overview_totals.py
+++ b/src/hamster/overview_totals.py
@@ -109,10 +109,7 @@ class TotalsBox(gtk.VBox):
             self.tag_chart.bars_selected.append(idx)
             self.selected_tags.append(self.tag_sums[0][idx])
         self.do_charts()
-
-
-    def on_reports_box_expose_event(self, box, someth):
-        self.do_charts()
+        
 
     def search(self, start_date, end_date, facts):
         self.facts = facts



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]