Skip to content
This repository has been archived by the owner on Apr 24, 2022. It is now read-only.

Commit

Permalink
Fix typo: rencently->recently
Browse files Browse the repository at this point in the history
  • Loading branch information
tualatrix committed Jul 19, 2012
1 parent bff0410 commit 8919b36
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion data/com.ubuntu-tweak.tweak.gschema.xml
@@ -1,6 +1,6 @@
<schemalist>
<schema id="com.ubuntu-tweak.tweak" path="/apps/ubuntu-tweak/tweak/" gettext-domain="ubuntu-tweak">
<key name="rencently-used" type="as">
<key name="recently-used" type="as">
<default>[]</default>
<summary>Recently Used</summary>
<description>
Expand Down
2 changes: 1 addition & 1 deletion data/ui/clippage.ui
Expand Up @@ -56,7 +56,7 @@
<property name="can_focus">False</property>
<property name="shadow_type">none</property>
<child>
<object class="GtkVBox" id="rencently_used_vbox">
<object class="GtkVBox" id="recently_used_box">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="border_width">3</property>
Expand Down
20 changes: 10 additions & 10 deletions ubuntutweak/clips/__init__.py
Expand Up @@ -116,17 +116,17 @@ def __init__(self):
GObject.GObject.__init__(self)
GuiBuilder.__init__(self, 'clippage.ui')

self.rencently_used_settings = GSetting('com.ubuntu-tweak.tweak.rencently-used')
self.recently_used_settings = GSetting('com.ubuntu-tweak.tweak.recently-used')
self.clips_settings = GSetting('com.ubuntu-tweak.tweak.clips')

self.load_cips()
self.setup_rencently_used()
self.setup_recently_used()

self.pack_start(self.get_object('hbox1'), True, True, 0)
self.rencently_used_settings.connect_notify(self.setup_rencently_used)
self.recently_used_settings.connect_notify(self.setup_recently_used)
self.clips_settings.connect_notify(self.load_cips, True)

self.show_all()
self.show()

def load_cips(self, a=None, b=None, do_remove=False):
log.debug("Load clips, do_remove: %s" % do_remove)
Expand Down Expand Up @@ -157,12 +157,12 @@ def load_cips(self, a=None, b=None, do_remove=False):
new_list = self.clips_settings.get_value().remove(name)
self.clips_settings.set_value(new_list)

def setup_rencently_used(self, *args):
log.debug("Overview page: setup_rencently_used")
def setup_recently_used(self, *args):
log.debug("Overview page: setup_recently_used")

used_list = self.rencently_used_settings.get_value()
for child in self.rencently_used_vbox.get_children():
self.rencently_used_vbox.remove(child)
used_list = self.recently_used_settings.get_value()
for child in self.recently_used_box.get_children():
self.recently_used_box.remove(child)

for name in used_list:
feature, module = ModuleLoader.search_module_for_name(name)
Expand All @@ -184,7 +184,7 @@ def setup_rencently_used(self, *args):
button.connect('clicked', self._on_module_button_clicked, name)
button.show_all()

self.rencently_used_vbox.pack_start(button, False, False, 0)
self.recently_used_vbox.pack_start(button, False, False, 0)

def _on_module_button_clicked(self, widget, name):
self.emit('load_module', name)
Expand Down
6 changes: 3 additions & 3 deletions ubuntutweak/main.py
Expand Up @@ -294,7 +294,7 @@ def __init__(self, feature='', module=''):
janitor_page = JanitorPage()
self.preferences_dialog = PreferencesDialog(self.mainwindow)

self.rencently_used_settings = GSetting('com.ubuntu-tweak.tweak.rencently-used')
self.recently_used_settings = GSetting('com.ubuntu-tweak.tweak.recently-used')

self.feature_dict['overview'] = self.notebook.append_page(clip_page, Gtk.Label())
# self.feature_dict['apps'] = self.notebook.append_page(apps_page, Gtk.Label())
Expand Down Expand Up @@ -534,13 +534,13 @@ def on_feature_button_clicked(self, widget, feature):

def log_used_module(self, name):
log.debug("Log the %s to Recently Used" % name)
used_list = self.rencently_used_settings.get_value()
used_list = self.recently_used_settings.get_value()

if name in used_list:
used_list.remove(name)

used_list.insert(0, name)
self.rencently_used_settings.set_value(used_list[:15])
self.recently_used_settings.set_value(used_list[:15])

def present(self):
self.mainwindow.present()

0 comments on commit 8919b36

Please sign in to comment.