[gtk+/gtk-style-context] Add corners to GtkJunctionSides, defining sides as 2 corners.
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-style-context] Add corners to GtkJunctionSides, defining sides as 2 corners.
- Date: Wed, 17 Nov 2010 01:47:15 +0000 (UTC)
commit 69b48dbe2608edb07b4c556680f521b985edb12b
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Nov 17 02:38:31 2010 +0100
Add corners to GtkJunctionSides, defining sides as 2 corners.
gtk/gtkenums.h | 16 ++++++++++++----
1 files changed, 12 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkenums.h b/gtk/gtkenums.h
index 4330448..f00312c 100644
--- a/gtk/gtkenums.h
+++ b/gtk/gtkenums.h
@@ -629,6 +629,10 @@ typedef enum {
/**
* GtkJunctionSides:
* @GTK_JUNCTION_NONE: No junctions.
+ * @GTK_JUNCTION_CORNER_TOPLEFT: Element connects on the top-left corner.
+ * @GTK_JUNCTION_CORNER_TOPRIGHT: Element connects on the top-right corner.
+ * @GTK_JUNCTION_CORNER_BOTTOMLEFT: Element connects on the bottom-left corner.
+ * @GTK_JUNCTION_CORNER_BOTTOMRIGHT: Element connects on the bottom-right corner.
* @GTK_JUNCTION_TOP: Element connects on the top side.
* @GTK_JUNCTION_BOTTOM: Element connects on the bottom side.
* @GTK_JUNCTION_LEFT: Element connects on the left side.
@@ -638,10 +642,14 @@ typedef enum {
*/
typedef enum {
GTK_JUNCTION_NONE = 0,
- GTK_JUNCTION_TOP = 1 << 0,
- GTK_JUNCTION_BOTTOM = 1 << 1,
- GTK_JUNCTION_LEFT = 1 << 2,
- GTK_JUNCTION_RIGHT = 1 << 3
+ GTK_JUNCTION_CORNER_TOPLEFT = 1 << 0,
+ GTK_JUNCTION_CORNER_TOPRIGHT = 1 << 1,
+ GTK_JUNCTION_CORNER_BOTTOMLEFT = 1 << 2,
+ GTK_JUNCTION_CORNER_BOTTOMRIGHT = 1 << 3,
+ GTK_JUNCTION_TOP = (GTK_JUNCTION_CORNER_TOPLEFT | GTK_JUNCTION_CORNER_TOPRIGHT),
+ GTK_JUNCTION_BOTTOM = (GTK_JUNCTION_CORNER_BOTTOMLEFT | GTK_JUNCTION_CORNER_BOTTOMRIGHT),
+ GTK_JUNCTION_LEFT = (GTK_JUNCTION_CORNER_TOPLEFT | GTK_JUNCTION_CORNER_BOTTOMLEFT),
+ GTK_JUNCTION_RIGHT = (GTK_JUNCTION_CORNER_TOPRIGHT | GTK_JUNCTION_CORNER_BOTTOMRIGHT)
} GtkJunctionSides;
typedef enum {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]