[gtk-engines/gnome3: 2/5] Remove ClearlooksStateType.
- From: Benjamin Berg <bberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-engines/gnome3: 2/5] Remove ClearlooksStateType.
- Date: Fri, 2 Apr 2010 15:43:50 +0000 (UTC)
commit 4bbcce7ad2135a17871f0bb0bfd78a967ec5216d
Author: Benjamin Berg <benjamin sipsolutions net>
Date: Fri Apr 2 15:31:56 2010 +0200
Remove ClearlooksStateType.
engines/clearlooks/src/clearlooks_style.c | 2 +-
engines/clearlooks/src/clearlooks_types.h | 10 +---------
2 files changed, 2 insertions(+), 10 deletions(-)
---
diff --git a/engines/clearlooks/src/clearlooks_style.c b/engines/clearlooks/src/clearlooks_style.c
index 240a662..49b3a49 100644
--- a/engines/clearlooks/src/clearlooks_style.c
+++ b/engines/clearlooks/src/clearlooks_style.c
@@ -70,7 +70,7 @@ clearlooks_set_widget_parameters (const GtkWidget *widget,
params->active = (state_type == GTK_STATE_ACTIVE);
params->prelight = (state_type == GTK_STATE_PRELIGHT);
params->disabled = (state_type == GTK_STATE_INSENSITIVE);
- params->state_type = (ClearlooksStateType)state_type;
+ params->state_type = state_type;
params->corners = CR_CORNER_ALL;
params->ltr = ge_widget_is_ltr ((GtkWidget*)widget);
params->focus = !CLEARLOOKS_STYLE (style)->disable_focus && widget && GTK_WIDGET_HAS_FOCUS (widget);
diff --git a/engines/clearlooks/src/clearlooks_types.h b/engines/clearlooks/src/clearlooks_types.h
index 2c08cfb..fae088f 100644
--- a/engines/clearlooks/src/clearlooks_types.h
+++ b/engines/clearlooks/src/clearlooks_types.h
@@ -43,14 +43,6 @@ typedef enum
typedef enum
{
- CL_STATE_NORMAL,
- CL_STATE_ACTIVE,
- CL_STATE_SELECTED,
- CL_STATE_INSENSITIVE
-} ClearlooksStateType;
-
-typedef enum
-{
CL_JUNCTION_NONE = 0,
CL_JUNCTION_BEGIN = 1,
CL_JUNCTION_END = 2
@@ -190,7 +182,7 @@ typedef struct
gfloat radius;
- ClearlooksStateType state_type;
+ GtkStateType state_type;
uint8 corners;
uint8 xthickness;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]