Mercurial > pidgin
comparison finch/gntsound.c @ 19130:d5a0b09470ee
Cleaned up a few poorly written "activate" callbacks.
author | Eric Polino <aluink@pidgin.im> |
---|---|
date | Mon, 02 Jul 2007 01:29:01 +0000 |
parents | f2c6e23e66a8 |
children | 5da541d974a4 |
comparison
equal
deleted
inserted
replaced
19129:f2c6e23e66a8 | 19130:d5a0b09470ee |
---|---|
567 | 567 |
568 g_free(enable_pref); | 568 g_free(enable_pref); |
569 g_free(file_pref); | 569 g_free(file_pref); |
570 } | 570 } |
571 | 571 |
572 static gboolean | 572 static void |
573 save_cb(GntBindable *data, gpointer *win) | 573 save_cb(GntWidget *button, gpointer win) |
574 { | 574 { |
575 purple_prefs_set_string(FINCH_PREFS_ROOT "/sound/method", gnt_combo_box_get_selected_data(GNT_COMBO_BOX(pref_dialog->method))); | 575 purple_prefs_set_string(FINCH_PREFS_ROOT "/sound/method", gnt_combo_box_get_selected_data(GNT_COMBO_BOX(pref_dialog->method))); |
576 purple_prefs_set_path(FINCH_PREFS_ROOT "/sound/command", gnt_entry_get_text(GNT_ENTRY(pref_dialog->command))); | 576 purple_prefs_set_path(FINCH_PREFS_ROOT "/sound/command", gnt_entry_get_text(GNT_ENTRY(pref_dialog->command))); |
577 purple_prefs_set_bool(FINCH_PREFS_ROOT "/sound/conv_focus",gnt_check_box_get_checked(GNT_CHECK_BOX(pref_dialog->conv_focus))); | 577 purple_prefs_set_bool(FINCH_PREFS_ROOT "/sound/conv_focus",gnt_check_box_get_checked(GNT_CHECK_BOX(pref_dialog->conv_focus))); |
578 purple_prefs_set_int("/purple/sound/while_status",GPOINTER_TO_INT(gnt_combo_box_get_selected_data(GNT_COMBO_BOX(pref_dialog->while_status)))); | 578 purple_prefs_set_int("/purple/sound/while_status",GPOINTER_TO_INT(gnt_combo_box_get_selected_data(GNT_COMBO_BOX(pref_dialog->while_status)))); |
579 purple_prefs_set_int(FINCH_PREFS_ROOT "/sound/volume",gnt_slider_get_value(GNT_SLIDER(pref_dialog->volume))); | 579 purple_prefs_set_int(FINCH_PREFS_ROOT "/sound/volume",gnt_slider_get_value(GNT_SLIDER(pref_dialog->volume))); |
580 | 580 |
581 gnt_widget_destroy(GNT_WIDGET(win)); | 581 gnt_widget_destroy(GNT_WIDGET(win)); |
582 return TRUE; | 582 } |
583 } | 583 |
584 | 584 static void |
585 static gboolean | 585 cancel_cb(GntWidget *button, gpointer win) |
586 cancel_cb(GntBindable *data, gpointer win) | |
587 { | 586 { |
588 gnt_widget_destroy(GNT_WIDGET(win)); | 587 gnt_widget_destroy(GNT_WIDGET(win)); |
589 return TRUE; | |
590 } | 588 } |
591 | 589 |
592 static void | 590 static void |
593 release_pref_dialog(GntBindable *data, gpointer null) | 591 release_pref_dialog(GntBindable *data, gpointer null) |
594 { | 592 { |