summaryrefslogtreecommitdiff
path: root/gladeui
diff options
context:
space:
mode:
authorJuan Pablo Ugarte <juanpablougarte@gmail.com>2011-06-14 15:50:18 -0300
committerJuan Pablo Ugarte <juanpablougarte@gmail.com>2011-06-14 15:50:18 -0300
commitc4c6f4408540d0ae251c6c0d776ea4df6a086c71 (patch)
treeb6eb8a9ab7c42471681a59d0b4da673c94d31926 /gladeui
parent2f6c0f2c18a981b44e135ef5507601c49059091f (diff)
Fixed C++ compiler errors when including glade.h
Diffstat (limited to 'gladeui')
-rw-r--r--gladeui/glade-project.h10
-rw-r--r--gladeui/glade-property-class.c4
-rw-r--r--gladeui/glade-property-class.h2
3 files changed, 7 insertions, 9 deletions
diff --git a/gladeui/glade-project.h b/gladeui/glade-project.h
index 1b9eb83f..ab589b00 100644
--- a/gladeui/glade-project.h
+++ b/gladeui/glade-project.h
@@ -19,8 +19,6 @@ G_BEGIN_DECLS
typedef struct _GladeProjectPrivate GladeProjectPrivate;
typedef struct _GladeProjectClass GladeProjectClass;
-typedef enum _GladePointerMode GladePointerMode;
-typedef enum _GladeSupportMask GladeSupportMask;
/**
* GladePointerMode:
@@ -31,19 +29,19 @@ typedef enum _GladeSupportMask GladeSupportMask;
*
* Indicates what the pointer is used for in the workspace.
*/
-enum _GladePointerMode
+typedef enum
{
GLADE_POINTER_SELECT = 0,
GLADE_POINTER_ADD_WIDGET,
GLADE_POINTER_DRAG_RESIZE
-};
+} GladePointerMode;
-enum _GladeSupportMask
+typedef enum
{
GLADE_SUPPORT_OK = 0,
GLADE_SUPPORT_DEPRECATED = (0x01 << 0),
GLADE_SUPPORT_MISMATCH = (0x01 << 1)
-};
+} GladeSupportMask;
/**
* GladeProjectModelColumns:
diff --git a/gladeui/glade-property-class.c b/gladeui/glade-property-class.c
index 9146e659..27ccf6fb 100644
--- a/gladeui/glade-property-class.c
+++ b/gladeui/glade-property-class.c
@@ -1224,11 +1224,11 @@ glade_property_class_save_always (GladePropertyClass *property_class)
void
glade_property_class_set_virtual (GladePropertyClass *property_class,
- gboolean virtual)
+ gboolean value)
{
g_return_if_fail (GLADE_IS_PROPERTY_CLASS (property_class));
- property_class->virt = virtual;
+ property_class->virt = value;
}
gboolean
diff --git a/gladeui/glade-property-class.h b/gladeui/glade-property-class.h
index 45fe081b..66d9b7dc 100644
--- a/gladeui/glade-property-class.h
+++ b/gladeui/glade-property-class.h
@@ -80,7 +80,7 @@ gboolean glade_property_class_save_always (GladePropert
gboolean glade_property_class_is_visible (GladePropertyClass *property_class);
gboolean glade_property_class_is_object (GladePropertyClass *property_class);
void glade_property_class_set_virtual (GladePropertyClass *property_class,
- gboolean virtual);
+ gboolean value);
gboolean glade_property_class_get_virtual (GladePropertyClass *property_class);
void glade_property_class_set_ignore (GladePropertyClass *property_class,
gboolean ignore);