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

Function presets_window_save_size_cb

gtk/src/presets.c:1242–1262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1240}
1241
1242G_MODULE_EXPORT void
1243presets_window_save_size_cb (GtkWidget *widget, GParamSpec *spec, gpointer data)
1244{
1245 signal_user_data_t *ud = ghb_ud();
1246 if (gtk_widget_get_visible(widget))
1247 {
1248 gint w, h, ww, wh;
1249 w = ghb_dict_get_int(ud->prefs, "presets_window_width");
1250 h = ghb_dict_get_int(ud->prefs, "presets_window_height");
1251 gtk_window_get_default_size(GTK_WINDOW(widget), &ww, &wh);
1252
1253 if ( w != ww || h != wh )
1254 {
1255 ghb_dict_set_int(ud->prefs, "presets_window_width", ww);
1256 ghb_dict_set_int(ud->prefs, "presets_window_height", wh);
1257 ghb_pref_set(ud->prefs, "presets_window_width");
1258 ghb_pref_set(ud->prefs, "presets_window_height");
1259 ghb_prefs_store();
1260 }
1261 }
1262}
1263
1264G_MODULE_EXPORT void
1265preset_select_action_cb(GSimpleAction *action, GVariant *param,

Callers

nothing calls this directly

Calls 5

ghb_udFunction · 0.85
ghb_dict_get_intFunction · 0.85
ghb_dict_set_intFunction · 0.85
ghb_pref_setFunction · 0.85
ghb_prefs_storeFunction · 0.85

Tested by

no test coverage detected