hook up buttons.

Fri Feb  8 23:53:10 2002  Jonathan Blandford  <jrb@redhat.com>

	* gnome-keyboard-properties.c (dialog_response): hook up buttons.
This commit is contained in:
Jonathan Blandford 2002-02-09 05:23:16 +00:00 committed by Jonathan Blandford
parent 8559132319
commit fd79332e7d
3 changed files with 19 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Fri Feb 8 23:53:10 2002 Jonathan Blandford <jrb@redhat.com>
* gnome-keyboard-properties.c (dialog_response): hook up buttons.
2002-01-19 Seth Nickell <snickell@stanford.edu>
* Makefile.am:

View file

@ -167,6 +167,18 @@ mnemonic_activate (GtkWidget *toggle,
return FALSE;
}
static void
dialog_response (GtkWidget *widget,
gint response,
GladeXML *dialog)
{
if (response == GTK_RESPONSE_HELP)
return;
gtk_main_quit ();
}
static void
setup_dialog (GladeXML *dialog,
GConfChangeSet *changeset)
@ -227,7 +239,7 @@ setup_dialog (GladeXML *dialog,
"conv-from-widget-cb", bell_from_widget,
NULL);
g_signal_connect (G_OBJECT (WID ("bell_custom_radio")), "mnemonic_activate", (GCallback) mnemonic_activate, WID ("bell_custom_entry"));
g_signal_connect (G_OBJECT (WID ("keyboard_dialog")), "response", (GCallback) dialog_response, dialog);
}
static void

View file

@ -32,6 +32,7 @@
<property name="visible">yes</property>
<property name="label" translatable="yes">gtk-help</property>
<property name="use_stock">yes</property>
<property name="response_id">-11</property>
<property name="use_underline">yes</property>
</widget>
</child>
@ -41,6 +42,7 @@
<property name="can_default">yes</property>
<property name="can_focus">yes</property>
<property name="label" translatable="yes">Done</property>
<property name="response_id">-7</property>
<property name="visible">yes</property>
</widget>
</child>