6 FILES_TO_CONVERT
="$(find . -name '*.py')"
9 for f
in $FILES_TO_CONVERT; do
11 -pe "s/import gconf\n/from gi.repository import GConf\n/g;" \
12 -pe "s/gconf\./GConf\./g;" \
13 -pe "s/GConf\.client_get_default/GConf.Client.get_default/g;" \
14 -pe "s/GConf\.CLIENT_/GConf.ClientPreloadType./g;" \
15 -pe "s/GConf\.VALUE_/GConf.ValueType./g;" \
16 -pe "s/gconf_client.notify_add\('\/desktop\/sugar\/collaboration\/publish_gadget',/return;gconf_client.notify_add\('\/desktop\/sugar\/collaboration\/publish_gadget',/g;" \
18 -pe "s/import pygtk/import gi/g;" \
19 -pe "s/pygtk.require\('2.0'\)/gi.require_version\('Gtk', '3.0'\)/g;" \
20 -pe "s/pygtk.require\(\"2.0\"\)/gi.require_version\(\"Gtk\", \"3.0\"\)/g;" \
21 -pe "s/import gtk\n/from gi.repository import Gtk\n/g;" \
22 -pe "s/(?<!\.)gtk\./Gtk\./g;" \
23 -pe "s/Gtk.ACCEL_/Gtk.AccelFlags./g;" \
24 -pe "s/Gtk.ARROW_/Gtk.ArrowType./g;" \
25 -pe "s/Gtk.ASSISTANT_PAGE_/Gtk.AssistantPageType./g;" \
26 -pe "s/Gtk.BUTTONBOX_/Gtk.ButtonBoxStyle./g;" \
27 -pe "s/Gtk.BUTTONS_/Gtk.ButtonsType./g;" \
28 -pe "s/Gtk.CELL_RENDERER_MODE_/Gtk.CellRendererMode./g;" \
29 -pe "s/Gtk.CELL_RENDERER_FOCUSED/Gtk.CellRendererState.FOCUSED/g;" \
30 -pe "s/Gtk.CELL_RENDERER_INSENSITIVE/Gtk.CellRendererState.INSENSITIVE/g;" \
31 -pe "s/Gtk.CELL_RENDERER_PRELIT/Gtk.CellRendererState.PRELIT/g;" \
32 -pe "s/Gtk.CELL_RENDERER_SORTED/Gtk.CellRendererState.SORTED/g;" \
33 -pe "s/Gtk.CELL_RENDERER_SELECTED/Gtk.CellRendererState.SELECTED/g;" \
34 -pe "s/Gtk.CORNER_/Gtk.CornerType./g;" \
35 -pe "s/Gtk.DIALOG_/Gtk.DialogFlags./g;" \
36 -pe "s/Gtk.ENTRY_ICON_/Gtk.EntryIconPosition./g;" \
37 -pe "s/Gtk.EXPAND/Gtk.AttachOptions.EXPAND/g;" \
38 -pe "s/Gtk.FALSE/False/g;" \
39 -pe "s/Gtk.FILE_CHOOSER_ACTION_/Gtk.FileChooserAction./g;" \
40 -pe "s/Gtk.FILL/Gtk.AttachOptions.FILL/g;" \
41 -pe "s/Gtk.ICON_LOOKUP_/Gtk.IconLookupFlags./g;" \
42 -pe "s/Gtk.ICON_SIZE_/Gtk.IconSize./g;" \
43 -pe "s/Gtk.IMAGE_/Gtk.ImageType./g;" \
44 -pe "s/Gtk.JUSTIFY_/Gtk.Justification./g;" \
45 -pe "s/Gtk.MESSAGE_/Gtk.MessageType./g;" \
46 -pe "s/Gtk.MOVEMENT_/Gtk.MovementStep./g;" \
47 -pe "s/Gtk.ORIENTATION_/Gtk.Orientation./g;" \
48 -pe "s/Gtk.POLICY_/Gtk.PolicyType./g;" \
49 -pe "s/Gtk.POS_/Gtk.PositionType./g;" \
50 -pe "s/Gtk.RECENT_FILTER_/Gtk.RecentFilterFlags./g;" \
51 -pe "s/Gtk.RECENT_SORT_/Gtk.RecentSortType./g;" \
52 -pe "s/Gtk.RELIEF_/Gtk.ReliefStyle./g;" \
53 -pe "s/Gtk.RESPONSE_/Gtk.ResponseType./g;" \
54 -pe "s/Gtk.SELECTION_/Gtk.SelectionMode./g;" \
55 -pe "s/Gtk.SHADOW_/Gtk.ShadowType./g;" \
56 -pe "s/Gtk.SHADOW_NONE/Gtk.ShadowType.NONE/g;" \
57 -pe "s/Gtk.SHRINK/Gtk.AttachOptions.SHRINK/g;" \
58 -pe "s/Gtk.SIZE_GROUP_/Gtk.SizeGroupMode./g;" \
59 -pe "s/Gtk.SORT_/Gtk.SortType./g;" \
60 -pe "s/Gtk.STATE_/Gtk.StateType./g;" \
61 -pe "s/Gtk.TARGET_/Gtk.TargetFlags./g;" \
62 -pe "s/Gtk.TEXT_DIR_/Gtk.TextDirection./g;" \
63 -pe "s/Gtk.TEXT_SEARCH_/Gtk.TextSearchFlags./g;" \
64 -pe "s/Gtk.TEXT_WINDOW_/Gtk.TextWindowType./g;" \
65 -pe "s/Gtk.TOOLBAR_/Gtk.ToolbarStyle./g;" \
66 -pe "s/Gtk.TREE_MODEL_/Gtk.TreeModelFlags./g;" \
67 -pe "s/Gtk.TREE_VIEW_COLUMN_/Gtk.TreeViewColumnSizing./g;" \
68 -pe "s/Gtk.TREE_VIEW_DROP_/Gtk.TreeViewDropPosition./g;" \
69 -pe "s/Gtk.TRUE/True/g;" \
70 -pe "s/Gtk.WINDOW_/Gtk.WindowType./g;" \
71 -pe "s/Gtk.DEST_DEFAULT_/Gtk.DestDefaults./g;" \
72 -pe "s/Gtk.WIN_POS_/Gtk.WindowPosition./g;" \
73 -pe "s/Gtk.WRAP_/Gtk.WrapMode./g;" \
74 -pe "s/Gtk.UI_MANAGER_/Gtk.UIManagerItemType./g;" \
75 -pe "s/Gtk.accel_map_/Gtk.AccelMap./g;" \
76 -pe "s/Gtk.settings_get_/Gtk.Settings.get_/g;" \
77 -pe "s/Gtk.icon_theme_get_default/Gtk.IconTheme.get_default/g;" \
78 -pe "s/Gtk.recent_manager_get_default/Gtk.RecentManager.get_default/g;" \
79 -pe "s/Gtk.image_new_from_stock/Gtk.Image.new_from_stock/g;" \
80 -pe "s/Gtk.image_new_from_icon_name/Gtk.Image.new_from_icon_name/g;" \
81 -pe "s/Gtk.window_set_default_icon_name/Gtk.Window.set_default_icon_name/g; " \
82 -pe "s/Gtk.combo_box_new_text/Gtk.ComboBoxText/g;" \
83 -pe "s/Gtk.keysyms\./Gdk.KEY_/g;" \
84 -pe "s/set_flags\(Gtk.CAN_DEFAULT\)/set_can_default\(True\)/g;" \
85 -pe "s/.flags\(\) & Gtk.MAPPED/.get_mapped\(\)/g;" \
86 -pe "s/.flags\(\) & Gtk.REALIZED/.get_realized\(\)/g;" \
87 -pe "s/\.window\.set_type_hint/.set_type_hint/g;" \
88 -pe "s/\.window\.set_skip_taskbar_hint/.set_skip_taskbar_hint/g;" \
89 -pe "s/\.window\.set_transient_for/.set_transient_for/g;" \
90 -pe "s/Gtk.Alignment\(/Gtk.Alignment.new\(/g;" \
91 -pe "#s/Gtk.Window.__init__\(self\)/Gtk.Window.__init__\(Gtk.WindowType.TOPLEVEL\)/g;" \
92 -pe "s/\.child([^_A-Za-z])/.get_child\(\)\1/g;" \
94 -pe "s/column.pack_start\(([^,\)]*)\)/column.pack_start\(\1, True\)/g;" \
95 -pe "s/pack_start\(([^,\)]*)\)/pack_start\(\1, True, True, 0\)/g;" \
96 -pe "s/pack_start\(([^,]*), fill=([^,\)]*)\)/pack_start\(\1, True, \2, 0\)/g;" \
97 -pe "s/pack_start\(([^,]*), expand=([^,\)]*)\)/pack_start\(\1, \2, True, 0\)/g;" \
98 -pe "s/pack_start\(([^,]*),(\s*)padding=([A-Za-z0-9._]*)\)/pack_start\(\1,\2True, True,\2\3\)/g;" \
99 -pe "s/column.pack_end\(([^,\)]*)\)/column.pack_end\(\1, True\)/g;" \
100 -pe "s/pack_end\(([^,\)]*)\)/pack_end\(\1, True, True, 0\)/g;" \
101 -pe "s/pack_end\(([^,]*), fill=([^,\)]*)\)/pack_end\(\1, True, \2, 0\)/g;" \
102 -pe "s/pack_end\(([^,]*), expand=([^,\)]*)\)/pack_end\(\1, \2, True, 0\)/g;" \
103 -pe "s/pack_end\(([^,]*),(\s*)padding=([A-Za-z0-9._]*)\)/pack_end\(\1,\2True, True,\2\3\)/g;" \
104 -pe "#s/Gtk.HBox\(\)/Gtk.HBox\(False, 0\)/g;" \
105 -pe "#s/Gtk.VBox\(\)/Gtk.VBox\(False, 0\)/g;" \
106 -pe "s/Gtk.Label\s*\(([^,\)]+)\)/Gtk.Label\(label=\1\)/g;" \
107 -pe "s/Gtk.AccelLabel\s*\(([^,\)]+)\)/Gtk.AccelLabel\(label=\1\)/g;" \
108 -pe "s/Gtk.((?:Accel)?Label)\(label=label=/Gtk.\1\(label=/g;" \
109 -pe "s/len\(self._content.get_children\(\)\) > 0/self._content.get_children\(\)/g;" \
110 -pe "s/len\(self.menu.get_children\(\)\) > 0/self.menu.get_children\(\)/g;" \
111 -pe "s/import gobject\n/from gi.repository import GObject\n/g;" \
112 -pe "s/Gtk\..*\.__init__/gobject.GObject.__init__/g;" \
114 -pe "s/rsvg.Handle\s*\(data=([^,\)]+)\)/Rsvg.Handle.new_from_data(\1)/g;" \
116 -pe "s/from gtk import gdk\n/from gi.repository import Gdk\n/g;" \
117 -pe "s/import gtk.gdk as gdk\n/from gi.repository import Gdk\n/g;" \
118 -pe "s/Gtk.gdk.x11_/GdkX11.x11_/g;" \
119 -pe "s/Gtk.gdk\./Gdk\./g;" \
120 -pe "s/(?<!\.)gdk\./Gdk\./g;" \
121 -pe "s/Gdk.screen_width/Gdk.Screen.width/g;" \
122 -pe "s/Gdk.screen_height/Gdk.Screen.height/g;" \
123 -pe "s/Gdk.screen_get_default/Gdk.Screen.get_default/g;" \
124 -pe "s/Gdk.display_get_default/Gdk.Display.get_default/g;" \
125 -pe "s/screen_, x_, y_, modmask = display.get_pointer\(\)/x_, y_, modmask = display.get_pointer\(None\)/g;" \
126 -pe "s/Gdk.WINDOW_TYPE_HINT_/Gdk.WindowTypeHint./g;" \
127 -pe "s/Gdk.SHIFT_MASK/Gdk.ModifierType.SHIFT_MASK/g;" \
128 -pe "s/Gdk.LOCK_MASK/Gdk.ModifierType.LOCK_MASK/g;" \
129 -pe "s/Gdk.CONTROL_MASK/Gdk.ModifierType.CONTROL_MASK/g;" \
130 -pe "s/Gdk.MOD1_MASK/Gdk.ModifierType.MOD1_MASK/g;" \
131 -pe "s/Gdk.MOD2_MASK/Gdk.ModifierType.MOD2_MASK/g;" \
132 -pe "s/Gdk.MOD3_MASK/Gdk.ModifierType.MOD3_MASK/g;" \
133 -pe "s/Gdk.MOD4_MASK/Gdk.ModifierType.MOD4_MASK/g;" \
134 -pe "s/Gdk.MOD5_MASK/Gdk.ModifierType.MOD5_MASK/g;" \
135 -pe "s/Gdk.BUTTON1_MASK/Gdk.ModifierType.BUTTON1_MASK/g;" \
136 -pe "s/Gdk.BUTTON2_MASK/Gdk.ModifierType.BUTTON2_MASK/g;" \
137 -pe "s/Gdk.BUTTON3_MASK/Gdk.ModifierType.BUTTON3_MASK/g;" \
138 -pe "s/Gdk.BUTTON4_MASK/Gdk.ModifierType.BUTTON4_MASK/g;" \
139 -pe "s/Gdk.BUTTON5_MASK/Gdk.ModifierType.BUTTON5_MASK/g;" \
140 -pe "s/Gdk.RELEASE_MASK/Gdk.ModifierType.RELEASE_MASK/g;" \
141 -pe "s/Gdk.MODIFIER_MASK/Gdk.ModifierType.MODIFIER_MASK/g;" \
142 -pe "s/Gdk.([A-Z_0-9]*)_MASK/Gdk.EventMask.\1_MASK/g;" \
143 -pe "s/Gdk.VISIBILITY_FULLY_OBSCURED/Gdk.VisibilityState.FULLY_OBSCURED/g;" \
144 -pe "s/Gdk.NOTIFY_ANCESTOR/Gdk.NotifyType.ANCESTOR/g;" \
145 -pe "s/Gdk.NOTIFY_INFERIOR/Gdk.NotifyType.INFERIOR/g;" \
146 -pe "s/Gdk.NOTIFY_NONLINEAR_VIRTUAL/Gdk.NotifyType.NONLINEAR_VIRTUAL/g;" \
147 -pe "s/Gdk.NOTIFY_NONLINEAR/Gdk.NotifyType.NONLINEAR/g;" \
148 -pe "s/Gdk.NOTIFY_UNKNOWN/Gdk.NotifyType.UNKNOWN/g;" \
149 -pe "s/Gdk.NOTIFY_VIRTUAL/Gdk.NotifyType.VIRTUAL/g;" \
150 -pe "s/Gdk.PROP_MODE_APPEND/Gdk.PropMode.APPEND/g;" \
151 -pe "s/Gdk.PROP_MODE_PREPEND/Gdk.PropMode.PREPEND/g;" \
152 -pe "s/Gdk.PROP_MODE_REPLACE/Gdk.PropMode.REPLACE/g;" \
153 -pe "s/Gdk.BUTTON_PRESS/Gdk.EventType.BUTTON_PRESS/g;" \
154 -pe "s/Gdk.ACTION_/Gdk.DragAction./g;" \
155 -pe "s/Gdk.GRAB_/Gdk.GrabStatus./g;" \
156 -pe "s/Gdk.SCROLL_(DOWN|LEFT|RIGHT|UP)/Gdk.ScrollDirection.\1/g;" \
157 -pe "s/Gdk.([A-Z]+_(PTR|CURSOR))/Gdk.CursorType.\1/g;" \
158 -pe "s/Gdk.(CROSSHAIR)/Gdk.CursorType.\1/g;" \
159 -pe "s/Gdk.(WATCH)/Gdk.CursorType.\1/g;" \
160 -pe "s/Gdk.(ARROW)/Gdk.CursorType.\1/g;" \
161 -pe "s/Gdk.(CLOCK)/Gdk.CursorType.\1/g;" \
162 -pe "s/Gdk.WINDOW_STATE_(ABOVE|BELOW|FOCUSED|FULLSCREEN|ICONIFIED|MAXIMIZED|STICKY|WITHDRAWN)/Gdk.WindowState.\1/g;" \
163 -pe "s/Gdk.Cursor\s*\(/Gdk.Cursor.new\(/g;" \
164 -pe "s/#Gdk.Rectangle\(([^,\)]*), ([^,\)]*), ([^,\)]*), ([^,\)]*)\)/\1, \2, \3, \4/g;" \
165 -pe "s/Gdk.Rectangle//g;" \
166 -pe "s/intersection = child_rect.intersect/intersects_, intersection = child_rect.intersect/g;" \
167 -pe "s/event.state/event.get_state\(\)/g;" \
169 -pe "s/Gdk.pixbuf_/GdkPixbuf.Pixbuf./g;" \
170 -pe "s/Gdk.Pixbuf/GdkPixbuf.Pixbuf/g;" \
171 -pe "s/Gdk.INTERP_/GdkPixbuf.InterpType./g;" \
172 -pe "s/Gdk.COLORSPACE_RGB/GdkPixbuf.Colorspace.RGB/g;" \
174 -pe "s/import pango\n/from gi.repository import Pango\n/g;" \
175 -pe "s/pango\./Pango\./g;" \
176 -pe "s/Pango.ALIGN_/Pango.Alignment./g;" \
177 -pe "s/Pango.ELLIPSIZE_/Pango.EllipsizeMode./g;" \
178 -pe "s/Pango.STYLE_/Pango.Style./g;" \
179 -pe "s/Pango.UNDERLINE_/Pango.Underline./g;" \
180 -pe "s/Pango.WEIGHT_/Pango.Weight./g;" \
181 -pe "s/Pango.WRAP_/Pango.WrapMode./g;" \
182 -pe "s/Pango.TAB_/Pango.TabAlign./g;" \
184 -pe "s/import atk\n/from gi.repository import Atk\n/g;" \
185 -pe "s/atk\./Atk\./g;" \
186 -pe "s/Atk.HYPERLINK_/Atk.HyperlinkStateFlags./g;" \
187 -pe "s/Atk.KEY_EVENT_/Atk.KeyEventType./g;" \
188 -pe "s/Atk.LAYER_/Atk.Layer./g;" \
189 -pe "s/Atk.RELATION_/Atk.RelationType./g;" \
190 -pe "s/Atk.ROLE_/Atk.Role./g;" \
191 -pe "s/Atk.STATE_/Atk.StateType./g;" \
192 -pe "s/Atk.TEXT_ATTR_/Atk.TextAttribute./g;" \
193 -pe "s/Atk.TEXT_BOUNDARY_/Atk.TextBoundary./g;" \
194 -pe "s/Atk.TEXT_CLIP_/Atk.TextClipType./g;" \
196 -pe "s/import gio\n/from gi.repository import Gio\n/g;" \
197 -pe "s/gio\./Gio\./g;" \
198 -pe "s/Gio\.File\(uri=/Gio\.File\.new_for_uri\(/g;" \
199 -pe "s/Gio\.File\(path=/Gio\.File\.new_for_path\(/g;" \
200 -pe "s/Gio.FILE_COPY_/Gio.FileCopyFlags./g;" \
201 -pe "s/Gio.FILE_CREATE_/Gio.FileCreateFlags./g;" \
202 -pe "s/Gio.FILE_MONITOR_EVENT_/Gio.FileMonitorEvent./g;" \
203 -pe "s/Gio.FILE_MONITOR_/Gio.FileMonitorFlags./g;" \
204 -pe "s/Gio.FILE_TYPE_/Gio.FileType./g;" \
205 -pe "s/Gio.FILE_QUERY_INFO_/Gio.FileQueryInfoFlags./g;" \
206 -pe "s/Gio.MOUNT_MOUNT_/Gio.MountMountFlags./g;" \
207 -pe "s/Gio.MOUNT_OPERATION_/Gio.MountOperationResult./g;" \
208 -pe "s/Gio.MOUNT_UNMOUNT_/Gio.MountUnmountFlags./g;" \
209 -pe "s/Gio.OUTPUT_STREAM_SPLICE_/Gio.OutputStreamSpliceFlags./g;" \
210 -pe "s/Gio.vfs_/Gio.Vfs./g;" \
212 -pe "#s/import glib\n/from gi.repository import GLib\n/g;" \
213 -pe "#s/(?<!\.)glib\./GLib\./g;" \
214 -pe "#s/GLib.IO_(ERR|HUP|IN|NVAL|OUT|PRI)/GLib.IOCondition./g;" \
215 -pe "#s/GLib.IO_FLAG_/GLib.IOFlags./g;" \
216 -pe "#s/GLib.IO_STATUS_/GLib.IOStatus./g;" \
217 -pe "#s/GLib.OPTION_ERROR_/GLib.OptionError./g;" \
218 -pe "#s/GLib.OPTION_FLAG_/GLib.OptionFlags./g;" \
219 -pe "#s/GLib.SPAWN_/GLib.SpawnFlags./g;" \
220 -pe "#s/GLib.USER_DIRECTORY_/GLib.UserDirectory.DIRECTORY_/g;" \
222 -pe "s/(?<!\.)gobject\./GObject\./g;" \
223 -pe "s/GObject.SIGNAL_/GObject.SignalFlags./g;" \
224 -pe "s/GObject.TYPE_NONE/None/g;" \
226 -pe "s/import hippo\n/from gi.repository import Hippo\n/g;" \
227 -pe "s/hippo\./Hippo\./g;" \
228 -pe "s/Hippo\..*\.__init__/gobject.GObject.__init__/g;" \
229 -pe "s/Hippo.PACK_/Hippo.PackFlags./g;" \
230 -pe "s/Hippo.ORIENTATION_/Hippo.Orientation./g;" \
231 -pe "#s/insert_sorted\(([^,\)]*), ([^,\)]*), ([^,\)]*)\)/insert_sorted\(\1, \2, \3, None\)/g;" \
232 -pe "s/self\._box\.insert_sorted/#self\._box\.insert_sorted/g;" \
233 -pe "s/self._box.append\(([^,\)]*)\)/self._box.append\(\1, 0\)/g;" \
234 -pe "s/self.append\(self._buddy_icon\)/self.append\(self._buddy_icon, 0\)/g;" \
235 -pe "s/self._box.sort\(([^,\)]*)\)/self._box.sort\(\1, None\)/g;" \
237 -pe "s/import wnck\n/from gi.repository import Wnck\n/g;" \
238 -pe "s/wnck\./Wnck\./g;" \
239 -pe "s/Wnck.screen_get_default/Wnck.Screen.get_default/g;" \
240 -pe "s/Wnck.WINDOW_/Wnck.WindowType./g;" \
242 -pe "s/from sugar import _sugarext\n/from gi.repository import SugarExt\n/g;" \
243 -pe "s/_sugarext\.ICON_ENTRY_/SugarExt.SexyIconEntryPosition./g;" \
244 -pe "s/_sugarext\.IconEntry/SugarExt.SexyIconEntry/g;" \
245 -pe "s/_sugarext\.SMClientXSMP/SugarExt.GsmClientXSMP/g;" \
246 -pe "s/_sugarext\.VolumeAlsa/SugarExt.AcmeVolumeAlsa/g;" \
247 -pe "s/_sugarext\./SugarExt\./g;" \
249 -pe "s/import gtksourceview2\n/from gi.repository import GtkSource\n/g;" \
250 -pe "s/import gtksourceview2 as gsv\n/from gi.repository import GtkSource\n/g;" \
251 -pe "s/gtksourceview2\./GtkSource\./g;" \
252 -pe "s/gsv\./GtkSource\./g;" \
253 -pe "s/GtkSource.DRAW_SPACES_/GtkSource.DrawSpacesFlags./g;" \
254 -pe "s/GtkSource.SMART_HOME_END_/GtkSource.SmartHomeEndType./g;" \
255 -pe "s/GtkSource.style_scheme_manager_get_default/GtkSource.StyleSchemeManager.get_default/g;" \
256 -pe "s/GtkSource.language_manager_get_default/GtkSource.LanguageManager.get_default/g;" \
258 -pe "#s/import cairo\n/from gi.repository import cairo\n/g;" \
260 -pe "s/SugarExt.xsmp_init\(\)/'mec'/g;" \
261 -pe "s/SugarExt.xsmp_run\(\)/#SugarExt.xsmp_run\(\)/g;" \
262 -pe "s/SugarExt.session_create_global\(\)/None #SugarExt.session_create_global\(\)/g;" \
263 -pe "s/self.session.start\(\)/return #self.session.start\(\)/g;" \
265 -pe "s/self._box.sort\(self._layout.compare_activities, None\)/pass #self._box.sort(self._layout.compare_activities, None)/g;" \
266 -pe "s/attach_points = info.get_attach_points/has_attach_points_, attach_points = info.get_attach_points/g;" \
267 -pe "s/attach_points\[0\]\[0\]/attach_points\[0\].x/g;" \
268 -pe "s/attach_points\[0\]\[1\]/attach_points\[0\].y/g;" \
269 -pe "s/has_attach_points_/return 0,0;has_attach_points_/g;" \
270 -pe "s/gobject.GObject.__init__\(self, self._model_filter\)/gobject.GObject.__init__\(self, model=self._model_filter\)/g;" \
271 -pe "s/self._model_filter.set_visible_func/return;self._model_filter.set_visible_func/g;" \
272 -pe "s/buddies_column.set_cell_data_func/return;buddies_column.set_cell_data_func/g;" \
273 -pe "s/Hippo\.cairo_surface_from_gdk_pixbuf/SugarExt\.cairo_surface_from_pixbuf/g;" \
275 -pe "s/import pynotify\n/from gi.repository import Notify\n/g;" \
276 -pe "s/pynotify\./Notify\./g;" \
278 -pe "s/import webkit\n/from gi.repository import WebKit\n/g;" \
279 -pe "s/import clutter\n/from gi.repository import Clutter\n/g;" \
280 -pe "s/from clutter import cogl\n/from gi.repository import Cogl\n/g;" \
281 -pe "s/(?<!\.)clutter\./Clutter\./g;" \
282 -pe "s/(?<!\.)cogl\./Cogl\./g;" \
283 -pe "s/Clutter.ACTOR_/Clutter.ActorFlags./g;" \
284 -pe "s/Clutter.ALLOCATION_/Clutter.AllocationFlags./g;" \
285 -pe "s/Clutter.BIND_/Clutter.BindCoordinate./g;" \
286 -pe "s/Clutter.BIN_ALIGNMENT_/Clutter.BinAlignment./g;" \
287 -pe "s/Clutter.BOX_ALIGNMENT_/Clutter.BoxAlignment./g;" \
288 -pe "s/Clutter.DRAG_/Clutter.DragAxis./g;" \
289 -pe "s/Clutter.EASE_/Clutter.AnimationMode./g;" \
290 -pe "s/Clutter.FEATURE_/Clutter.FeatureFlags./g;" \
291 -pe "s/Clutter.FLOW_/Clutter.FLOW_ORIENTATION./g;" \
292 -pe "s/Clutter.FONT_/Clutter.FontFlags./g;" \
293 -pe "s/Clutter.GRAVITY_/Clutter.Gravity./g;" \
294 -pe "s/Clutter.INTERPOLATION/Clutter.Interpolation./g;" \
295 -pe "s/Clutter.LINEAR/Clutter.AnimationMode.LINEAR/g;" \
296 -pe "s/Clutter.PATH_/Clutter.PathNodeType./g;" \
297 -pe "s/Clutter.PICK_/Clutter.PickMode./g;" \
298 -pe "s/Clutter.REQUEST_/Clutter.RequestMode./g;" \
299 -pe "s/Clutter.ROTATE_/Clutter.RotateDirection./g;" \
300 -pe "s/Clutter.SCRIPT_/Clutter.ScriptError./g;" \
301 -pe "s/Clutter.STAGE_STATE_/Clutter.StageState./g;" \
302 -pe "s/Clutter.TABLE_ALIGNMENT_/Clutter.TableAlignment./g;" \
303 -pe "s/Clutter.TEXTURE_ERROR_/Clutter.TextureError./g;" \
304 -pe "s/Clutter.TEXTURE_/Clutter.TextureFlags./g;" \
305 -pe "s/Clutter.TEXT_/Clutter.TextDirection./g;" \
306 -pe "s/Clutter.TIMELINE_/Clutter.TimelineDirection./g;" \
307 -pe "s/Clutter.UNIT_/Clutter.UnitType./g;" \
308 -pe "s/Clutter.X_AXIS/Clutter.RotateAxis.X_AXIS/g;" \
309 -pe "s/Clutter.Y_AXIS/Clutter.RotateAxis.Y_AXIS/g;" \
310 -pe "s/Clutter.Z_AXIS/Clutter.RotateAxis.Z_AXIS/g;" \
311 -pe "s/Clutter.ENTER/Clutter.EventType.ENTER/g;" \
312 -pe "s/Clutter.LEAVE/Clutter.EventType.LEAVE/g;" \
313 -pe "s/Clutter.BUTTON_PRESS/Clutter.EventType.BUTTON_PRESS/g;" \
314 -pe "s/Clutter.BUTTON_RELEASE/Clutter.EventType.BUTTON_RELEASE/g;" \
315 -pe "s/Clutter.KEY_PRESS/Clutter.EventType.KEY_PRESS/g;" \
316 -pe "s/Clutter.KEY_RELEASE/Clutter.EventType.KEY_RELEASE/g;" \
317 -pe "s/Clutter.SCROLL/Clutter.EventType.SCROLL/g;" \
318 -pe "s/Clutter.DELETE/Clutter.EventType.DELETE/g;" \
319 -pe "s/Clutter.CLIENT_MESSAGE/Clutter.EventType.CLIENT_MESSAGE/g;" \
320 -pe "s/Clutter.DESTROY_NOTIFY/Clutter.EventType.DESTROY_NOTIFY/g;" \
321 -pe "s/Clutter.STAGE_STATE/Clutter.EventType.STAGE_STATE/g;" \
322 -pe "s/Clutter.MOTION/Clutter.EventType.MOTION/g;" \
323 -pe "s/Clutter.BUTTON1_MASK/Clutter.ModifierType.BUTTON1_MASK/g;" \
324 -pe "s/Clutter.BUTTON2_MASK/Clutter.ModifierType.BUTTON2_MASK/g;" \
325 -pe "s/Clutter.BUTTON3_MASK/Clutter.ModifierType.BUTTON3_MASK/g;" \
326 -pe "s/Clutter.BUTTON4_MASK/Clutter.ModifierType.BUTTON4_MASK/g;" \
327 -pe "s/Clutter.BUTTON5_MASK/Clutter.ModifierType.BUTTON5_MASK/g;" \
328 -pe "s/Clutter.CONTROL_MASK/Clutter.ModifierType.CONTROL_MASK/g;" \
329 -pe "s/Clutter.HYPER_MASK/Clutter.ModifierType.HYPER_MASK/g;" \
330 -pe "s/Clutter.LOCK_MASK/Clutter.ModifierType.LOCK_MASK/g;" \
331 -pe "s/Clutter.META_MASK/Clutter.ModifierType.META_MASK/g;" \
332 -pe "s/Clutter.MOD1_MASK/Clutter.ModifierType.MOD1_MASK/g;" \
333 -pe "s/Clutter.MOD2_MASK/Clutter.ModifierType.MOD2_MASK/g;" \
334 -pe "s/Clutter.MOD3_MASK/Clutter.ModifierType.MOD3_MASK/g;" \
335 -pe "s/Clutter.MOD4_MASK/Clutter.ModifierType.MOD4_MASK/g;" \
336 -pe "s/Clutter.MOD5_MASK/Clutter.ModifierType.MOD5_MASK/g;" \
337 -pe "s/Clutter.MODIFIER_MASK/Clutter.ModifierType.MODIFIER_MASK/g;" \
338 -pe "s/Clutter.MODIFIER_RESERVED_13_MASK/Clutter.ModifierType.MODIFIER_RESERVED_13_MASK/g;" \
339 -pe "s/Clutter.MODIFIER_RESERVED_14_MASK/Clutter.ModifierType.MODIFIER_RESERVED_14_MASK/g;" \
340 -pe "s/Clutter.MODIFIER_RESERVED_15_MASK/Clutter.ModifierType.MODIFIER_RESERVED_15_MASK/g;" \
341 -pe "s/Clutter.MODIFIER_RESERVED_16_MASK/Clutter.ModifierType.MODIFIER_RESERVED_16_MASK/g;" \
342 -pe "s/Clutter.MODIFIER_RESERVED_17_MASK/Clutter.ModifierType.MODIFIER_RESERVED_17_MASK/g;" \
343 -pe "s/Clutter.MODIFIER_RESERVED_18_MASK/Clutter.ModifierType.MODIFIER_RESERVED_18_MASK/g;" \
344 -pe "s/Clutter.MODIFIER_RESERVED_19_MASK/Clutter.ModifierType.MODIFIER_RESERVED_19_MASK/g;" \
345 -pe "s/Clutter.MODIFIER_RESERVED_20_MASK/Clutter.ModifierType.MODIFIER_RESERVED_20_MASK/g;" \
346 -pe "s/Clutter.MODIFIER_RESERVED_21_MASK/Clutter.ModifierType.MODIFIER_RESERVED_21_MASK/g;" \
347 -pe "s/Clutter.MODIFIER_RESERVED_22_MASK/Clutter.ModifierType.MODIFIER_RESERVED_22_MASK/g;" \
348 -pe "s/Clutter.MODIFIER_RESERVED_23_MASK/Clutter.ModifierType.MODIFIER_RESERVED_23_MASK/g;" \
349 -pe "s/Clutter.MODIFIER_RESERVED_24_MASK/Clutter.ModifierType.MODIFIER_RESERVED_24_MASK/g;" \
350 -pe "s/Clutter.MODIFIER_RESERVED_25_MASK/Clutter.ModifierType.MODIFIER_RESERVED_25_MASK/g;" \
351 -pe "s/Clutter.MODIFIER_RESERVED_29_MASK/Clutter.ModifierType.MODIFIER_RESERVED_29_MASK/g;" \
352 -pe "s/Clutter.RELEASE_MASK/Clutter.ModifierType.RELEASE_MASK/g;" \
353 -pe "s/Clutter.SHIFT_MASK/Clutter.ModifierType.SHIFT_MASK/g;" \
354 -pe "s/Clutter.SUPER_MASK/Clutter.ModifierType.SUPER_MASK/g;" \
356 -pe "s/import gst\n/from gi.repository import Gst\n/g;" \
357 -pe "s/(?<!\.)gst\./Gst\./g;" \
358 -pe "s/Gst.element_factory_find/Gst.ElementFactory.find/g;" \
359 -pe "s/Gst.element_factory_make/Gst.ElementFactory.make/g;" \
360 -pe "s/Gst.caps_from_string/Gst.Caps.from_string/g;" \
361 -pe "s/Gst.STATE_CHANGE_/Gst.StateChangeReturn./g;" \
362 -pe "s/Gst.STATE_/Gst.State./g;" \
363 -pe "s/Gst.MESSAGE_/Gst.MessageType./g;" \
364 -pe "s/Gst.FORMAT_/Gst.Format./g;" \
365 -pe "s/Gst.SEEK_FLAG_/Gst.SeekFlags./g;" \
366 -pe "s/Gst.SEEK_TYPE_/Gst.SeekType./g;" \
367 -pe "s/Gst.LEVEL_/Gst.DebugLevel./g;" \
368 -pe "s/Gst.URI_/Gst.URIType./g;" \
369 -pe "s/Gst.element_make_from_uri/Gst.Element.make_from_uri/g;" \
370 -pe "s/Gst.event_new_seek/Gst.Event.new_seek/g;" \
371 -pe "s/Gst.GhostPad\(/Gst.GhostPad.new\(/g;" \