summaryrefslogtreecommitdiff
path: root/docs/Changes-2.0.txt
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2001-02-28 19:07:46 +0000
committerHavoc Pennington <hp@src.gnome.org>2001-02-28 19:07:46 +0000
commit56a2f2c628fb0411f26fa0ecaeee32b5e8aebb32 (patch)
tree0f0d9db14a657be55d118ced03fd80857dfe5880 /docs/Changes-2.0.txt
parentc82dc58f7fceed9878181b50783ebfc80a5a3ae8 (diff)
downloadgtk+-56a2f2c628fb0411f26fa0ecaeee32b5e8aebb32.tar.gz
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.
Diffstat (limited to 'docs/Changes-2.0.txt')
-rw-r--r--docs/Changes-2.0.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/Changes-2.0.txt b/docs/Changes-2.0.txt
index b8d0449800..1d18d71f20 100644
--- a/docs/Changes-2.0.txt
+++ b/docs/Changes-2.0.txt
@@ -296,3 +296,14 @@ Incompatible Changes from GTK+-1.2 to GTK+-2.0:
- GdkColorContext is gone; you probably weren't using it anyway.
Use GdkColormap and the gdk_rgb_* functions instead.
+
+- The draw_default and draw_focus methods/signals on GtkWidget are
+ gone; simply draw things in your expose handler.
+ gtk_widget_draw_focus() and gtk_widget_draw_default() wrapper
+ functions are also gone; just queue a draw on the widget,
+ or the part affected by the focus/default anyway.
+
+ Also, GtkWidget now has default implementations for focus_in_event
+ and focus_out_event. These set/unset GTK_HAS_FOCUS, and queue a
+ draw. So if your focus in/out handler just does that, you can delete
+ it.