From 3be7113946c83a01724bd19c04b7c2788a337843 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Enrico=20Tr=C3=B6ger?= Date: Tue, 7 Apr 2009 22:02:19 +0200 Subject: [PATCH] Increase padding in the cookie manager and adjust the markup --- extensions/cookie-manager.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/extensions/cookie-manager.c b/extensions/cookie-manager.c index 3fd813fd..79f699e7 100644 --- a/extensions/cookie-manager.c +++ b/extensions/cookie-manager.c @@ -175,7 +175,8 @@ static gchar *cm_get_cookie_description_text(SoupCookie *cookie) expires = _("At the end of the session"); text = g_markup_printf_escaped( - _("Host: %s\nName: %s\nValue: %s\nPath: %s\nSecure: %s\nExpires: %s"), + _("Host: %s\nName: %s\nValue: %s\nPath: %s\n" + "Secure: %s\nExpires: %s"), cookie->domain, cookie->name, cookie->value, @@ -781,6 +782,7 @@ static void cm_app_add_browser_cb(MidoriApp *app, MidoriBrowser *browser, Midori gtk_label_set_line_wrap(GTK_LABEL(cmdata->desc_label), TRUE); gtk_label_set_line_wrap_mode(GTK_LABEL(cmdata->desc_label), PANGO_WRAP_CHAR); gtk_misc_set_alignment(GTK_MISC(cmdata->desc_label), 0, 0); + gtk_misc_set_padding(GTK_MISC(cmdata->desc_label), 3, 3); gtk_widget_show(cmdata->desc_label); desc_swin = gtk_scrolled_window_new(NULL, NULL); @@ -814,9 +816,9 @@ static void cm_app_add_browser_cb(MidoriApp *app, MidoriBrowser *browser, Midori g_signal_connect(cmdata->filter_entry, "changed", G_CALLBACK(cm_filter_entry_changed_cb), cmdata); g_signal_connect(cmdata->filter_entry, "activate", G_CALLBACK(cm_filter_entry_changed_cb), cmdata); - filter_hbox = gtk_hbox_new(FALSE, 3); - gtk_box_pack_start(GTK_BOX(filter_hbox), filter_label, FALSE, FALSE, 0); - gtk_box_pack_start(GTK_BOX(filter_hbox), cmdata->filter_entry, TRUE, TRUE, 0); + filter_hbox = gtk_hbox_new(FALSE, 0); + gtk_box_pack_start(GTK_BOX(filter_hbox), filter_label, FALSE, FALSE, 3); + gtk_box_pack_start(GTK_BOX(filter_hbox), cmdata->filter_entry, TRUE, TRUE, 3); gtk_widget_show(filter_hbox); paned = gtk_vpaned_new(); @@ -825,7 +827,7 @@ static void cm_app_add_browser_cb(MidoriApp *app, MidoriBrowser *browser, Midori gtk_widget_show(paned); cmdata->panel_page = gtk_vbox_new(FALSE, 0); - gtk_box_pack_start(GTK_BOX(cmdata->panel_page), filter_hbox, FALSE, FALSE, 3); + gtk_box_pack_start(GTK_BOX(cmdata->panel_page), filter_hbox, FALSE, FALSE, 5); gtk_box_pack_start(GTK_BOX(cmdata->panel_page), paned, TRUE, TRUE, 0); gtk_widget_show(cmdata->panel_page); @@ -840,6 +842,8 @@ static void cm_app_add_browser_cb(MidoriApp *app, MidoriBrowser *browser, Midori STOCK_COOKIE_MANAGER, _("Cookie Manager"), toolbar); g_signal_connect(ext, "deactivate", G_CALLBACK(cm_deactivate_cb), cmdata); + + g_object_unref(panel); } @@ -853,6 +857,7 @@ static void cm_activate_cb(MidoriExtension *extension, MidoriApp *app, gpointer i = 0; while ((browser = katze_array_get_nth_item(browsers, i++))) cm_app_add_browser_cb(app, browser, extension); + g_object_unref(browsers); g_signal_connect(app, "add-browser", G_CALLBACK(cm_app_add_browser_cb), extension); } -- 2.39.5