talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 0b23f0f87bf92de28c8262e93e115454bda3743f
parent 96c3ac0854314fe38483214bf9ceea5e7b59f880
Author: Andrej Kacian <ticho@claws-mail.org>
Date:   Mon,  5 Nov 2018 23:11:01 +0100

Do not regard border width property in gtk_cmclist_realize().

Border width happens outside of widget's main GdkWindow.

Diffstat:
Msrc/gtk/gtkcmclist.c | 11++++-------
1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/src/gtk/gtkcmclist.c b/src/gtk/gtkcmclist.c @@ -4610,7 +4610,6 @@ gtk_cmclist_realize (GtkWidget *widget) GtkCMCListRow *clist_row; GList *list; gint attributes_mask; - gint border_width; gint event_mask; gint i; gint j; @@ -4621,15 +4620,13 @@ gtk_cmclist_realize (GtkWidget *widget) gtk_widget_set_realized (widget, TRUE); - border_width = gtk_container_get_border_width (GTK_CONTAINER (widget)); - gtk_widget_get_allocation (widget, &allocation); attributes.window_type = GDK_WINDOW_CHILD; - attributes.x = allocation.x + border_width; - attributes.y = allocation.y + border_width; - attributes.width = allocation.width - border_width * 2; - attributes.height = allocation.height - border_width * 2; + attributes.x = allocation.x; + attributes.y = allocation.y; + attributes.width = allocation.width; + attributes.height = allocation.height; attributes.wclass = GDK_INPUT_OUTPUT; attributes.visual = gtk_widget_get_visual (widget);