[Xfce4-commits] <midori:master> Set default size on certificate details with GTK+2

Christian Dywan noreply at xfce.org
Tue Jul 24 23:12:01 CEST 2012


Updating branch refs/heads/master
         to 5425f1c3addb2ced8e9853e1d4e31e78ff42ad6d (commit)
       from e02a90d844e337e342338d1450abe65c46f11fc9 (commit)

commit 5425f1c3addb2ced8e9853e1d4e31e78ff42ad6d
Author: Christian Dywan <christian at twotoasts.de>
Date:   Tue Jul 24 22:28:39 2012 +0200

    Set default size on certificate details with GTK+2

 midori/midori-locationaction.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/midori/midori-locationaction.c b/midori/midori-locationaction.c
index dbed3d3..dc125cf 100644
--- a/midori/midori-locationaction.c
+++ b/midori/midori-locationaction.c
@@ -1290,6 +1290,10 @@ midori_location_action_show_page_info (GtkWidget* widget,
     g_object_set_data_full (G_OBJECT (dialog), "gcr-cert", gcr_cert, (GDestroyNotify)g_object_unref);
     g_signal_connect (dialog, "response",
         G_CALLBACK (midori_location_action_cert_response_cb), gcr_cert);
+    /* With GTK+2 the scrolled contents can't communicate a natural size to the window */
+    #if !GTK_CHECK_VERSION (3, 0, 0)
+    gtk_window_set_default_size (GTK_WINDOW (dialog), 250, 200);
+    #endif
     #else
     const gchar* tls_error = midori_location_action_tls_flags_to_string (tls_flags);
 


More information about the Xfce4-commits mailing list