Logo Search packages:      
Sourcecode: panflute version File versions  Download package

def panflute::applet::prefs::Preferences::layout_visible_renderer_toggled_cb (   self,
  renderer,
  path 
)

Toggle the check box for a widget's visibility and propagate the
change to GConf.

Definition at line 182 of file prefs.py.

00182                                                                  :
        """
        Toggle the check box for a widget's visibility and propagate the
        change to GConf.
        """

        model = self.__builder.get_object ("layout_store")
        if model[path][self.LAY_COL_INTERNAL_NAME] != self.__layout.ROW_DIVIDER:
            new_visibility = not model[path][self.LAY_COL_VISIBLE]

            self.log.debug ("Setting {0} visibility to {1}".format (model[path][self.LAY_COL_INTERNAL_NAME], new_visibility))

            model[path][self.LAY_COL_VISIBLE] = new_visibility
            self.__conf.set_bool ("show_{0}".format (model[path][self.LAY_COL_INTERNAL_NAME]), new_visibility)


    def layout_top_clicked_cb (self, button):


Generated by  Doxygen 1.6.0   Back to index