Sync show-timeline action state before connecting signal handler
authorRené Stadler <mail@renestadler.de>
Thu, 24 Jan 2008 09:49:41 +0000 (11:49 +0200)
committerStefan Sauer <ensonic@users.sf.net>
Thu, 11 Sep 2014 18:51:44 +0000 (20:51 +0200)
debug-viewer/GstDebugViewer/Plugins/Timeline.py

index f0d4b8c..25df69b 100644 (file)
@@ -869,8 +869,8 @@ class TimelineFeature (FeatureBase):
 
         handler = self.handle_show_action_toggled
         action = self.action_group.get_action ("show-timeline")
-        action.connect ("toggled", handler)
         action.props.active = self.state.shown
+        action.connect ("toggled", handler)
 
     def handle_show_action_toggled (self, action):