make the mouse orientation radio buttons usable with both mouse buttons.
2008-02-29 Denis Washington <denisw@svn.gnome.org> * capplets/mouse/gnome-mouse-properties.c: make the mouse orientation radio buttons usable with both mouse buttons. svn path=/trunk/; revision=8535
This commit is contained in:
parent
3076088efb
commit
008dd57206
2 changed files with 16 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2008-02-29 Denis Washington <denisw@svn.gnome.org>
|
||||
|
||||
* gnome-mouse-properties.c: make the mouse orientation radio
|
||||
buttons usable with both mouse buttons.
|
||||
|
||||
2008-02-08 Luca Ferretti <elle.uca@libero.it>
|
||||
|
||||
reviewed by: Jens Granseuer
|
||||
|
|
|
@ -315,6 +315,13 @@ event_box_button_press_event (GtkWidget *widget,
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
static void
|
||||
orientation_radio_button_release_event (GtkWidget *widget,
|
||||
GdkEventButton *event)
|
||||
{
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (widget), TRUE);
|
||||
}
|
||||
|
||||
static GConfValue *
|
||||
left_handed_from_gconf (GConfPropertyEditor *peditor,
|
||||
const GConfValue *value)
|
||||
|
@ -355,6 +362,10 @@ setup_dialog (GladeXML *dialog, GConfChangeSet *changeset)
|
|||
"conv-to-widget-cb", left_handed_from_gconf,
|
||||
"conv-from-widget-cb", left_handed_to_gconf,
|
||||
NULL);
|
||||
g_signal_connect (WID ("right_handed_radio"), "button_release_event",
|
||||
G_CALLBACK (orientation_radio_button_release_event), NULL);
|
||||
g_signal_connect (WID ("left_handed_radio"), "button_release_event",
|
||||
G_CALLBACK (orientation_radio_button_release_event), NULL);
|
||||
|
||||
/* Locate pointer toggle */
|
||||
peditor = gconf_peditor_new_boolean
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue