Port from GObject to GLib
This commit is contained in:
committed by
James Cameron
parent
6730d129cd
commit
13a2282e5e
@@ -582,7 +582,7 @@ class Activity(Window, Gtk.Container):
|
||||
if not self._active and self._jobject:
|
||||
self.save()
|
||||
|
||||
active = GObject.property(
|
||||
active = GObject.Property(
|
||||
type=bool, default=False, getter=get_active, setter=set_active)
|
||||
'''
|
||||
Whether an activity is active.
|
||||
@@ -621,7 +621,7 @@ class Activity(Window, Gtk.Container):
|
||||
'''
|
||||
self._max_participants = participants
|
||||
|
||||
max_participants = GObject.property(
|
||||
max_participants = GObject.Property(
|
||||
type=int, default=0, getter=get_max_participants,
|
||||
setter=set_max_participants)
|
||||
|
||||
|
||||
@@ -26,6 +26,7 @@ import logging
|
||||
|
||||
import dbus
|
||||
from gi.repository import GObject
|
||||
from gi.repository import GLib
|
||||
|
||||
from sugar3.activity.activityhandle import ActivityHandle
|
||||
from sugar3 import util
|
||||
@@ -233,10 +234,10 @@ class ActivityCreationHandler(GObject.GObject):
|
||||
stdout=log_file.fileno(),
|
||||
stderr=log_file.fileno())
|
||||
|
||||
GObject.child_watch_add(child.pid,
|
||||
_child_watch_cb,
|
||||
(log_file,
|
||||
self._handle.activity_id))
|
||||
GLib.child_watch_add(child.pid,
|
||||
_child_watch_cb,
|
||||
(log_file,
|
||||
self._handle.activity_id))
|
||||
|
||||
def _no_reply_handler(self, *args):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user