1 --- gtk+-2.6.4/gtk/gtkwidget.h 2004-11-28 09:02:27.000000000 +0200
2 +++ gtk+-2.6.4/gtk/gtkwidget.h 2005-04-06 16:19:38.400700568 +0300
4 * file for a list of people on the GTK+ Team. See the ChangeLog
5 * files for a list of changes. These files are distributed with
6 * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
8 + * Changes made to create Hildon focus handling and the tap and hold functionality
12 #ifndef __GTK_WIDGET_H__
14 GTK_WIDGET_HELP_WHATS_THIS
17 +/*Tap And Hold type flags*/
20 + GTK_TAP_AND_HOLD_NONE = 0,
21 + GTK_TAP_AND_HOLD_PASS_PRESS = 1 << 0,
22 + GTK_TAP_AND_HOLD_NO_SIGNALS = 1 << 1,
23 + GTK_TAP_AND_HOLD_NO_INTERNALS = 1 << 2
24 +} GtkWidgetTapAndHoldFlags;
26 /* Macro for casting a pointer to a GtkWidget or GtkWidgetClass pointer.
27 * Macros for testing whether `widget' or `klass' are of type GTK_TYPE_WIDGET.
30 void (*_gtk_reserved2) (void);
31 void (*_gtk_reserved3) (void);
32 void (*_gtk_reserved4) (void);
33 - void (*_gtk_reserved5) (void);
34 - void (*_gtk_reserved6) (void);
35 - void (*_gtk_reserved7) (void);
36 + void (*tap_and_hold) (GtkWidget *widget); /* Tap and hold action */
37 + void (*tap_and_hold_setup) (GtkWidget *widget, GtkWidget *menu,
38 + GtkCallback func, GtkWidgetTapAndHoldFlags flags);
39 + void (*insensitive_press) (GtkWidget *widget);
42 struct _GtkWidgetAuxInfo
45 GdkColormap* _gtk_widget_peek_colormap (void);
47 +/*Hildon functions for focus handling*/
48 +void gtk_widget_set_hildon_focus_handling( GtkWidget *widget, gboolean hildon_like );
49 +gboolean gtk_widget_get_hildon_focus_handling( GtkWidget *widget );
51 +/*Tap And Hold functions*/
52 +void gtk_widget_tap_and_hold_menu_position_top (GtkWidget *menu,
53 + gint *x, gint *y, gboolean *push_in, GtkWidget *widget);
54 +void gtk_widget_tap_and_hold_setup (GtkWidget *widget, GtkWidget *menu,
55 + GtkCallback func, GtkWidgetTapAndHoldFlags flags);
59 #endif /* __cplusplus */