[epiphany] Use line-wrap in GtkInfoBar labels



commit 60bea9a1003343635d27fba83d3b089fb208efec
Author: Diego Escalante Urrelo <descalante igalia com>
Date:   Sat Jul 30 19:05:04 2011 -0500

    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 ++-
 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 b4aca44..a4d9720 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 0fea330..fcfdfae 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]