aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-tls-dialog.c
diff options
context:
space:
mode:
authorDanielle Madeley <danielle.madeley@collabora.co.uk>2010-10-11 09:34:24 +0800
committerDanielle Madeley <danielle.madeley@collabora.co.uk>2010-10-11 09:34:24 +0800
commit6c8e88f2405c3c8f9b8ed8942407643ff5eeed0f (patch)
tree95073509f308d5cb8be49923fd917d9eedede7ec /libempathy-gtk/empathy-tls-dialog.c
parent5c5bf4621619277a7a24e328f8a46ba49bb4211f (diff)
downloadgsoc2013-empathy-6c8e88f2405c3c8f9b8ed8942407643ff5eeed0f.tar
gsoc2013-empathy-6c8e88f2405c3c8f9b8ed8942407643ff5eeed0f.tar.gz
gsoc2013-empathy-6c8e88f2405c3c8f9b8ed8942407643ff5eeed0f.tar.bz2
gsoc2013-empathy-6c8e88f2405c3c8f9b8ed8942407643ff5eeed0f.tar.lz
gsoc2013-empathy-6c8e88f2405c3c8f9b8ed8942407643ff5eeed0f.tar.xz
gsoc2013-empathy-6c8e88f2405c3c8f9b8ed8942407643ff5eeed0f.tar.zst
gsoc2013-empathy-6c8e88f2405c3c8f9b8ed8942407643ff5eeed0f.zip
Force the GcrCertificateWidget to be at least 150 pixels high
Diffstat (limited to 'libempathy-gtk/empathy-tls-dialog.c')
-rw-r--r--libempathy-gtk/empathy-tls-dialog.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-tls-dialog.c b/libempathy-gtk/empathy-tls-dialog.c
index fc198c2f5..9213ac458 100644
--- a/libempathy-gtk/empathy-tls-dialog.c
+++ b/libempathy-gtk/empathy-tls-dialog.c
@@ -221,6 +221,7 @@ build_gcr_widget (EmpathyTLSDialog *self)
GcrCertificate *certificate;
GPtrArray *cert_chain = NULL;
GArray *first_cert;
+ int height;
EmpathyTLSDialogPriv *priv = GET_PRIV (self);
g_object_get (priv->certificate,
@@ -232,6 +233,12 @@ build_gcr_widget (EmpathyTLSDialog *self)
first_cert->len);
widget = gcr_certificate_widget_new (certificate);
+ /* FIXME: make this widget bigger by default -- GTK+ should really handle
+ * this sort of thing for us */
+ gtk_widget_get_preferred_height (GTK_WIDGET (widget), NULL, &height);
+ /* force the widget to at least 150 pixels high */
+ gtk_widget_set_size_request (GTK_WIDGET (widget), -1, MAX (height, 150));
+
g_object_unref (certificate);
g_ptr_array_unref (cert_chain);