From 56a2f2c628fb0411f26fa0ecaeee32b5e8aebb32 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Wed, 28 Feb 2001 19:07:46 +0000 Subject: Remove draw_focus and draw_default (gtk_widget_draw_focus): remove this 2001-02-28 Havoc Pennington * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove draw_focus and draw_default (gtk_widget_draw_focus): remove this function; we could instead make it just gtk_widget_draw(), but in most cases I think the result would be broken user code, so think it's better to have that code not compile and get fixed (gtk_widget_draw_default): ditto * gtk/gtkwidget.c: Add default handlers for focus_in_event and focus_out_event that set/unset GTK_HAS_FOCUS and call queue_draw * gtk/gtkwindow.c (gtk_window_set_default): just queue a draw when widgets lose/get the default, instead of calling draw_default * docs/Changes-2.0.txt: note about all this Then fixed every widget in GTK, I won't list all the filenames. --- gtk/gtkclist.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'gtk/gtkclist.c') diff --git a/gtk/gtkclist.c b/gtk/gtkclist.c index f0ba6b76e..2c8dec11d 100644 --- a/gtk/gtkclist.c +++ b/gtk/gtkclist.c @@ -523,7 +523,6 @@ gtk_clist_class_init (GtkCListClass *klass) widget_class->size_allocate = gtk_clist_size_allocate; widget_class->focus_in_event = gtk_clist_focus_in; widget_class->focus_out_event = gtk_clist_focus_out; - widget_class->draw_focus = gtk_clist_draw_focus; widget_class->style_set = gtk_clist_style_set; widget_class->drag_begin = gtk_clist_drag_begin; widget_class->drag_end = gtk_clist_drag_end; @@ -6637,10 +6636,10 @@ gtk_clist_focus_in (GtkWidget *widget, gtk_signal_emit (GTK_OBJECT (clist), clist_signals[SELECT_ROW], clist->focus_row, -1, event); else - gtk_widget_draw_focus (widget); + gtk_clist_draw_focus (widget); } else - gtk_widget_draw_focus (widget); + gtk_clist_draw_focus (widget); return FALSE; } @@ -6657,7 +6656,7 @@ gtk_clist_focus_out (GtkWidget *widget, GTK_WIDGET_UNSET_FLAGS (widget, GTK_HAS_FOCUS); - gtk_widget_draw_focus (widget); + gtk_clist_draw_focus (widget); clist = GTK_CLIST (widget); -- cgit v1.2.1