~kabikaboo/kabikaboo/gtk3

« back to all changes in this revision

Viewing changes to src/settings.py

  • Committer: Jeremy Bicha
  • Date: 2011-08-01 12:53:41 UTC
  • Revision ID: jbicha@ubuntu.com-20110801125341-6ymy2s2c4vgmrao7
* Removed unneeded checkbox from Application Name setting
* Used more specific dialog message types
* Print some basic debug text to console for our treepath problems
* Added classifiers to setup.py
* First work on l10n support

Notes
* From the po directory, run intltool-update -p -g kabikaboo to update
the translation template.
* Strings in the .ui files are translatable by default. Remove the
translatable="yes" key manually if they ought not be translated
 (like the bullets)
* To mark strings as translatable, encase them in an extra (_) function
For instance (_("translateme"))

Show diffs side-by-side

added added

removed removed

Lines of Context:
127
127
        #calculate_statistics
128
128
        menu_item = self.builder.get_object("checkbutton_calculate_statistics")
129
129
        menu_item.connect("toggled", self.checkbutton_calculate_statistics_callback)
130
 
        #show_application_name
131
 
        menu_item = self.builder.get_object("checkbutton_show_application_name")
132
 
        menu_item.connect("toggled", self.checkbutton_show_application_name_callback)
133
130
        #show_directory
134
131
        menu_item = self.builder.get_object("checkbutton_show_directory")
135
132
        menu_item.connect("toggled", self.checkbutton_show_directory_callback)
216
213
        self.builder.get_object("checkbutton_remember_position").set_active(self.file.remember_position)
217
214
        #calculate_statistics
218
215
        self.builder.get_object("checkbutton_calculate_statistics").set_active(self.file.calculate_statistics)
219
 
        #show_application_name
220
 
        self.builder.get_object("checkbutton_show_application_name").set_active(self.file.show_application_name)
221
216
        #show_directory
222
217
        self.builder.get_object("checkbutton_show_directory").set_active(self.file.show_directory_status)
223
218
        #tree_toolbar_intree
391
386
        self.file.calculate_statistics = menu_item.get_active()
392
387
        self.file.save_settings_default()
393
388
 
394
 
    #checkbutton_show_application_name
395
 
    def checkbutton_show_application_name_callback(self, toggled, data=None): 
396
 
        menu_item = self.builder.get_object("checkbutton_show_application_name")
397
 
        self.file.show_application_name = menu_item.get_active()
398
 
        self.kabikaboo.update_window_titles()
399
 
        self.file.save_settings_default()
400
 
 
401
389
    #checkbutton_show_directory
402
390
    def checkbutton_show_directory_callback(self, toggled, data=None): 
403
391
        menu_item = self.builder.get_object("checkbutton_show_directory")