| 1240 | } |
| 1241 | |
| 1242 | G_MODULE_EXPORT void |
| 1243 | presets_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 | |
| 1264 | G_MODULE_EXPORT void |
| 1265 | preset_select_action_cb(GSimpleAction *action, GVariant *param, |
nothing calls this directly
no test coverage detected