[epiphany] window-commands: Make the import dialog adaptive
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] window-commands: Make the import dialog adaptive
- Date: Thu, 24 Jan 2019 01:25:46 +0000 (UTC)
commit 082b4b2eb32a8746b41c1e3a294365fe83483e38
Author: Adrien Plazas <kekun plazas laposte net>
Date: Wed Jan 23 22:57:13 2019 +0100
window-commands: Make the import dialog adaptive
This will make it better fit in small screens.
src/window-commands.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/window-commands.c b/src/window-commands.c
index 41b57c64b..2c0d74df4 100644
--- a/src/window-commands.c
+++ b/src/window-commands.c
@@ -390,14 +390,14 @@ window_cmd_import_bookmarks (GSimpleAction *action,
GtkTreeModel *tree_model;
GtkCellRenderer *cell_renderer;
- dialog = gtk_dialog_new_with_buttons (_("Import Bookmarks"),
- GTK_WINDOW (window),
- GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT |
GTK_DIALOG_USE_HEADER_BAR,
- _("_Cancel"),
- GTK_RESPONSE_CANCEL,
- _("Ch_oose File"),
- GTK_RESPONSE_OK,
- NULL);
+ dialog = hdy_dialog_new (GTK_WINDOW (window));
+ gtk_window_set_title (GTK_WINDOW (dialog), _("Import Bookmarks"));
+ gtk_dialog_add_buttons (GTK_DIALOG (dialog),
+ _("_Cancel"),
+ GTK_RESPONSE_CANCEL,
+ _("Ch_oose File"),
+ GTK_RESPONSE_OK,
+ NULL);
gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]