[hamster-applet] removed the edit button. the ones in tree will do.



commit 76a93d82773d04c68e2b2f602f7ca2dae6265cee
Author: Toms Bauģis <toms baugis gmail com>
Date:   Fri Dec 11 15:27:57 2009 +0000

    removed the edit button. the ones in tree will do.

 data/applet.ui    |   17 +----------------
 hamster/applet.py |    6 ------
 2 files changed, 1 insertions(+), 22 deletions(-)
---
diff --git a/data/applet.ui b/data/applet.ui
index 989971b..6c49da7 100644
--- a/data/applet.ui
+++ b/data/applet.ui
@@ -137,21 +137,6 @@
                                 <property name="visible">True</property>
                                 <property name="spacing">4</property>
                                 <child>
-                                  <object class="GtkButton" id="edit_current_activity">
-                                    <property name="label">gtk-edit</property>
-                                    <property name="visible">True</property>
-                                    <property name="can_focus">True</property>
-                                    <property name="receives_default">True</property>
-                                    <property name="use_stock">True</property>
-                                    <signal name="clicked" handler="on_edit_current_activity_clicked"/>
-                                  </object>
-                                  <packing>
-                                    <property name="expand">False</property>
-                                    <property name="fill">False</property>
-                                    <property name="position">0</property>
-                                  </packing>
-                                </child>
-                                <child>
                                   <object class="GtkButton" id="stop_tracking">
                                     <property name="label" translatable="yes">Stop tracking</property>
                                     <property name="visible">True</property>
@@ -162,7 +147,7 @@
                                   <packing>
                                     <property name="expand">False</property>
                                     <property name="fill">False</property>
-                                    <property name="position">1</property>
+                                    <property name="position">0</property>
                                   </packing>
                                 </child>
                               </object>
diff --git a/hamster/applet.py b/hamster/applet.py
index 9d52882..c457e69 100755
--- a/hamster/applet.py
+++ b/hamster/applet.py
@@ -331,7 +331,6 @@ class HamsterApplet(object):
     def set_last_activity(self):
         activity = runtime.storage.get_last_activity()
         self.get_widget("stop_tracking").set_sensitive(activity != None)
-        self.get_widget("edit_current_activity").set_sensitive(activity != None)
         
         
         if activity:
@@ -522,11 +521,6 @@ class HamsterApplet(object):
         custom_fact = CustomFactController(self, None, fact["id"])
         custom_fact.show()
         
-    def on_edit_current_activity_clicked(self, widget):
-        if self.last_activity:
-            custom_fact = CustomFactController(self, None, self.last_activity["id"])
-            custom_fact.show()
-    
     def on_today_row_activated(self, tree, path, column):
         selection = tree.get_selection()
         (model, iter) = selection.get_selected()



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