diff options
author | Diego Escalante Urrelo <descalante@igalia.com> | 2011-07-31 08:05:04 +0800 |
---|---|---|
committer | Diego Escalante Urrelo <descalante@igalia.com> | 2011-08-13 00:03:04 +0800 |
commit | 60bea9a1003343635d27fba83d3b089fb208efec (patch) | |
tree | c701a7858b12306ca35ea883cf34d3dd920ab7da | |
parent | e6945b6c75103866ac890219e93463ff4ce06183 (diff) | |
download | gsoc2013-epiphany-60bea9a1003343635d27fba83d3b089fb208efec.tar gsoc2013-epiphany-60bea9a1003343635d27fba83d3b089fb208efec.tar.gz gsoc2013-epiphany-60bea9a1003343635d27fba83d3b089fb208efec.tar.bz2 gsoc2013-epiphany-60bea9a1003343635d27fba83d3b089fb208efec.tar.lz gsoc2013-epiphany-60bea9a1003343635d27fba83d3b089fb208efec.tar.xz gsoc2013-epiphany-60bea9a1003343635d27fba83d3b089fb208efec.tar.zst gsoc2013-epiphany-60bea9a1003343635d27fba83d3b089fb208efec.zip |
Use line-wrap in GtkInfoBar labels
Otherwise we can end up with fixed width windows that exceed the display
size when long sentences are displayed.
Bug #649164
-rw-r--r-- | embed/ephy-web-view.c | 3 | ||||
-rw-r--r-- | src/ephy-session.c | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c index b4aca442d..a4d972061 100644 --- a/embed/ephy-web-view.c +++ b/embed/ephy-web-view.c @@ -767,6 +767,7 @@ request_decision_on_storing (StorePasswordData *store_data) store_data->name_value, hostname); gtk_label_set_markup (GTK_LABEL (label), message); + gtk_label_set_line_wrap (GTK_LABEL (label), TRUE); g_free (hostname); g_free (message); @@ -1736,7 +1737,7 @@ geolocation_policy_decision_requested_cb (WebKitWebView *web_view, webkit_web_frame_get_uri (web_frame)); label = gtk_label_new (message); - g_object_set (label, "use-markup", TRUE, NULL); + g_object_set (label, "use-markup", TRUE, "wrap", TRUE, NULL); g_free (message); diff --git a/src/ephy-session.c b/src/ephy-session.c index 0fea3304d..fcfdfae33 100644 --- a/src/ephy-session.c +++ b/src/ephy-session.c @@ -782,6 +782,7 @@ session_command_dispatch (EphySession *session) gtk_box_pack_start (GTK_BOX (button_box), action_button, FALSE, FALSE, 0); label = gtk_label_new (_("Do you want to recover the previous browser windows and tabs?")); + gtk_label_set_line_wrap (GTK_LABEL (label), TRUE); content_area = gtk_info_bar_get_content_area (GTK_INFO_BAR (info_bar)); gtk_container_add (GTK_CONTAINER (content_area), label); gtk_widget_show_all (info_bar); |