[epiphany] web-view: Don't force the infobar actions to be horizontal
- From: Jan-Michael Brummer <jbrummer src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] web-view: Don't force the infobar actions to be horizontal
- Date: Sat, 13 Jul 2019 10:07:07 +0000 (UTC)
commit 5c5c65f48d86d4b84027af72a081b5d48a2a47ae
Author: Adrien Plazas <kekun plazas laposte net>
Date: Sat Jul 13 11:14:26 2019 +0200
web-view: Don't force the infobar actions to be horizontal
Horizontal is the default so it doesn't change a thing, yet it will
allow to make the infobars to work better on phones with some changes in
GTK.
Fixes https://gitlab.gnome.org/GNOME/epiphany/issues/851
embed/ephy-web-view.c | 10 ----------
1 file changed, 10 deletions(-)
---
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index fdc7d5b30..85dd1fefd 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -597,7 +597,6 @@ ephy_web_view_create_form_auth_save_confirmation_info_bar (EphyWebView *web_view
const char *username)
{
GtkWidget *info_bar;
- GtkWidget *action_area;
GtkWidget *content_area;
GtkWidget *label;
char *message;
@@ -609,10 +608,6 @@ ephy_web_view_create_form_auth_save_confirmation_info_bar (EphyWebView *web_view
_("_Save"), GTK_RESPONSE_YES,
NULL);
- action_area = gtk_info_bar_get_action_area (GTK_INFO_BAR (info_bar));
- gtk_orientable_set_orientation (GTK_ORIENTABLE (action_area),
- GTK_ORIENTATION_HORIZONTAL);
-
label = gtk_label_new (NULL);
/* Translators: The %s the hostname where this is happening.
* Example: mail.google.com.
@@ -1582,7 +1577,6 @@ show_permission_request_info_bar (WebKitWebView *web_view,
{
PermissionRequestData *data;
GtkWidget *info_bar;
- GtkWidget *action_area;
GtkWidget *content_area;
GtkWidget *label;
char *message;
@@ -1593,10 +1587,6 @@ show_permission_request_info_bar (WebKitWebView *web_view,
_("Allow"), GTK_RESPONSE_YES,
NULL);
- action_area = gtk_info_bar_get_action_area (GTK_INFO_BAR (info_bar));
- gtk_orientable_set_orientation (GTK_ORIENTABLE (action_area),
- GTK_ORIENTATION_HORIZONTAL);
-
/* Label */
origin = ephy_uri_to_security_origin (webkit_web_view_get_uri (web_view));
if (origin == NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]