title: Gtk.Switch.get_active() strange working
body: <p>I'm confused about the <strong>state ON/OFF of my Gtk.Switch</strong>, I'll explain you the reason. </p>
  
  <p>This is the <strong>ON state</strong>:</p>
  
  <p><img src="https://i.stack.imgur.com/5yvmd.png" alt="switch OFF  state"></p>
  
  <pre><code>if __name == '__main__':
  
      logging_file = None
      my_logger = logging.getLogger()
      my_logger.setLevel(logging.INFO)
  
      builder.get_object('switch1').connect('button-press-event', self.switching)
      builder.get_object('switch1').set_active(False)
      t = threading.Thread(target=self.printing, args=(self.__builder.get_object('switch1'),))
      t.setDaemon(True)
      t.start()
  
  
  def printing(self, widget):
  
      while True:
          time.sleep(1)
          print '%s is %s' % (widget.get_name(), str(widget.get_active())) 
          -------- it prints correctly True if the switch is set ON --------
  
  
  def switching(self, widget):
  
      if logging_file is None:
          logging_file = 'log' + '_' + time.strftime("%d.%m.%Y_%X")
          file_handler = logging.FileHandler(self.logging_file, 'w')
          file_handler.setFormatter(self.__formatter)
          my_logger.addHandler(file_handler)
  
      my_logger.info('%s is %s' % (widget.get_name(), str(widget.get_active()))) 
      -------- it prints False if the switch is set ON***, i don't know why --------
  </code></pre>
  
  <p>See the comments among the code, <strong>the switch is on a different state if i call get_active() inside his own function handler or if i call get_active() from an external function</strong>.</p>