[pygobject] Override Gtk.Widget.translate_coordinates to not return success value
- From: Sebastian Polsterl <sebp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] Override Gtk.Widget.translate_coordinates to not return success value
- Date: Tue, 26 Oct 2010 13:50:25 +0000 (UTC)
commit 3c09710d2f68af9c16ce39fd25656147656a486a
Author: Sebastian Pölsterl <sebp k-d-w org>
Date: Sat Oct 23 14:24:24 2010 +0200
Override Gtk.Widget.translate_coordinates to not return success value
gi/overrides/Gtk.py | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/gi/overrides/Gtk.py b/gi/overrides/Gtk.py
index 1393ffc..93333bc 100644
--- a/gi/overrides/Gtk.py
+++ b/gi/overrides/Gtk.py
@@ -827,6 +827,17 @@ class TreeSelection(Gtk.TreeSelection):
TreeSelection = override(TreeSelection)
__all__.append('TreeSelection')
+class Widget(Gtk.Widget):
+
+ def translate_coordinates(self, dest_widget, src_x, src_y):
+ success, dest_x, dest_y = super(Widget, self).translate_coordinates(
+ dest_widget, src_x, src_y)
+ if success:
+ return (dest_x, dest_y,)
+
+Widget = override(Widget)
+__all__.append('Widget')
+
class Button(Gtk.Button):
def __init__(self, label=None, stock=None, use_underline=False):
if stock:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]