From fce25b7921ad5aa4b82da3454704d09d3c38ff29 Mon Sep 17 00:00:00 2001 From: evilynux Date: Tue, 13 Feb 2007 07:44:39 +0000 Subject: [PATCH] Minor simplification, GtkButton is no longer needed for axis configuration. --- desmume/src/gtk-glade/callbacks_IO.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desmume/src/gtk-glade/callbacks_IO.c b/desmume/src/gtk-glade/callbacks_IO.c index 36c724c8b..9479e5a95 100755 --- a/desmume/src/gtk-glade/callbacks_IO.c +++ b/desmume/src/gtk-glade/callbacks_IO.c @@ -377,7 +377,7 @@ void ask_joy_key(GtkButton*b, int key) } /* Joystick configuration / Key definition */ -void ask_joy_axis(GtkButton*b, u8 key, u8 opposite_key) +void ask_joy_axis(u8 key, u8 opposite_key) { char text[50]; char current_button[50], opposite_button[50]; @@ -419,7 +419,7 @@ void on_button_kb_key_clicked (GtkButton *b, gpointer user_data) void on_button_joy_axis_clicked (GtkButton *b, gpointer user_data) { int key = dyn_CAST( int, user_data ); - ask_joy_axis( b, key, key+1 ); + ask_joy_axis( key, key+1 ); } /* Bind a joystick button to a keypad key */