summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorLars Hamann <lars@gtk.org>1998-10-07 22:13:19 +0000
committerLars Hamann <lars@src.gnome.org>1998-10-07 22:13:19 +0000
commit3a5447574bd97c21fcf663f9c3947011ece48017 (patch)
tree94b88e349e7b1f12a31f7fb2732520873e0e2429 /gtk
parent28cd4d6102002cd0ae5d8daa438205791ca43d49 (diff)
downloadgtk+-3a5447574bd97c21fcf663f9c3947011ece48017.tar.gz
added size_allocate_title_buttons call (gtk_clist_realize): changed
Wed Oct 7 23:59:37 1998 Lars Hamann <lars@gtk.org> * gtk/gtkclist.c (gtk_clist_set_column_resizeable): added size_allocate_title_buttons call (gtk_clist_realize): changed initial column.window position
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtkclist.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk/gtkclist.c b/gtk/gtkclist.c
index 1bbd240540..ea1dc32033 100644
--- a/gtk/gtkclist.c
+++ b/gtk/gtkclist.c
@@ -1080,6 +1080,9 @@ gtk_clist_set_column_resizeable (GtkCList *clist,
return;
clist->column[column].resizeable = resizeable;
+
+ if (GTK_WIDGET_VISIBLE (clist))
+ size_allocate_title_buttons (clist);
}
void
@@ -2599,6 +2602,11 @@ gtk_clist_realize (GtkWidget * widget)
attributes.cursor = clist->cursor_drag = gdk_cursor_new (GDK_SB_H_DOUBLE_ARROW);
attributes_mask = GDK_WA_CURSOR;
+ attributes.x = LIST_WIDTH (clist) + 1;
+ attributes.y = 0;
+ attributes.width = 0;
+ attributes.height = 0;
+
for (i = 0; i < clist->columns; i++)
{
clist->column[i].window = gdk_window_new (clist->title_window, &attributes, attributes_mask);