| 2060 | } |
| 2061 | |
| 2062 | G_MODULE_EXPORT void |
| 2063 | queue_show_sidebar_action_cb (GSimpleAction *action, GVariant *param, |
| 2064 | signal_user_data_t *ud) |
| 2065 | { |
| 2066 | int width, height; |
| 2067 | gboolean state = g_variant_get_boolean(param); |
| 2068 | GtkWidget *widget = ghb_builder_widget("queue_sidebar"); |
| 2069 | GtkWindow *window = GTK_WINDOW(ghb_builder_widget("queue_window")); |
| 2070 | |
| 2071 | ghb_dict_set_bool(ud->prefs, "show_queue_sidebar", state); |
| 2072 | ghb_pref_save(ud->prefs, "show_queue_sidebar"); |
| 2073 | gtk_window_get_default_size(window, &width, &height); |
| 2074 | gtk_widget_set_visible(widget, state); |
| 2075 | gtk_window_set_default_size(window, 1, height); |
| 2076 | g_simple_action_set_state(action, param); |
| 2077 | } |
| 2078 | |
| 2079 | GhbValue *ghb_queue_edit_settings = NULL; |
| 2080 |
nothing calls this directly
no test coverage detected