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

def panflute::applet::prefs::Preferences::__load_layout (   self  )  [private]

Populate the layout model with the currently defined widget layout,
discarding whatever might be there currently.

Definition at line 327 of file prefs.py.

00327                             :
        """
        Populate the layout model with the currently defined widget layout,
        discarding whatever might be there currently.
        """

        # Avoid replacing the model contents if there's no real change, which
        # happens if this dialog was what made the change in GConf to begin
        # with.

        new_order = self.__get_manager_order ()
        if new_order != self.__get_internal_order ():
            try:
                self.__ignore_model_updates = True
                model = self.__builder.get_object ("layout_store")
                model.clear ()

                for internal_name in new_order:
                    display_name = self.__layout.get_display_name (internal_name)
                    if internal_name != self.__layout.ROW_DIVIDER:
                        visible = self.__conf.get_bool ("show_{0}".format (internal_name))
                    else:
                        visible = True
                    model.append ((internal_name, display_name, visible))
            finally:
                self.__ignore_model_updates = False


    def __get_manager_order (self):


Generated by  Doxygen 1.6.0   Back to index