[glade] GladeWidget: fix gir scanner warnings
- From: Juan Pablo Ugarte <jpu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade] GladeWidget: fix gir scanner warnings
- Date: Fri, 19 Jun 2020 22:42:16 +0000 (UTC)
commit 265367dd7ee18d7568dddd0d4ec4caa9ec466e5d
Author: Juan Pablo Ugarte <juanpablougarte gmail com>
Date: Fri Jun 19 19:18:20 2020 -0300
GladeWidget: fix gir scanner warnings
Rename IS_GLADE_WIDGET_EVENT to GLADE_WIDGET_IS_EVENT
gladeui/glade-app.c | 2 +-
gladeui/glade-widget.c | 2 +-
gladeui/glade-widget.h | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gladeui/glade-app.c b/gladeui/glade-app.c
index f99c09b7..c347400b 100644
--- a/gladeui/glade-app.c
+++ b/gladeui/glade-app.c
@@ -505,7 +505,7 @@ glade_app_do_event (GdkEvent *event)
/* As a slight optimization we could replace gtk_widget_get_ancestor()
* with a custom function that only iterates trough parents with windows.
*/
- if (widget && IS_GLADE_WIDGET_EVENT (event->type) &&
+ if (widget && GLADE_WIDGET_IS_EVENT (event->type) &&
(layout = gtk_widget_get_ancestor (widget, GLADE_TYPE_DESIGN_LAYOUT)))
return _glade_design_layout_do_event (GLADE_DESIGN_LAYOUT (layout), event);
diff --git a/gladeui/glade-widget.c b/gladeui/glade-widget.c
index 3e6206e4..8c62e698 100644
--- a/gladeui/glade-widget.c
+++ b/gladeui/glade-widget.c
@@ -4502,7 +4502,7 @@ glade_widget_depends (GladeWidget *widget, GladeWidget *other)
* glade_widget_get_device_from_event:
* @event: a GdkEvent
*
- * Currently only motion and button events are handled (see IS_GLADE_WIDGET_EVENT)
+ * Currently only motion and button events are handled (see GLADE_WIDGET_IS_EVENT)
*
* Returns: (transfer none): the associated #GdkDevice for this glade widget event.
*
diff --git a/gladeui/glade-widget.h b/gladeui/glade-widget.h
index c6189731..7892ad9d 100644
--- a/gladeui/glade-widget.h
+++ b/gladeui/glade-widget.h
@@ -61,7 +61,7 @@ struct _GladeWidgetClass
*/
#define GLADE_UNNAMED_PREFIX "__glade_unnamed_"
-#define IS_GLADE_WIDGET_EVENT(event) \
+#define GLADE_WIDGET_IS_EVENT(event) \
((event) == GDK_BUTTON_PRESS || \
(event) == GDK_BUTTON_RELEASE || \
(event) == GDK_MOTION_NOTIFY)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]