summaryrefslogtreecommitdiff
path: root/src/window-commands.c
diff options
context:
space:
mode:
authorAlexander Mikhaylenko <alexm@gnome.org>2020-05-26 21:19:25 +0500
committerJan-Michael Brummer <jan.brummer@tabos.org>2020-06-03 07:36:10 +0000
commit83040372c8e6dfb3d3d47959f8c295bf71335993 (patch)
tree69296a3bc1b92a6ec2ccdacd7e7248eedb8ca9b4 /src/window-commands.c
parente4ebf2b37dfc753e29967fd4c55606cf8197ae14 (diff)
downloadepiphany-83040372c8e6dfb3d3d47959f8c295bf71335993.tar.gz
Port to libhandy master
HdyDialog was removed, so revert to GtkDialog for now. Normalize the remove button in passwords dialog and use a proper action row there. This reverts commit 5a9e76f676dd4ea98841ac5f1348f146f00d034f.
Diffstat (limited to 'src/window-commands.c')
-rw-r--r--src/window-commands.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/window-commands.c b/src/window-commands.c
index 5b44ff91c..e561f4371 100644
--- a/src/window-commands.c
+++ b/src/window-commands.c
@@ -551,8 +551,12 @@ window_cmd_import_bookmarks (GSimpleAction *action,
GtkTreeModel *tree_model;
GtkCellRenderer *cell_renderer;
- dialog = hdy_dialog_new (GTK_WINDOW (window));
- gtk_window_set_title (GTK_WINDOW (dialog), _("Import Bookmarks"));
+ dialog = g_object_new (GTK_TYPE_DIALOG,
+ "use-header-bar", TRUE,
+ "modal", TRUE,
+ "transient-for", window,
+ "title", _("Import Bookmarks"),
+ NULL);
gtk_dialog_add_buttons (GTK_DIALOG (dialog),
_("_Cancel"),
GTK_RESPONSE_CANCEL,
@@ -793,8 +797,12 @@ window_cmd_import_passwords (GSimpleAction *action,
GtkTreeModel *tree_model;
GtkCellRenderer *cell_renderer;
- dialog = hdy_dialog_new (GTK_WINDOW (window));
- gtk_window_set_title (GTK_WINDOW (dialog), _("Import Passwords"));
+ dialog = g_object_new (GTK_TYPE_DIALOG,
+ "use-header-bar", TRUE,
+ "modal", TRUE,
+ "transient-for", window,
+ "title", _("Import Passwords"),
+ NULL);
gtk_dialog_add_buttons (GTK_DIALOG (dialog),
_("_Cancel"),
GTK_RESPONSE_CANCEL,