[gtk+] gdkborder: add GdkBorder to gdktypes.h
- From: William Hua <williamhua src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gdkborder: add GdkBorder to gdktypes.h
- Date: Tue, 15 Dec 2015 15:24:22 +0000 (UTC)
commit a6e4de28842002e7bfdf73def26c4c52d9f9126a
Author: William Hua <william hua canonical com>
Date: Wed Oct 21 23:36:50 2015 -0400
gdkborder: add GdkBorder to gdktypes.h
docs/reference/gdk/gdk3-sections.txt | 3 +++
gdk/gdktypes.h | 20 ++++++++++++++++++++
gtk/gtkborder.h | 10 +---------
3 files changed, 24 insertions(+), 9 deletions(-)
---
diff --git a/docs/reference/gdk/gdk3-sections.txt b/docs/reference/gdk/gdk3-sections.txt
index 26d8062..7b1b9f7 100644
--- a/docs/reference/gdk/gdk3-sections.txt
+++ b/docs/reference/gdk/gdk3-sections.txt
@@ -638,6 +638,9 @@ gdk_rectangle_intersect
gdk_rectangle_union
gdk_rectangle_equal
+<SUBSECTION>
+GdkBorder
+
<SUBSECTION Private>
gdk_rectangle_get_type
</SECTION>
diff --git a/gdk/gdktypes.h b/gdk/gdktypes.h
index 01366fd..17584b2 100644
--- a/gdk/gdktypes.h
+++ b/gdk/gdktypes.h
@@ -93,6 +93,26 @@ typedef struct _GdkRectangle GdkRectangle;
typedef cairo_rectangle_int_t GdkRectangle;
#endif
+typedef struct _GdkBorder GdkBorder;
+
+/**
+ * GdkBorder:
+ * @left: The width of the left border
+ * @right: The width of the right border
+ * @top: The width of the top border
+ * @bottom: The width of the bottom border
+ *
+ * A struct that specifies a border around a rectangular area
+ * that can be of different width on each side.
+ */
+struct _GdkBorder
+{
+ gint16 left;
+ gint16 right;
+ gint16 top;
+ gint16 bottom;
+};
+
/**
* GdkAtom:
*
diff --git a/gtk/gtkborder.h b/gtk/gtkborder.h
index adfa29e..6df53aa 100644
--- a/gtk/gtkborder.h
+++ b/gtk/gtkborder.h
@@ -34,8 +34,6 @@
G_BEGIN_DECLS
-typedef struct _GtkBorder GtkBorder;
-
#define GTK_TYPE_BORDER (gtk_border_get_type ())
/**
@@ -48,13 +46,7 @@ typedef struct _GtkBorder GtkBorder;
* A struct that specifies a border around a rectangular area
* that can be of different width on each side.
*/
-struct _GtkBorder
-{
- gint16 left;
- gint16 right;
- gint16 top;
- gint16 bottom;
-};
+typedef GdkBorder GtkBorder;
GDK_AVAILABLE_IN_ALL
GType gtk_border_get_type (void) G_GNUC_CONST;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]