summaryrefslogtreecommitdiff
path: root/gtk/gtkbutton.h
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2001-03-06 15:51:10 +0000
committerOwen Taylor <otaylor@src.gnome.org>2001-03-06 15:51:10 +0000
commit71aa1161b309ea0ad4e9776ebb554b920071c298 (patch)
tree7ab66033bd99fdab00cd955a50b3127090ed30fd /gtk/gtkbutton.h
parent96f9c875ee1445c2e4a2b62ec98b76505adc2728 (diff)
downloadgdk-pixbuf-71aa1161b309ea0ad4e9776ebb554b920071c298.tar.gz
Add animation of activation by, on activate, pressing the button, and
Tue Mar 6 10:45:45 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkbutton.c: Add animation of activation by, on activate, pressing the button, and adding a timeout that releases the button after 250ms or on key release and emits ::clicked. (#51501) * gtk/gtkdialog.c: Bit of a hack - for buttons in the action area, we connect to ::clicked instead of ::activate so the dialog stays up through the animation. Mon Mar 5 16:38:15 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkmenushell.c (gtk_menu_shell_enter_notify): Only check the ignore_enter flag for the menu shell that the item is actually a child of, not for attached submenus. (#51536)
Diffstat (limited to 'gtk/gtkbutton.h')
-rw-r--r--gtk/gtkbutton.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkbutton.h b/gtk/gtkbutton.h
index 0d8c676d0..553813994 100644
--- a/gtk/gtkbutton.h
+++ b/gtk/gtkbutton.h
@@ -56,6 +56,8 @@ struct _GtkButton
* use GTK_BIN (button)->child instead
*/;
+ guint activate_timeout;
+
guint in_button : 1;
guint button_down : 1;
guint relief : 2;
@@ -70,6 +72,7 @@ struct _GtkButtonClass
void (* clicked) (GtkButton *button);
void (* enter) (GtkButton *button);
void (* leave) (GtkButton *button);
+ void (* activate) (GtkButton *button);
};