| 3257 | } |
| 3258 | |
| 3259 | void |
| 3260 | ghb_clear_presets_selection(signal_user_data_t *ud) |
| 3261 | { |
| 3262 | GtkTreeView * treeview; |
| 3263 | GtkTreeSelection * selection; |
| 3264 | GSimpleAction * action; |
| 3265 | GtkWidget * widget; |
| 3266 | |
| 3267 | if (dont_clear_presets) return; |
| 3268 | treeview = GTK_TREE_VIEW(ghb_builder_widget("presets_list")); |
| 3269 | selection = gtk_tree_view_get_selection(treeview); |
| 3270 | gtk_tree_selection_unselect_all(selection); |
| 3271 | ghb_dict_set_bool(ud->settings, "preset_modified", TRUE); |
| 3272 | |
| 3273 | |
| 3274 | action = GHB_APPLICATION_ACTION("preset-reload"); |
| 3275 | g_simple_action_set_enabled(action, TRUE); |
| 3276 | widget = ghb_builder_widget("preset_selection_modified_label"); |
| 3277 | gtk_widget_set_visible(widget, TRUE); |
| 3278 | widget = ghb_builder_widget("preset_selection_reload"); |
| 3279 | gtk_widget_set_visible(widget, TRUE); |
| 3280 | widget = ghb_builder_widget("preset_save_new"); |
| 3281 | gtk_widget_set_visible(widget, TRUE); |
| 3282 | } |
| 3283 | |
| 3284 | G_MODULE_EXPORT void |
| 3285 | preset_default_action_cb(GSimpleAction *action, GVariant *param, |
no test coverage detected