diff options
author | Marko Lindqvist <cazfi74@gmail.com> | 2012-12-15 13:03:12 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-12-19 17:54:52 +0000 |
commit | 9e941bbfaa4785ed5870a3ecde35191957871adb (patch) | |
tree | d79156f2c6686a1b3770c84bcb10703dfaede559 /meta/recipes-gnome/gtk+/gtk+-2.24.13/0001-GtkButton-do-not-prelight-in-touchscreen-mode.patch | |
parent | 7202ab662ce4e4fc8bfb4ebaa245dca4bdfce44c (diff) | |
download | poky-9e941bbfaa4785ed5870a3ecde35191957871adb.tar.gz |
gtk+: update to upstream version 2.24.14
(From OE-Core rev: 4e9a5a56ddaeeeebcb0df63f671d73436aa2c6c2)
Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-gnome/gtk+/gtk+-2.24.13/0001-GtkButton-do-not-prelight-in-touchscreen-mode.patch')
-rw-r--r-- | meta/recipes-gnome/gtk+/gtk+-2.24.13/0001-GtkButton-do-not-prelight-in-touchscreen-mode.patch | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/meta/recipes-gnome/gtk+/gtk+-2.24.13/0001-GtkButton-do-not-prelight-in-touchscreen-mode.patch b/meta/recipes-gnome/gtk+/gtk+-2.24.13/0001-GtkButton-do-not-prelight-in-touchscreen-mode.patch deleted file mode 100644 index 71e334d897..0000000000 --- a/meta/recipes-gnome/gtk+/gtk+-2.24.13/0001-GtkButton-do-not-prelight-in-touchscreen-mode.patch +++ /dev/null | |||
@@ -1,48 +0,0 @@ | |||
1 | From d1f7a894674dfdd6769f1bbae31eb1a69e451a5c Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com> | ||
3 | Date: Fri, 16 Nov 2012 22:07:28 +0100 | ||
4 | Subject: [PATCH] GtkButton: do not prelight in touchscreen mode | ||
5 | MIME-Version: 1.0 | ||
6 | Content-Type: text/plain; charset=UTF-8 | ||
7 | Content-Transfer-Encoding: 8bit | ||
8 | |||
9 | Code was copied from GtkToggleButton. | ||
10 | |||
11 | Upstream-Status: submitted [1] | ||
12 | |||
13 | [1] https://bugzilla.gnome.org/show_bug.cgi?id=689138 | ||
14 | |||
15 | Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> | ||
16 | --- | ||
17 | gtk/gtkbutton.c | 8 ++++++-- | ||
18 | 1 files changed, 6 insertions(+), 2 deletions(-) | ||
19 | |||
20 | diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c | ||
21 | index f472007..1beb1b6 100644 | ||
22 | --- a/gtk/gtkbutton.c | ||
23 | +++ b/gtk/gtkbutton.c | ||
24 | @@ -2079,15 +2079,19 @@ _gtk_button_set_depressed (GtkButton *button, | ||
25 | static void | ||
26 | gtk_button_update_state (GtkButton *button) | ||
27 | { | ||
28 | - gboolean depressed; | ||
29 | + gboolean depressed, touchscreen; | ||
30 | GtkStateType new_state; | ||
31 | |||
32 | + g_object_get (gtk_widget_get_settings (GTK_WIDGET (button)), | ||
33 | + "gtk-touchscreen-mode", &touchscreen, | ||
34 | + NULL); | ||
35 | + | ||
36 | if (button->activate_timeout) | ||
37 | depressed = button->depress_on_activate; | ||
38 | else | ||
39 | depressed = button->in_button && button->button_down; | ||
40 | |||
41 | - if (button->in_button && (!button->button_down || !depressed)) | ||
42 | + if (!touchscreen && button->in_button && (!button->button_down || !depressed)) | ||
43 | new_state = GTK_STATE_PRELIGHT; | ||
44 | else | ||
45 | new_state = depressed ? GTK_STATE_ACTIVE : GTK_STATE_NORMAL; | ||
46 | -- | ||
47 | 1.7.6.5 | ||
48 | |||