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

def panflute::applet::prefs::Preferences::metadata_default_clicked_cb (   self,
  button 
)

Restore the metadata buffer to its default value.

Definition at line 515 of file prefs.py.

00515                                                   :
        """
        Restore the metadata buffer to its default value.
        """

        client = gconf.client_get_default ()
        schema = client.get_schema ("/schemas/apps/panflute/applet/prefs/metadata_lines")
        default = schema.get_default_value ()
        strings = [v.get_string () for v in default.get_list ()]

        buffer = self.__builder.get_object ("metadata_buffer")
        buffer.set_text ("\n".join (strings))
        buffer.set_text ("\n".join (strings))


Generated by  Doxygen 1.6.0   Back to index