~lidaobing/ubuntu-tweak/ubuntu-ubuntu-tweak

« back to all changes in this revision

Viewing changes to ubuntutweak/modules/icons.py

  • Committer: LI Daobing
  • Date: 2010-07-31 10:10:26 UTC
  • mto: This revision was merged to the branch mainline in revision 13.
  • Revision ID: lidaobing@gmail.com-20100731101026-9o3m59258q5perbo
Tags: upstream-0.5.5
ImportĀ upstreamĀ versionĀ 0.5.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/python
2
2
 
3
 
# Ubuntu Tweak - PyGTK based desktop configure tool
 
3
# Ubuntu Tweak - PyGTK based desktop configuration tool
4
4
#
5
5
# Copyright (C) 2007-2008 TualatriX <tualatrix@gmail.com>
6
6
#
85
85
 
86
86
        self.entry = WidgetFactory.create("GconfEntry", key = item["name"])
87
87
        self.entry.connect('focus-out-event', self.entry_focus_out)
 
88
        self.entry.connect_activate_signal()
88
89
        if not self.rename_button.get_active():
89
90
            self.entry.set_sensitive(False)
90
91
        vbox.pack_start(self.entry, False, False, 0)
91
92
 
92
93
    def entry_focus_out(self, widget, event):
93
 
        self.entry.get_gsetting().set_string(self.entry.get_text())
 
94
        self.entry.get_gsetting().set_value(self.entry.get_text())
94
95
 
95
96
    def colleague_changed(self, widget):
96
97
        self.show_hbox.set_sensitive(self.show_button.get_active())
104
105
            self.entry.set_text(_("Unset"))
105
106
 
106
107
class Icon(TweakModule):
107
 
    __title__ = _('Desktop Icon settings')
108
 
    __desc__ = _('Change your desktop icons behavir')
 
108
    __title__ = _('Desktop Icon Settings')
 
109
    __desc__ = _("Change the name and toggle visibilty of desktop icons")
109
110
    __icon__ = 'user-desktop'
110
 
    __url__ = 'http://ubuntu-tweak.com'
111
111
    __category__ = 'desktop'
 
112
    __desktop__ = 'gnome'
112
113
 
113
114
    def __init__(self):
114
115
        TweakModule.__init__(self)
145
146
        vbox.pack_start(button, False, False, 0)
146
147
 
147
148
        button = WidgetFactory.create("GconfCheckButton",
148
 
                                      label = _('Use "Home Folder" as desktop (Logout for changes to take effect)'),
 
149
                                      label = _('Show contents of "Home Folder" on desktop (Logout for changes to take effect)'),
149
150
                                      key = "desktop_is_home_dir")
150
151
        vbox.pack_start(button, False, False, 0)
151
152