[accerciser] Add a trailing underscore to identifiers which are Python keywords



commit a47442aa24f70a4df9e39534bb432fe236ae1b7a
Author: Javier HernÃndez <jhernandez emergya com>
Date:   Tue Jun 26 00:50:11 2012 +0200

    Add a trailing underscore to identifiers which are Python keywords

 macaroon/macaroon/record/main.py   |    2 +-
 src/lib/accerciser/bookmarks.py    |    2 +-
 src/lib/accerciser/main_window.py  |    2 +-
 src/lib/accerciser/prefs_dialog.py |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/macaroon/macaroon/record/main.py b/macaroon/macaroon/record/main.py
index 959db24..1a8cfdd 100644
--- a/macaroon/macaroon/record/main.py
+++ b/macaroon/macaroon/record/main.py
@@ -129,7 +129,7 @@ class MacroPreview(Gtk.Window):
     text_view.modify_font(Pango.FontDescription('Mono'))
     sw = Gtk.ScrolledWindow()
     sw.set_policy(Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC)
-    sw.set_shadow_type(Gtk.ShadowType.IN)
+    sw.set_shadow_type(Gtk.ShadowType.IN_)
     sw.add(text_view)
     vbox = Gtk.VBox()
     vbox.set_spacing(3)
diff --git a/src/lib/accerciser/bookmarks.py b/src/lib/accerciser/bookmarks.py
index 11724f1..354f8cd 100644
--- a/src/lib/accerciser/bookmarks.py
+++ b/src/lib/accerciser/bookmarks.py
@@ -335,7 +335,7 @@ class BookmarkStore(gtk.ListStore):
       tv = self._createTreeView(bookmarks_store)
       sw = gtk.ScrolledWindow()
       sw.set_policy(gtk.PolicyType.AUTOMATIC, gtk.PolicyType.AUTOMATIC)
-      sw.set_shadow_type(gtk.ShadowType.IN)
+      sw.set_shadow_type(gtk.ShadowType.IN_)
       sw.add(tv)
       hbox.pack_start(sw, True, True, 0)
       button_vbox = gtk.VBox()
diff --git a/src/lib/accerciser/main_window.py b/src/lib/accerciser/main_window.py
index 43f5053..08fca07 100644
--- a/src/lib/accerciser/main_window.py
+++ b/src/lib/accerciser/main_window.py
@@ -84,7 +84,7 @@ class AccerciserMainWindow(gtk.Window):
     self._hpaned.add2(self.pluginview1)
     sw = gtk.ScrolledWindow()
     sw.set_policy(gtk.PolicyType.AUTOMATIC, gtk.PolicyType.AUTOMATIC)
-    sw.set_shadow_type(gtk.ShadowType.IN)
+    sw.set_shadow_type(gtk.ShadowType.IN_)
     self.treeview = AccessibleTreeView(node)
     ui_manager.uimanager.insert_action_group(self.treeview.action_group, 0)
     for action in self.treeview.action_group.list_actions():
diff --git a/src/lib/accerciser/prefs_dialog.py b/src/lib/accerciser/prefs_dialog.py
index ee0ef40..63f719c 100644
--- a/src/lib/accerciser/prefs_dialog.py
+++ b/src/lib/accerciser/prefs_dialog.py
@@ -46,7 +46,7 @@ class AccerciserPreferencesDialog(gtk.Dialog):
                           (hotkeys_view, _('Global Hotkeys'))]:
       if view is not None:
         sw = gtk.ScrolledWindow()
-        sw.set_shadow_type(gtk.ShadowType.IN)
+        sw.set_shadow_type(gtk.ShadowType.IN_)
         sw.set_policy(gtk.PolicyType.AUTOMATIC, gtk.PolicyType.AUTOMATIC)
         sw.set_size_request(500, 150)
         sw.add(view)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]