[Sugar-devel] [PATCH sugar 16/20] Rename set to setup for consistency

Daniel Narvaez dwnarvaez at gmail.com
Mon Dec 10 14:11:42 EST 2012


From: Daniel Narvaez <dwnarvaez at gmail.com>

---
 src/jarabe/main.py |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/jarabe/main.py b/src/jarabe/main.py
index 680a72f..ceda4f8 100755
--- a/src/jarabe/main.py
+++ b/src/jarabe/main.py
@@ -100,14 +100,14 @@ def bootstrap():
 
     check_software_updates()
 
-def set_fonts():
+def setup_fonts():
     client = GConf.Client.get_default()
     face = client.get_string('/desktop/sugar/font/default_face')
     size = client.get_float('/desktop/sugar/font/default_size')
     settings = Gtk.Settings.get_default()
     settings.set_property("gtk-font-name", "%s %f" % (face, size))
 
-def set_theme():
+def setup_theme():
     settings = Gtk.Settings.get_default()
     sugar_theme = 'sugar-72'
     if 'SUGAR_SCALING' in os.environ:
@@ -173,8 +173,8 @@ def main():
     client.set_string('/apps/metacity/general/mouse_button_modifier',
                       '<Super>')
 
-    set_fonts()
-    set_theme()
+    setup_fonts()
+    setup_theme()
 
     # this must be added early, so that it executes and unfreezes the screen
     # even when we initially get blocked on the intro screen
-- 
1.7.10.4



More information about the Sugar-devel mailing list