From 3a5447574bd97c21fcf663f9c3947011ece48017 Mon Sep 17 00:00:00 2001 From: Lars Hamann Date: Wed, 7 Oct 1998 22:13:19 +0000 Subject: [PATCH] added size_allocate_title_buttons call (gtk_clist_realize): changed Wed Oct 7 23:59:37 1998 Lars Hamann * gtk/gtkclist.c (gtk_clist_set_column_resizeable): added size_allocate_title_buttons call (gtk_clist_realize): changed initial column.window position --- ChangeLog | 6 ++++++ ChangeLog.pre-2-0 | 6 ++++++ ChangeLog.pre-2-10 | 6 ++++++ ChangeLog.pre-2-2 | 6 ++++++ ChangeLog.pre-2-4 | 6 ++++++ ChangeLog.pre-2-6 | 6 ++++++ ChangeLog.pre-2-8 | 6 ++++++ gtk/gtkclist.c | 8 ++++++++ 8 files changed, 50 insertions(+) diff --git a/ChangeLog b/ChangeLog index 85999f5998..cb691ee3ac 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Wed Oct 7 23:59:37 1998 Lars Hamann + + * gtk/gtkclist.c (gtk_clist_set_column_resizeable): added + size_allocate_title_buttons call + (gtk_clist_realize): changed initial column.window position + Wed Oct 7 20:27:28 1998 Lars Hamann * gtk/gtkctree.h (struct _GtkCTree): removed xor_gc, use clists diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 85999f5998..cb691ee3ac 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,9 @@ +Wed Oct 7 23:59:37 1998 Lars Hamann + + * gtk/gtkclist.c (gtk_clist_set_column_resizeable): added + size_allocate_title_buttons call + (gtk_clist_realize): changed initial column.window position + Wed Oct 7 20:27:28 1998 Lars Hamann * gtk/gtkctree.h (struct _GtkCTree): removed xor_gc, use clists diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 85999f5998..cb691ee3ac 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +Wed Oct 7 23:59:37 1998 Lars Hamann + + * gtk/gtkclist.c (gtk_clist_set_column_resizeable): added + size_allocate_title_buttons call + (gtk_clist_realize): changed initial column.window position + Wed Oct 7 20:27:28 1998 Lars Hamann * gtk/gtkctree.h (struct _GtkCTree): removed xor_gc, use clists diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 85999f5998..cb691ee3ac 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,9 @@ +Wed Oct 7 23:59:37 1998 Lars Hamann + + * gtk/gtkclist.c (gtk_clist_set_column_resizeable): added + size_allocate_title_buttons call + (gtk_clist_realize): changed initial column.window position + Wed Oct 7 20:27:28 1998 Lars Hamann * gtk/gtkctree.h (struct _GtkCTree): removed xor_gc, use clists diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 85999f5998..cb691ee3ac 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,9 @@ +Wed Oct 7 23:59:37 1998 Lars Hamann + + * gtk/gtkclist.c (gtk_clist_set_column_resizeable): added + size_allocate_title_buttons call + (gtk_clist_realize): changed initial column.window position + Wed Oct 7 20:27:28 1998 Lars Hamann * gtk/gtkctree.h (struct _GtkCTree): removed xor_gc, use clists diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 85999f5998..cb691ee3ac 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,9 @@ +Wed Oct 7 23:59:37 1998 Lars Hamann + + * gtk/gtkclist.c (gtk_clist_set_column_resizeable): added + size_allocate_title_buttons call + (gtk_clist_realize): changed initial column.window position + Wed Oct 7 20:27:28 1998 Lars Hamann * gtk/gtkctree.h (struct _GtkCTree): removed xor_gc, use clists diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 85999f5998..cb691ee3ac 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +Wed Oct 7 23:59:37 1998 Lars Hamann + + * gtk/gtkclist.c (gtk_clist_set_column_resizeable): added + size_allocate_title_buttons call + (gtk_clist_realize): changed initial column.window position + Wed Oct 7 20:27:28 1998 Lars Hamann * gtk/gtkctree.h (struct _GtkCTree): removed xor_gc, use clists 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); -- GitLab