[gtk+/wip/baedert/gtkimageview] win32 geometry: reorganize code to avoid prototypes



commit c882ae573ed7dc9e2ef0f8a90abef434e00de561
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Sat Jan 23 14:35:59 2016 -0800

    win32 geometry: reorganize code to avoid prototypes

 gdk/win32/gdkgeometry-win32.c |   41 +++++++++++++++++++----------------------
 1 files changed, 19 insertions(+), 22 deletions(-)
---
diff --git a/gdk/win32/gdkgeometry-win32.c b/gdk/win32/gdkgeometry-win32.c
index f9764eb..7d955f3 100644
--- a/gdk/win32/gdkgeometry-win32.c
+++ b/gdk/win32/gdkgeometry-win32.c
@@ -46,8 +46,25 @@
 
 typedef struct _GdkWindowParentPos GdkWindowParentPos;
 
-static void tmp_unset_bg (GdkWindow *window);
-static void tmp_reset_bg (GdkWindow *window);
+static void
+tmp_unset_bg (GdkWindow *window)
+{
+  GdkWindowImplWin32 *impl;
+
+  impl = GDK_WINDOW_IMPL_WIN32 (window->impl);
+
+  impl->no_bg = TRUE;
+}
+
+static void
+tmp_reset_bg (GdkWindow *window)
+{
+  GdkWindowImplWin32 *impl;
+
+  impl = GDK_WINDOW_IMPL_WIN32 (window->impl);
+
+  impl->no_bg = FALSE;
+}
 
 void
 _gdk_window_move_resize_child (GdkWindow *window,
@@ -121,26 +138,6 @@ _gdk_win32_window_tmp_unset_bg (GdkWindow *window,
     }
 }
 
-static void
-tmp_unset_bg (GdkWindow *window)
-{
-  GdkWindowImplWin32 *impl;
-
-  impl = GDK_WINDOW_IMPL_WIN32 (window->impl);
-
-  impl->no_bg = TRUE;
-}
-
-static void
-tmp_reset_bg (GdkWindow *window)
-{
-  GdkWindowImplWin32 *impl;
-
-  impl = GDK_WINDOW_IMPL_WIN32 (window->impl);
-
-  impl->no_bg = FALSE;
-}
-
 void
 _gdk_win32_window_tmp_unset_parent_bg (GdkWindow *window)
 {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]