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

Function queue_show_sidebar_action_cb

gtk/src/queuehandler.c:2062–2077  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2060}
2061
2062G_MODULE_EXPORT void
2063queue_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
2079GhbValue *ghb_queue_edit_settings = NULL;
2080

Callers

nothing calls this directly

Calls 3

ghb_builder_widgetFunction · 0.85
ghb_dict_set_boolFunction · 0.85
ghb_pref_saveFunction · 0.85

Tested by

no test coverage detected