diff --git a/capplets/sound/ChangeLog b/capplets/sound/ChangeLog index b446c53f5..b540e470d 100644 --- a/capplets/sound/ChangeLog +++ b/capplets/sound/ChangeLog @@ -1,3 +1,17 @@ +2002-03-27 Richard Hestilow + + * sound-properties.glade: Add mnemonics. + + * sound-properties-capplet.c (create_dialog): Connect to + properties so we know when to save. + +2002-03-27 Richard Hestilow + + * sound-properties.glade: Add mnemonics. + + * sound-properties-capplet.c (create_dialog): Connect to + properties so we know when to save. + 2002-03-10 Seth Nickell * main.c: (main): diff --git a/capplets/sound/sound-properties-capplet.c b/capplets/sound/sound-properties-capplet.c index 69ca819ad..bb42b7906 100644 --- a/capplets/sound/sound-properties-capplet.c +++ b/capplets/sound/sound-properties-capplet.c @@ -45,6 +45,12 @@ static SoundProperties *props = NULL; +static void +props_changed_cb (SoundProperties *p, SoundEvent *event, gpointer data) +{ + sound_properties_user_save (p); +} + /* create_dialog * * Create the dialog box and return it as a GtkWidget @@ -62,6 +68,8 @@ create_dialog (void) props = sound_properties_new (); sound_properties_add_defaults (props, NULL); + g_signal_connect (G_OBJECT (props), "event_changed", + (GCallback) props_changed_cb, NULL); box = glade_xml_get_widget (data, "events_vbox"); gtk_box_pack_start (GTK_BOX (box), sound_view_new (props), TRUE, TRUE, 0); @@ -167,7 +175,7 @@ main (int argc, char **argv) #endif dialog_win = gtk_dialog_new_with_buttons - (_("Sound properties"), NULL, -1, + (_("Sound preferences"), NULL, -1, GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE, NULL); diff --git a/capplets/sound/sound-properties.glade b/capplets/sound/sound-properties.glade index 79e55892f..a2d16a335 100644 --- a/capplets/sound/sound-properties.glade +++ b/capplets/sound/sound-properties.glade @@ -32,10 +32,11 @@ yes - Enable sound server startup + E_nable sound server startup no yes yes + yes @@ -49,10 +50,11 @@ yes - Sounds for events + _Sounds for events no yes yes + yes @@ -67,7 +69,7 @@ - General + _General GTK_JUSTIFY_CENTER no 0.5 @@ -75,6 +77,7 @@ 0 0 yes + yes tab @@ -91,7 +94,7 @@ - Sound Events + Sound _Events GTK_JUSTIFY_CENTER no 0.5 @@ -99,6 +102,7 @@ 0 0 yes + yes tab