From 8866868cf609fc66a304e80a11671727319f61d1 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Sat, 4 Apr 2015 19:35:01 +0000 Subject: LinGui: fix parent of preset delete dialog git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7051 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- gtk/src/presets.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gtk/src/presets.c b/gtk/src/presets.c index bdd8afdef..2354bc618 100644 --- a/gtk/src/presets.c +++ b/gtk/src/presets.c @@ -3721,6 +3721,7 @@ presets_remove_clicked_cb(GtkWidget *xwidget, signal_user_data_t *ud) selection = gtk_tree_view_get_selection (treeview); if (gtk_tree_selection_get_selected(selection, &store, &iter)) { + GtkWindow *hb_window; GtkWidget *dialog; GtkTreePath *path; gint *indices, len; @@ -3732,7 +3733,8 @@ presets_remove_clicked_cb(GtkWidget *xwidget, signal_user_data_t *ud) len = gtk_tree_path_get_depth(path); folder = ghb_presets_get_folder(presetsPlist, indices, len); - dialog = gtk_message_dialog_new(NULL, GTK_DIALOG_MODAL, + hb_window = GTK_WINDOW(GHB_WIDGET(ud->builder, "hb_window")); + dialog = gtk_message_dialog_new(hb_window, GTK_DIALOG_MODAL, GTK_MESSAGE_QUESTION, GTK_BUTTONS_YES_NO, _("Confirm deletion of %s:\n\n%s"), folder ? _("folder") : _("preset"), -- cgit v1.2.3