[gtk+/multitouch-for-3.4: 9/89] gtk: Expose _gtk_propagate_captured_event() as a private function
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/multitouch-for-3.4: 9/89] gtk: Expose _gtk_propagate_captured_event() as a private function
- Date: Thu, 23 Feb 2012 12:26:41 +0000 (UTC)
commit caeba038b580e01c548ad5a101117cbf2b184af4
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Feb 22 19:03:17 2012 +0100
gtk: Expose _gtk_propagate_captured_event() as a private function
gtk/gtkmain.c | 20 ++++++++------------
gtk/gtkprivate.h | 4 ++++
2 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c
index cd08027..2eee7cd 100644
--- a/gtk/gtkmain.c
+++ b/gtk/gtkmain.c
@@ -132,10 +132,6 @@
#include "a11y/gailutil.h"
-static gboolean gtk_propagate_captured_event (GtkWidget *widget,
- GdkEvent *event,
- GtkWidget *topmost);
-
/* Private type definitions
*/
typedef struct _GtkKeySnooperData GtkKeySnooperData;
@@ -1649,7 +1645,7 @@ gtk_main_do_event (GdkEvent *event)
case GDK_BUTTON_PRESS:
case GDK_2BUTTON_PRESS:
case GDK_3BUTTON_PRESS:
- if (!gtk_propagate_captured_event (grab_widget, event, topmost_widget))
+ if (!_gtk_propagate_captured_event (grab_widget, event, topmost_widget))
gtk_propagate_event (grab_widget, event);
break;
@@ -1699,7 +1695,7 @@ gtk_main_do_event (GdkEvent *event)
case GDK_BUTTON_RELEASE:
case GDK_PROXIMITY_IN:
case GDK_PROXIMITY_OUT:
- if (!gtk_propagate_captured_event (grab_widget, event, topmost_widget))
+ if (!_gtk_propagate_captured_event (grab_widget, event, topmost_widget))
gtk_propagate_event (grab_widget, event);
break;
@@ -1708,7 +1704,7 @@ gtk_main_do_event (GdkEvent *event)
gdk_event_get_device (event),
event->any.window);
if (gtk_widget_is_sensitive (grab_widget) &&
- !gtk_propagate_captured_event (grab_widget, event, topmost_widget))
+ !_gtk_propagate_captured_event (grab_widget, event, topmost_widget))
gtk_widget_event (grab_widget, event);
break;
@@ -1717,7 +1713,7 @@ gtk_main_do_event (GdkEvent *event)
gdk_event_get_device (event),
NULL);
if (gtk_widget_is_sensitive (grab_widget) &&
- !gtk_propagate_captured_event (grab_widget, event, topmost_widget))
+ !_gtk_propagate_captured_event (grab_widget, event, topmost_widget))
gtk_widget_event (grab_widget, event);
break;
@@ -2510,10 +2506,10 @@ gtk_propagate_event (GtkWidget *widget,
propagate_event (widget, event, FALSE, NULL);
}
-static gboolean
-gtk_propagate_captured_event (GtkWidget *widget,
- GdkEvent *event,
- GtkWidget *topmost)
+gboolean
+_gtk_propagate_captured_event (GtkWidget *widget,
+ GdkEvent *event,
+ GtkWidget *topmost)
{
return propagate_event (widget, event, TRUE, topmost);
}
diff --git a/gtk/gtkprivate.h b/gtk/gtkprivate.h
index 1b4d0ae..121b169 100644
--- a/gtk/gtkprivate.h
+++ b/gtk/gtkprivate.h
@@ -74,6 +74,10 @@ gboolean _gtk_translate_keyboard_accel_state (GdkKeymap *keymap,
gint *level,
GdkModifierType *consumed_modifiers);
+gboolean _gtk_propagate_captured_event (GtkWidget *widget,
+ GdkEvent *event,
+ GtkWidget *topmost);
+
G_END_DECLS
#endif /* __GTK_PRIVATE_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]