static void change_spin_value_cb (GtkSpinButton *spinbutton, gpointer user_data) { int new_value; new_value = gtk_spin_button_get_value_as_int (spinbutton); VNR_PREFS(user_data)->slideshow_timeout = new_value; vnr_prefs_save(VNR_PREFS(user_data)); vnr_window_apply_preferences(VNR_WINDOW(VNR_PREFS(user_data)->vnr_win)); }
static void vnr_prefs_init (VnrPrefs * prefs) { if ( !vnr_prefs_load (prefs) ) { vnr_prefs_set_default(prefs); vnr_prefs_save (prefs); } prefs->dialog = NULL; }
static void change_action_click_cb (GtkComboBox *widget, gpointer user_data) { VNR_PREFS(user_data)->behavior_click = gtk_combo_box_get_active(widget); vnr_prefs_save(VNR_PREFS(user_data)); }
static void change_png_compression_cb (GtkRange *range, gpointer user_data) { VNR_PREFS(user_data)->png_compression = (int) gtk_range_get_value(range); vnr_prefs_save(VNR_PREFS(user_data)); }
static void change_jpeg_quality_cb (GtkRange *range, gpointer user_data) { VNR_PREFS(user_data)->jpeg_quality = (int) gtk_range_get_value(range); vnr_prefs_save(VNR_PREFS(user_data)); }
static void change_zoom_mode_cb (GtkComboBox *widget, gpointer user_data) { VNR_PREFS(user_data)->zoom = gtk_combo_box_get_active(widget); vnr_prefs_save(VNR_PREFS(user_data)); }
static void toggle_reload_on_save_cb (GtkToggleButton *togglebutton, gpointer user_data) { VNR_PREFS(user_data)->reload_on_save = gtk_toggle_button_get_active(togglebutton); vnr_prefs_save(VNR_PREFS(user_data)); }
static void toggle_confirm_delete_cb (GtkToggleButton *togglebutton, gpointer user_data) { VNR_PREFS(user_data)->confirm_delete = gtk_toggle_button_get_active(togglebutton); vnr_prefs_save(VNR_PREFS(user_data)); }
static void toggle_fit_on_fullscreen_cb (GtkToggleButton *togglebutton, gpointer user_data) { VNR_PREFS(user_data)->fit_on_fullscreen = gtk_toggle_button_get_active(togglebutton); vnr_prefs_save(VNR_PREFS(user_data)); }
static void toggle_show_hidden_cb (GtkToggleButton *togglebutton, gpointer user_data) { VNR_PREFS(user_data)->show_hidden = gtk_toggle_button_get_active(togglebutton); vnr_prefs_save(VNR_PREFS(user_data)); }
static void change_desktop_env_cb (GtkComboBox *widget, gpointer user_data) { VNR_PREFS(user_data)->desktop = gtk_combo_box_get_active(widget); vnr_prefs_save(VNR_PREFS(user_data)); }