static void malarm_description_changed_cb (GtkWidget *widget, gpointer data) { Dialog *dialog = data; check_custom_email (dialog); }
static void malarm_addresses_changed_cb (GtkWidget *editable, gpointer data) { Dialog *dialog = data; check_custom_email (dialog); }
static void malarm_message_toggled_cb (GtkToggleButton *toggle, gpointer data) { Dialog *dialog = data; gboolean active; active = gtk_toggle_button_get_active (toggle); gtk_widget_set_sensitive (dialog->malarm_group, active); check_custom_email (dialog); }
static void action_changed_cb (GtkWidget *action_combo, gpointer data) { Dialog *dialog = data; gchar *dir; ECalComponentAlarmAction action; gint page = 0, i; action = e_dialog_combo_box_get (dialog->action_combo, action_map); for (i = 0; action_map[i] != -1; i++) { if (action == action_map[i]) { page = i; break; } } gtk_notebook_set_current_page ( GTK_NOTEBOOK (dialog->option_notebook), page); switch (action) { case E_CAL_COMPONENT_ALARM_AUDIO: dir = calendar_config_get_dir_path (); if (dir && *dir) gtk_file_chooser_set_current_folder ( GTK_FILE_CHOOSER (dialog->aalarm_file_chooser), dir); g_free (dir); check_custom_sound (dialog); break; case E_CAL_COMPONENT_ALARM_DISPLAY: check_custom_message (dialog); break; case E_CAL_COMPONENT_ALARM_EMAIL: check_custom_email (dialog); break; case E_CAL_COMPONENT_ALARM_PROCEDURE: check_custom_program (dialog); break; default: g_return_if_reached (); return; } }