[gnome-games] Fix typos in gtk_widget_set_window
- From: Thomas Hindoe Paaboel Andersen <thomashpa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] Fix typos in gtk_widget_set_window
- Date: Wed, 7 Apr 2010 16:46:19 +0000 (UTC)
commit 222b72b4fb1d4954e011668da22d8c445b617163
Author: Thomas Hindoe Paaboel Andersen <phomes gmail com>
Date: Wed Apr 7 18:44:34 2010 +0200
Fix typos in gtk_widget_set_window
Also add a few parentheses.
Bug#586731
libgames-support/games-gtk-compat.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libgames-support/games-gtk-compat.h b/libgames-support/games-gtk-compat.h
index 8f07697..dfb4212 100644
--- a/libgames-support/games-gtk-compat.h
+++ b/libgames-support/games-gtk-compat.h
@@ -22,15 +22,15 @@
G_BEGIN_DECLS
#if !GTK_CHECK_VERSION (2, 20, 0)
-#define gtk_widget_get_realized(widget) GTK_WIDGET_REALIZED(widget)
+#define gtk_widget_get_realized(widget) (GTK_WIDGET_REALIZED(widget))
#define gtk_widget_set_realized(w,realized) ((realized) ? (GTK_WIDGET_SET_FLAGS (w, GTK_REALIZED)) : (GTK_WIDGET_UNSET_FLAGS (w, GTK_REALIZED)))
-#define gtk_widget_get_mapped(widget) GTK_WIDGET_MAPPED(widget)
+#define gtk_widget_get_mapped(widget) (GTK_WIDGET_MAPPED(widget))
#endif /* GTK < 2.20.0 */
#if !GTK_CHECK_VERSION (2, 18, 0)
#define gtk_widget_set_allocation(widget, alloc) ((widget)->allocation=*(alloc))
#define gtk_widget_get_allocation(widget, alloc) (*(alloc)=(widget)->allocation)
-#define gtk_widget_set_window (widget, window) ((widget)->window=window)
+#define gtk_widget_set_window(widget, window_arg) ((widget)->window=window_arg)
#define gtk_widget_has_focus(widget) (GTK_WIDGET_HAS_FOCUS (widget))
#define gtk_widget_get_state(widget) ((widget)->state)
#define gtk_widget_get_visible(widget) (GTK_WIDGET_VISIBLE (widget))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]