[gtk+] textview: Ensure the borders fit into the allocation
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] textview: Ensure the borders fit into the allocation
- Date: Wed, 9 Mar 2016 16:24:09 +0000 (UTC)
commit 25b67af3409287483ced9f7b585ed1cdefb667af
Author: Timm Bäder <mail baedert org>
Date: Wed Mar 9 11:15:34 2016 +0100
textview: Ensure the borders fit into the allocation
https://bugzilla.gnome.org/show_bug.cgi?id=763216
gtk/gtktextview.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index 50086ec..346f894 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -4003,7 +4003,10 @@ gtk_text_view_size_request (GtkWidget *widget,
border_width = gtk_container_get_border_width (GTK_CONTAINER (text_view));
requisition->width += border_width * 2;
requisition->height += border_width * 2;
-
+
+ requisition->height += priv->top_border + priv->bottom_border;
+ requisition->width += priv->left_border + priv->right_border;
+
tmp_list = priv->children;
while (tmp_list != NULL)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]