summaryrefslogtreecommitdiffstats
path: root/meta/packages/gtk+/gtk+-2.6.4-1.osso7/gtkwidget.h.diff
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/gtk+/gtk+-2.6.4-1.osso7/gtkwidget.h.diff')
-rw-r--r--meta/packages/gtk+/gtk+-2.6.4-1.osso7/gtkwidget.h.diff59
1 files changed, 59 insertions, 0 deletions
diff --git a/meta/packages/gtk+/gtk+-2.6.4-1.osso7/gtkwidget.h.diff b/meta/packages/gtk+/gtk+-2.6.4-1.osso7/gtkwidget.h.diff
new file mode 100644
index 0000000000..7350082d3c
--- /dev/null
+++ b/meta/packages/gtk+/gtk+-2.6.4-1.osso7/gtkwidget.h.diff
@@ -0,0 +1,59 @@
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
3@@ -22,6 +22,9 @@
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/.
7+
8+ * Changes made to create Hildon focus handling and the tap and hold functionality
9+ *
10 */
11
12 #ifndef __GTK_WIDGET_H__
13@@ -87,6 +90,15 @@
14 GTK_WIDGET_HELP_WHATS_THIS
15 } GtkWidgetHelpType;
16
17+/*Tap And Hold type flags*/
18+typedef enum
19+{
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;
25+
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.
28 */
29@@ -410,9 +422,10 @@
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);
40 };
41
42 struct _GtkWidgetAuxInfo
43@@ -787,6 +800,16 @@
44
45 GdkColormap* _gtk_widget_peek_colormap (void);
46
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 );
50+
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);
56+
57 #ifdef __cplusplus
58 }
59 #endif /* __cplusplus */