Commit aeaf48a9 authored by jhammen's avatar jhammen
Browse files

plugin ui tree control in scrolled window

parent 6e163bda
......@@ -137,6 +137,7 @@ PluginUi::PluginUi(const LV2_Feature *const *features, LV2UI_Widget *widget,
GtkWidget *openButton = gtk_button_new();
gtk_button_set_image(GTK_BUTTON(openButton),
gtk_image_new_from_stock(GTK_STOCK_ADD, GTK_ICON_SIZE_BUTTON));
gtk_widget_set_sensitive(openButton, false);
GtkFileChooserAction action = GTK_FILE_CHOOSER_ACTION_OPEN;
mopendialog =
gtk_file_chooser_dialog_new("Open File", nullptr, action, "_Cancel", GTK_RESPONSE_CANCEL,
......@@ -191,8 +192,15 @@ PluginUi::PluginUi(const LV2_Feature *const *features, LV2UI_Widget *widget,
mainGain = gtk_hscale_new(GTK_ADJUSTMENT(adjustment));
g_signal_connect(mainGain, "value-changed", G_CALLBACK(on_gain_change), this);
// scrolled window
GtkWidget *scroller = gtk_scrolled_window_new(NULL, NULL);
gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scroller), GtkPolicyType::GTK_POLICY_NEVER,
GtkPolicyType::GTK_POLICY_AUTOMATIC);
gtk_container_add(GTK_CONTAINER(scroller), treeview);
gtk_widget_set_size_request(scroller, 585, 425);
GtkWidget *outerBox = gtk_vbox_new(0, 0);
gtk_box_pack_start(GTK_BOX(outerBox), treeview, FALSE, FALSE, 10);
gtk_box_pack_start(GTK_BOX(outerBox), scroller, FALSE, FALSE, 10);
gtk_box_pack_start(GTK_BOX(outerBox), buttonRow, FALSE, FALSE, 0);
gtk_box_pack_start(GTK_BOX(outerBox), gtk_hseparator_new(), FALSE, FALSE, 3);
gtk_box_pack_start(GTK_BOX(outerBox), lastBox, FALSE, FALSE, 3);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment