Run pygi-convert.sh for automatic conversion from GTK2 to GTK3 + pygi.

This is only on a best-effort basis; the code will be in a broken state after
this patch and need to be fixed manually.

The purpose of committing the intermediate, non-working output is to make it
reproducible. It's impractical to manually review the changes.

The exact version used was 4f637212f13b197a95c824967a58496b9e3b877c from the
main pygobject repository [1] plus a custom patch [2] that hasn't been sent
upstream yet.

[1] git://git.gnome.org/pygobject
[2] https://sascha.silbe.org/patches/pygobject-convert-sugar-20111122.patch

Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
This commit is contained in:
Sascha Silbe
2011-11-15 19:29:07 +01:00
committed by Simon Schampijer
parent aed295ec4e
commit 820efa56b9
47 changed files with 818 additions and 818 deletions
+8 -8
View File
@@ -25,9 +25,9 @@ import time
from datetime import datetime
import os
import tempfile
import gobject
import gconf
import gio
from gi.repository import GObject
from gi.repository import GConf
from gi.repository import Gio
import dbus
import dbus.glib
@@ -77,14 +77,14 @@ updated = dispatch.Signal()
_get_data_store()
class DSMetadata(gobject.GObject):
class DSMetadata(GObject.GObject):
"""A representation of the metadata associated with a DS entry."""
__gsignals__ = {
'updated': (gobject.SIGNAL_RUN_FIRST, gobject.TYPE_NONE, ([])),
'updated': (GObject.SignalFlags.RUN_FIRST, None, ([])),
}
def __init__(self, properties=None):
gobject.GObject.__init__(self)
GObject.GObject.__init__(self)
if not properties:
self._properties = {}
else:
@@ -226,12 +226,12 @@ class RawObject(object):
def __init__(self, file_path):
stat = os.stat(file_path)
client = gconf.client_get_default()
client = GConf.Client.get_default()
metadata = {
'uid': file_path,
'title': os.path.basename(file_path),
'timestamp': stat.st_mtime,
'mime_type': gio.content_type_guess(filename=file_path),
'mime_type': Gio.content_type_guess(filename=file_path),
'activity': '',
'activity_id': '',
'icon-color': client.get_string('/desktop/sugar/user/color'),