summaryrefslogtreecommitdiff
path: root/gtk/gtkbutton.h
diff options
context:
space:
mode:
authorTim Janik <timj@gtk.org>1998-07-07 01:25:27 +0000
committerTim Janik <timj@src.gnome.org>1998-07-07 01:25:27 +0000
commit88fba9f84531a3c38b9ad6dbc9820288cb8b6094 (patch)
treed2910e65e110f05e85f21a85f76a318ec8e4ac0b /gtk/gtkbutton.h
parentda0930717e5ecc4d535e857dc70035aa8990635d (diff)
downloadgtk+-88fba9f84531a3c38b9ad6dbc9820288cb8b6094.tar.gz
totaly binary incomnpatible change:
Mon Jul 6 18:30:48 1998 Tim Janik <timj@gtk.org> * gtk/gtkbutton.h: * gtk/gtkbutton.c: GtkButtons are now derived from GtkBin. we mirror GTK_BIN (button)->child to button->child to keep source compatibility. * gtk/gtkoptionmenu.c: * gtk/gtkclist.c: * gtkcheckbutton.c: don't refer to button->child, but GTK_BIN (button)->child instead.
Diffstat (limited to 'gtk/gtkbutton.h')
-rw-r--r--gtk/gtkbutton.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/gtk/gtkbutton.h b/gtk/gtkbutton.h
index 0a74aba7fd..44f6bde65c 100644
--- a/gtk/gtkbutton.h
+++ b/gtk/gtkbutton.h
@@ -21,7 +21,7 @@
#include <gdk/gdk.h>
-#include <gtk/gtkcontainer.h>
+#include <gtk/gtkbin.h>
#include <gtk/gtkenums.h>
@@ -42,9 +42,11 @@ typedef struct _GtkButtonClass GtkButtonClass;
struct _GtkButton
{
- GtkContainer container;
+ GtkBin bin;
- GtkWidget *child;
+ GtkWidget *child /* deprecapted field,
+ * use GTK_BIN (button)->child instead
+ */;
guint in_button : 1;
guint button_down : 1;
@@ -53,7 +55,7 @@ struct _GtkButton
struct _GtkButtonClass
{
- GtkContainerClass parent_class;
+ GtkBinClass parent_class;
void (* pressed) (GtkButton *button);
void (* released) (GtkButton *button);