[pygobject] [gtk-demo] appwindow.py: fix callback signatures
- From: Dieter Verfaillie <dieterv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] [gtk-demo] appwindow.py: fix callback signatures
- Date: Wed, 24 Aug 2011 17:04:49 +0000 (UTC)
commit 62fda288c1c37167c589e8e9d49ed625f770a98a
Author: Dieter Verfaillie <dieterv optionexplicit be>
Date: Mon Aug 22 07:57:31 2011 +0200
[gtk-demo] appwindow.py: fix callback signatures
demos/gtk-demo/demos/appwindow.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/demos/gtk-demo/demos/appwindow.py b/demos/gtk-demo/demos/appwindow.py
index 2135e7a..1ab7c51 100644
--- a/demos/gtk-demo/demos/appwindow.py
+++ b/demos/gtk-demo/demos/appwindow.py
@@ -39,7 +39,7 @@ global _demoapp
def widget_destroy(widget, button):
widget.destroy()
-def activate_action(action, user_data):
+def activate_action(action, user_data=None):
global window
name = action.get_name()
@@ -60,7 +60,7 @@ def activate_action(action, user_data):
dialog.connect('response', widget_destroy)
dialog.show()
-def activate_radio_action(action, current, user_data):
+def activate_radio_action(action, current, user_data=None):
global infobar
global messagelabel
@@ -88,7 +88,7 @@ def update_statusbar(buffer, statusbar):
def mark_set_callback(buffer, new_location, mark, data):
update_statusbar(buffer, data)
-def about_cb(widget, data):
+def about_cb(widget, user_data=None):
global window
authors = ['John (J5) Palmieri',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]