]> Pileus Git - ~andy/gtk/commitdiff
queue a draw for the entire widget if any column changes width. (Fixes
authorKristian Rietveld <kris@gtk.org>
Thu, 11 Aug 2005 17:47:18 +0000 (17:47 +0000)
committerKristian Rietveld <kristian@src.gnome.org>
Thu, 11 Aug 2005 17:47:18 +0000 (17:47 +0000)
2005-08-11  Kristian Rietveld  <kris@gtk.org>

* gtk/gtktreeview.c (gtk_tree_view_size_allocate_columns): queue
a draw for the entire widget if any column changes width. (Fixes
#311026, reported by Frederic Crozat).

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-8
gtk/gtktreeview.c

index e62be520a1cdfd8f4f73755b5000ad4529e1a696..479da197d5c05013c42549c13f9e5dc5cbbccbf5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-08-11  Kristian Rietveld  <kris@gtk.org>
+
+       * gtk/gtktreeview.c (gtk_tree_view_size_allocate_columns): queue
+       a draw for the entire widget if any column changes width. (Fixes
+       #311026, reported by Frederic Crozat).
+
 2005-08-10  J. Ali Harlow  <ali@juiblex.co.uk>
 
        * configure.in: Revert to linking against pangowin32 under win32
index e62be520a1cdfd8f4f73755b5000ad4529e1a696..479da197d5c05013c42549c13f9e5dc5cbbccbf5 100644 (file)
@@ -1,3 +1,9 @@
+2005-08-11  Kristian Rietveld  <kris@gtk.org>
+
+       * gtk/gtktreeview.c (gtk_tree_view_size_allocate_columns): queue
+       a draw for the entire widget if any column changes width. (Fixes
+       #311026, reported by Frederic Crozat).
+
 2005-08-10  J. Ali Harlow  <ali@juiblex.co.uk>
 
        * configure.in: Revert to linking against pangowin32 under win32
index e62be520a1cdfd8f4f73755b5000ad4529e1a696..479da197d5c05013c42549c13f9e5dc5cbbccbf5 100644 (file)
@@ -1,3 +1,9 @@
+2005-08-11  Kristian Rietveld  <kris@gtk.org>
+
+       * gtk/gtktreeview.c (gtk_tree_view_size_allocate_columns): queue
+       a draw for the entire widget if any column changes width. (Fixes
+       #311026, reported by Frederic Crozat).
+
 2005-08-10  J. Ali Harlow  <ali@juiblex.co.uk>
 
        * configure.in: Revert to linking against pangowin32 under win32
index 13d974a39dc9a85dd1ae65b791ffda7cbe322d9d..68a99a5ba92e64f06649b0e6fb2d3b63460b1d02 100644 (file)
@@ -1907,6 +1907,7 @@ gtk_tree_view_size_allocate_columns (GtkWidget *widget)
   gint extra, extra_per_column;
   gint full_requested_width = 0;
   gint number_of_expand_columns = 0;
+  gboolean column_changed = FALSE;
   gboolean rtl;
   
   tree_view = GTK_TREE_VIEW (widget);
@@ -2009,7 +2010,7 @@ gtk_tree_view_size_allocate_columns (GtkWidget *widget)
       width += column->width;
 
       if (column->width > old_width)
-       invalidate_column (tree_view, column);
+        column_changed = TRUE;
 
       gtk_widget_size_allocate (column->button, &allocation);
 
@@ -2019,6 +2020,9 @@ gtk_tree_view_size_allocate_columns (GtkWidget *widget)
                                allocation.y,
                                 TREE_VIEW_DRAG_WIDTH, allocation.height);
     }
+
+  if (column_changed)
+    gtk_widget_queue_draw (GTK_WIDGET (tree_view));
 }