[Commits] [SCM] claws branch, gtk3, updated. 3.16.0-462-g0b23f0f

ticho at claws-mail.org ticho at claws-mail.org
Mon Nov 5 23:12:26 CET 2018


The branch, gtk3 has been updated
       via  0b23f0f87bf92de28c8262e93e115454bda3743f (commit)
      from  96c3ac0854314fe38483214bf9ceea5e7b59f880 (commit)

Summary of changes:
 src/gtk/gtkcmclist.c |   11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)


- Log -----------------------------------------------------------------
commit 0b23f0f87bf92de28c8262e93e115454bda3743f
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Mon Nov 5 23:11:01 2018 +0100

    Do not regard border width property in gtk_cmclist_realize().
    
    Border width happens outside of widget's main GdkWindow.

diff --git a/src/gtk/gtkcmclist.c b/src/gtk/gtkcmclist.c
index 0da9078..ae53353 100644
--- 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);
 

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list