MCPcopy Create free account
hub / github.com/HandBrake/HandBrake / when_complete_changed_cb

Function when_complete_changed_cb

gtk/src/callbacks.c:5218–5233  ·  view source on GitHub ↗

Changes the setting for the current session and also saves it for future sessions

Source from the content-addressed store, hash-verified

5216// Changes the setting for the current session
5217// and also saves it for future sessions
5218G_MODULE_EXPORT void
5219when_complete_changed_cb (GtkWidget *widget, gpointer data)
5220{
5221 signal_user_data_t *ud = ghb_ud();
5222 GhbValue * value = ghb_widget_value(widget);
5223 ghb_set_queue_done_action(gtk_combo_box_get_active(GTK_COMBO_BOX(widget)));
5224 ghb_ui_update("MainWhenComplete", value);
5225 ghb_ui_update("QueueWhenComplete", value);
5226 ghb_value_free(&value);
5227
5228 ghb_widget_to_setting (ud->prefs, widget);
5229
5230 const gchar *name = ghb_get_setting_key(widget);
5231 ghb_pref_set(ud->prefs, name);
5232 ghb_prefs_store();
5233}
5234
5235// Only changes the setting for the current session
5236G_MODULE_EXPORT void

Callers

nothing calls this directly

Calls 8

ghb_udFunction · 0.85
ghb_widget_valueFunction · 0.85
ghb_ui_updateFunction · 0.85
ghb_widget_to_settingFunction · 0.85
ghb_get_setting_keyFunction · 0.85
ghb_pref_setFunction · 0.85
ghb_prefs_storeFunction · 0.85

Tested by

no test coverage detected