From 60bea9a1003343635d27fba83d3b089fb208efec Mon Sep 17 00:00:00 2001 From: Diego Escalante Urrelo Date: Sat, 30 Jul 2011 19:05:04 -0500 Subject: 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 --- embed/ephy-web-view.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'embed') 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); -- cgit v1.2.3