[Xfce4-commits] <midori:master> Revert requistion hack for cookie description label

Christian Dywan noreply at xfce.org
Sun May 1 19:08:01 CEST 2011


Updating branch refs/heads/master
         to 3f10d0bfb88458e1f6acfc5cb46dfc0c5d901799 (commit)
       from 7033129aff66f39542726f550ad027816efb433f (commit)

commit 3f10d0bfb88458e1f6acfc5cb46dfc0c5d901799
Author: Christian Dywan <christian at twotoasts.de>
Date:   Sun May 1 17:53:41 2011 +0200

    Revert requistion hack for cookie description label
    
    It doesn't work at all well in most cases.

 midori/main.c |   11 +----------
 1 files changed, 1 insertions(+), 10 deletions(-)

diff --git a/midori/main.c b/midori/main.c
index f14e239..5d6035d 100644
--- a/midori/main.c
+++ b/midori/main.c
@@ -748,7 +748,7 @@ midori_browser_privacy_preferences_cb (MidoriBrowser*    browser,
     guint active;
     gchar* markup;
 
-    GtkWidget* page_content = katze_preferences_add_category (preferences, _("Privacy"), GTK_STOCK_INDEX);
+    katze_preferences_add_category (preferences, _("Privacy"), GTK_STOCK_INDEX);
     katze_preferences_add_group (preferences, _("Web Cookies"));
     button = katze_property_label (settings, "maximum-cookie-age");
     katze_preferences_add_widget (preferences, button, "indented");
@@ -778,18 +778,9 @@ midori_browser_privacy_preferences_cb (MidoriBrowser*    browser,
         _("Cookies store login data, saved games, "
           "or user profiles for advertisement purposes."));
     label = gtk_label_new (NULL);
-    gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
     gtk_label_set_markup (GTK_LABEL (label), markup);
     g_free (markup);
     katze_preferences_add_widget (preferences, label, "filled");
-    if (1)
-    {
-        /* GtkLabel can't wrap the text properly. Until some day
-           this works, we implement this hack to do it ourselves. */
-        GtkRequisition req;
-        gtk_widget_size_request (page_content, &req);
-        gtk_widget_set_size_request (label, req.width * 0.99, -1);
-    }
     #if WEBKIT_CHECK_VERSION (1, 1, 13)
     button = katze_property_proxy (settings, "enable-offline-web-application-cache", NULL);
     katze_preferences_add_widget (preferences, button, "indented");



More information about the Xfce4-commits mailing list