[gtk+/resolution-independence] RI: move GtkParamSpec[U]Size definitions into header



commit 47c00c7ad40682d4250b9f6a0d30b4e323a52dc7
Author: Davyd Madeley <davyd madeley id au>
Date:   Wed May 6 15:35:53 2009 +0800

    RI: move GtkParamSpec[U]Size definitions into header
    
    Otherwise GTK_PARAM_SPEC_[U]SIZE macros do not work. Though these macros are of
    dubious use, since the all the interesting items are contained within the parent
    class.
---
 gtk/gtksize.c |   12 ------------
 gtk/gtksize.h |   12 ++++++++++++
 2 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/gtk/gtksize.c b/gtk/gtksize.c
index c65f42e..2f22826 100644
--- a/gtk/gtksize.c
+++ b/gtk/gtksize.c
@@ -227,18 +227,6 @@
 /* if we can't determine the DPI, fall back to this value */
 #define FALLBACK_DPI 96
 
-typedef struct _GtkParamSpecSize GtkParamSpecSize;
-struct _GtkParamSpecSize
-{
-  GParamSpecInt parent_instance;
-};
-
-typedef struct _GtkParamSpecUSize GtkParamSpecUSize;
-struct _GtkParamSpecUSize
-{
-  GParamSpecUInt parent_instance;
-};
-
 static gboolean units_enabled = FALSE;
 static gboolean application_wants_to_use_units = FALSE;
 static gboolean have_checked = FALSE;
diff --git a/gtk/gtksize.h b/gtk/gtksize.h
index 39565e5..309cdcb 100644
--- a/gtk/gtksize.h
+++ b/gtk/gtksize.h
@@ -51,6 +51,18 @@ typedef gint GtkSize;
  */
 typedef guint GtkUSize;
 
+typedef struct _GtkParamSpecSize GtkParamSpecSize;
+struct _GtkParamSpecSize
+{
+  GParamSpecInt parent_instance;
+};
+
+typedef struct _GtkParamSpecUSize GtkParamSpecUSize;
+struct _GtkParamSpecUSize
+{
+  GParamSpecUInt parent_instance;
+};
+
 /**
  * GtkSizeUnit:
  * @GTK_SIZE_UNIT_PIXEL: the size is measure in pixels



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