[gnome-devel-docs] Do not leave out parameters from callback functions.
- From: Tiffany Antopolski <antopolski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-devel-docs] Do not leave out parameters from callback functions.
- Date: Fri, 8 Jun 2012 01:43:52 +0000 (UTC)
commit 5abfe3a60d9ab6dc66a9a20a2409156fcae0a696
Author: Tiffany Antopolski <tiffany antopolski gmail com>
Date: Thu Jun 7 21:36:21 2012 -0400
Do not leave out parameters from callback functions.
platform-demos/C/samples/toolbar.vala | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/platform-demos/C/samples/toolbar.vala b/platform-demos/C/samples/toolbar.vala
index 15b1180..f0b4dc9 100644
--- a/platform-demos/C/samples/toolbar.vala
+++ b/platform-demos/C/samples/toolbar.vala
@@ -72,11 +72,11 @@ class MyWindow : Gtk.ApplicationWindow {
leave_fullscreen_button.action_name = "win.fullscreen";
}
- void undo_callback () {
+ void undo_callback (SimpleAction simple, Variant? parameter) {
print ("You clicked \"Undo\".\n");
}
- void fullscreen_callback () {
+ void fullscreen_callback (SimpleAction simple, Variant? parameter) {
if ((this.get_window ().get_state () & Gdk.WindowState.FULLSCREEN) != 0) {
this.unfullscreen ();
leave_fullscreen_button.hide ();
@@ -117,11 +117,11 @@ class MyApplication : Gtk.Application {
//this.app_menu = menu;
}
- void new_callback () {
+ void new_callback (SimpleAction action, Variant? parameter) {
print ("You clicked \"New\".\n");
}
- void open_callback () {
+ void open_callback (SimpleAction action, Variant? parameter) {
print ("You clicked \"Open\".\n");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]