diff options
author | David Robillard <d@drobilla.net> | 2022-12-12 09:39:57 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-12-12 12:25:03 -0500 |
commit | 345325ff1012074b576ea7541375a74264f9c95c (patch) | |
tree | 1bc20d0edcccfa6d34361e5cf4b6f1f28f2c9f86 /src | |
parent | 08434aa2328d665446e4d3e879c470fd4d5c0e62 (diff) | |
download | jalv-345325ff1012074b576ea7541375a74264f9c95c.tar.gz jalv-345325ff1012074b576ea7541375a74264f9c95c.tar.bz2 jalv-345325ff1012074b576ea7541375a74264f9c95c.zip |
Use header bar in plugin selector dialog
Diffstat (limited to 'src')
-rw-r--r-- | src/jalv_gtk.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/jalv_gtk.c b/src/jalv_gtk.c index e75623d..3aa010c 100644 --- a/src/jalv_gtk.c +++ b/src/jalv_gtk.c @@ -525,7 +525,7 @@ on_delete_preset_activate(GtkWidget* widget, void* ptr) (GtkWindow*)jalv->window, (GtkDialogFlags)(GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT), "_Cancel", - GTK_RESPONSE_REJECT, + GTK_RESPONSE_CANCEL, "_OK", GTK_RESPONSE_ACCEPT, NULL); @@ -1334,14 +1334,16 @@ LilvNode* jalv_frontend_select_plugin(Jalv* jalv) { // Create the dialog - GtkWidget* const dialog = gtk_dialog_new_with_buttons("Plugin Selector", - NULL, - (GtkDialogFlags)0, - "_OK", - GTK_RESPONSE_ACCEPT, - "_Cancel", - GTK_RESPONSE_REJECT, - NULL); + GtkWidget* const dialog = gtk_dialog_new_with_buttons( + "Plugin Selector", + NULL, + (GtkDialogFlags)(GTK_DIALOG_USE_HEADER_BAR | GTK_DIALOG_MODAL | + GTK_DIALOG_DESTROY_WITH_PARENT), + "_Cancel", + GTK_RESPONSE_CANCEL, + "_Load", + GTK_RESPONSE_ACCEPT, + NULL); gtk_window_set_role(GTK_WINDOW(dialog), "plugin_selector"); gtk_window_set_default_size(GTK_WINDOW(dialog), 800, 600); |