diff options
author | jstebbins <[email protected]> | 2015-04-04 19:35:01 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2015-04-04 19:35:01 +0000 |
commit | 8866868cf609fc66a304e80a11671727319f61d1 (patch) | |
tree | 1ac421f9641abad753d9f85690f7f4c0e2ea9851 /gtk/src/presets.c | |
parent | 5a24d1b2f7b9414e76ceaa4b23eb3661ac8ce828 (diff) |
LinGui: fix parent of preset delete dialog
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7051 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/presets.c')
-rw-r--r-- | gtk/src/presets.c | 4 |
1 files changed, 3 insertions, 1 deletions
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"), |