Mercurial > pidgin
changeset 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 |
files | finch/gntsound.c finch/libgnt/gntbindable.c |
diffstat | 2 files changed, 8 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/finch/gntsound.c Sun Jul 01 20:56:17 2007 +0000 +++ b/finch/gntsound.c Mon Jul 02 01:29:01 2007 +0000 @@ -569,8 +569,8 @@ g_free(file_pref); } -static gboolean -save_cb(GntBindable *data, gpointer *win) +static void +save_cb(GntWidget *button, gpointer win) { purple_prefs_set_string(FINCH_PREFS_ROOT "/sound/method", gnt_combo_box_get_selected_data(GNT_COMBO_BOX(pref_dialog->method))); purple_prefs_set_path(FINCH_PREFS_ROOT "/sound/command", gnt_entry_get_text(GNT_ENTRY(pref_dialog->command))); @@ -579,14 +579,12 @@ purple_prefs_set_int(FINCH_PREFS_ROOT "/sound/volume",gnt_slider_get_value(GNT_SLIDER(pref_dialog->volume))); gnt_widget_destroy(GNT_WIDGET(win)); - return TRUE; } -static gboolean -cancel_cb(GntBindable *data, gpointer win) +static void +cancel_cb(GntWidget *button, gpointer win) { gnt_widget_destroy(GNT_WIDGET(win)); - return TRUE; } static void
--- a/finch/libgnt/gntbindable.c Sun Jul 01 20:56:17 2007 +0000 +++ b/finch/libgnt/gntbindable.c Mon Jul 02 01:29:01 2007 +0000 @@ -53,16 +53,15 @@ g_free(rebind_info.okeys); } -static gboolean -gnt_bindable_rebinding_cancel(GntBindable *bindable, gpointer data) +static void +gnt_bindable_rebinding_cancel(GntWidget *button, gpointer data) { gnt_bindable_free_rebind_info(); gnt_widget_destroy(GNT_WIDGET(data)); - return TRUE; } -static gboolean -gnt_bindable_rebinding_rebind(GntBindable *bindable, gpointer data) +static void +gnt_bindable_rebinding_rebind(GntWidget *button, gpointer data) { if(rebind_info.keys) { @@ -78,8 +77,6 @@ gnt_bindable_free_rebind_info(); gnt_widget_destroy(GNT_WIDGET(data)); - - return TRUE; } static gboolean