Remove draw_focus and draw_default (gtk_widget_draw_focus): remove this
2001-02-28 Havoc Pennington <hp@redhat.com> * 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.
This commit is contained in:
committed by
Havoc Pennington
parent
c82dc58f7f
commit
56a2f2c628
@ -5781,9 +5781,8 @@ real_undo_selection (GtkCList *clist)
|
||||
|
||||
if (GTK_WIDGET_HAS_FOCUS (clist) && clist->focus_row != clist->undo_anchor)
|
||||
{
|
||||
gtk_widget_draw_focus (GTK_WIDGET (clist));
|
||||
clist->focus_row = clist->undo_anchor;
|
||||
gtk_widget_draw_focus (GTK_WIDGET (clist));
|
||||
gtk_widget_queue_draw (GTK_WIDGET (clist));
|
||||
}
|
||||
else
|
||||
clist->focus_row = clist->undo_anchor;
|
||||
|
||||
Reference in New Issue
Block a user