From fba2b02b10c62fbd75fcd70af2f5bb3cfe4fc5c6 Mon Sep 17 00:00:00 2001 From: George Lebl Date: Mon, 3 Aug 1998 05:58:49 +0000 Subject: [PATCH] draw the buttons during a "draw" as well, this fixes a bug when the whole Sun Aug 02 22:58:00 1998 George Lebl * gtk/gtkclist.c: draw the buttons during a "draw" as well, this fixes a bug when the whole widget is made non-sesitive the buttons weren't redrawn --- 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 | 6 ++++++ 8 files changed, 48 insertions(+) diff --git a/ChangeLog b/ChangeLog index 617ac22e5b..e629a787ae 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Sun Aug 02 22:58:00 1998 George Lebl + + * gtk/gtkclist.c: draw the buttons during a "draw" as well, + this fixes a bug when the whole widget is made non-sesitive + the buttons weren't redrawn + Mon Aug 3 00:04:09 1998 Lars Hamann * gtk/gtkclist.c (abort_column_resize): reset drag_pos after abort diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 617ac22e5b..e629a787ae 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,9 @@ +Sun Aug 02 22:58:00 1998 George Lebl + + * gtk/gtkclist.c: draw the buttons during a "draw" as well, + this fixes a bug when the whole widget is made non-sesitive + the buttons weren't redrawn + Mon Aug 3 00:04:09 1998 Lars Hamann * gtk/gtkclist.c (abort_column_resize): reset drag_pos after abort diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 617ac22e5b..e629a787ae 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +Sun Aug 02 22:58:00 1998 George Lebl + + * gtk/gtkclist.c: draw the buttons during a "draw" as well, + this fixes a bug when the whole widget is made non-sesitive + the buttons weren't redrawn + Mon Aug 3 00:04:09 1998 Lars Hamann * gtk/gtkclist.c (abort_column_resize): reset drag_pos after abort diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 617ac22e5b..e629a787ae 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,9 @@ +Sun Aug 02 22:58:00 1998 George Lebl + + * gtk/gtkclist.c: draw the buttons during a "draw" as well, + this fixes a bug when the whole widget is made non-sesitive + the buttons weren't redrawn + Mon Aug 3 00:04:09 1998 Lars Hamann * gtk/gtkclist.c (abort_column_resize): reset drag_pos after abort diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 617ac22e5b..e629a787ae 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,9 @@ +Sun Aug 02 22:58:00 1998 George Lebl + + * gtk/gtkclist.c: draw the buttons during a "draw" as well, + this fixes a bug when the whole widget is made non-sesitive + the buttons weren't redrawn + Mon Aug 3 00:04:09 1998 Lars Hamann * gtk/gtkclist.c (abort_column_resize): reset drag_pos after abort diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 617ac22e5b..e629a787ae 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,9 @@ +Sun Aug 02 22:58:00 1998 George Lebl + + * gtk/gtkclist.c: draw the buttons during a "draw" as well, + this fixes a bug when the whole widget is made non-sesitive + the buttons weren't redrawn + Mon Aug 3 00:04:09 1998 Lars Hamann * gtk/gtkclist.c (abort_column_resize): reset drag_pos after abort diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 617ac22e5b..e629a787ae 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +Sun Aug 02 22:58:00 1998 George Lebl + + * gtk/gtkclist.c: draw the buttons during a "draw" as well, + this fixes a bug when the whole widget is made non-sesitive + the buttons weren't redrawn + Mon Aug 3 00:04:09 1998 Lars Hamann * gtk/gtkclist.c (abort_column_resize): reset drag_pos after abort diff --git a/gtk/gtkclist.c b/gtk/gtkclist.c index 8018e547ad..ac25959755 100644 --- a/gtk/gtkclist.c +++ b/gtk/gtkclist.c @@ -2521,6 +2521,7 @@ gtk_clist_draw (GtkWidget * widget, { GtkCList *clist; gint border_width; + int i; g_return_if_fail (widget != NULL); g_return_if_fail (GTK_IS_CLIST (widget)); @@ -2548,6 +2549,11 @@ gtk_clist_draw (GtkWidget * widget, 0, 0, -1, -1); draw_rows (clist, NULL); + + for (i = 0; i < clist->columns; i++) + { + gtk_widget_queue_draw (clist->column[i].button); + } } }