Use accessor functions for data fields
The following data fields that were provided by PyGTK are not accessible directly in GTK3+pygi and need to be replaced by accessor calls: Adjustment.lower Adjustment.page_size Adjustment.upper Adjustment.value Bin.child Widget.parent Widget.style Widget.window Based on patches by Daniel Drake <dsd@laptop.org>. Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
This commit is contained in:
committed by
Simon Schampijer
parent
4aacaaf56e
commit
c82a775267
@@ -901,8 +901,8 @@ class Activity(Window, Gtk.Container):
|
||||
self.reveal()
|
||||
|
||||
def __realize_cb(self, window):
|
||||
wm.set_bundle_id(window.window, self.get_bundle_id())
|
||||
wm.set_activity_id(window.window, str(self._activity_id))
|
||||
wm.set_bundle_id(window.get_window(), self.get_bundle_id())
|
||||
wm.set_activity_id(window.get_window(), str(self._activity_id))
|
||||
|
||||
def __delete_event_cb(self, widget, event):
|
||||
self.close()
|
||||
|
||||
@@ -279,7 +279,7 @@ class NamingAlert(Gtk.Window):
|
||||
|
||||
def __realize_cb(self, widget):
|
||||
self.set_type_hint(Gdk.WindowTypeHint.DIALOG)
|
||||
self.window.set_accept_focus(True)
|
||||
self.get_window().set_accept_focus(True)
|
||||
|
||||
def __keep_cb(self, widget):
|
||||
if self._favorite_icon.get_active():
|
||||
|
||||
Reference in New Issue
Block a user