hamster-applet r887 - trunk/hamster



Author: tbaugis
Date: Tue Apr  7 21:51:16 2009
New Revision: 887
URL: http://svn.gnome.org/viewvc/hamster-applet?rev=887&view=rev

Log:
gtkbuilder does not expose childnode of gtkcombo anymore

Modified:
   trunk/hamster/edit_activity.py

Modified: trunk/hamster/edit_activity.py
==============================================================================
--- trunk/hamster/edit_activity.py	(original)
+++ trunk/hamster/edit_activity.py	Tue Apr  7 21:51:16 2009
@@ -335,7 +335,7 @@
             label = fact['name']
             if fact['category'] != _("Unsorted"):
                 label += "@%s" %  fact['category']
-            self.get_widget('activity_text').set_text(label)
+            self.get_widget('activity_combo').child.set_text(label)
             
             start_date = fact["start_time"]
             end_date = fact["end_time"]
@@ -574,7 +574,7 @@
             return None
     
     def figure_description(self):
-        activity = self.get_widget("activity_text").get_text().decode("utf-8")
+        activity = self.get_widget("activity_combo").child.get_text().decode("utf-8")
 
         # juggle with description - break into parts and then put together
         buf = self.get_widget('description').get_buffer()
@@ -595,7 +595,7 @@
         
     
     def on_save_button_clicked(self, button):
-        activity = self.get_widget("activity_text").get_text().decode("utf-8")
+        activity = self.get_widget("activity_combo").child.get_text().decode("utf-8")
         
         if not activity:
             return False
@@ -851,7 +851,7 @@
     def validate_fields(self):
         # do not allow empty tasks
 
-        activity_text = self.get_widget("activity_text").get_text()
+        activity_text = self.get_widget("activity_combo").child.get_text()
         start_time = self._get_datetime("start")
 
         end_time = self._get_datetime("end")



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