summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-08-30 19:02:10 +0000
committerDana Jansens <danakj@orodu.net>2003-08-30 19:02:10 +0000
commitf97e7133d46d43799b6a84dabd4ba5976556230d (patch)
tree485547773963435e7b9c15307abd6ab196fa1e4c
parent6de84db80daaef511a1b22be0179dcbf1a55fe07 (diff)
allow handlewidth of 0, which sets show_handle to false
-rw-r--r--render/theme.c11
-rw-r--r--render/theme.h3
2 files changed, 11 insertions, 3 deletions
diff --git a/render/theme.c b/render/theme.c
index 7461387f..c87f58c2 100644
--- a/render/theme.c
+++ b/render/theme.c
@@ -35,6 +35,8 @@ RrTheme* RrThemeNew(const RrInstance *inst, gchar *name)
theme->inst = inst;
+ theme->show_handle = TRUE;
+
theme->a_disabled_focused_max = RrAppearanceNew(inst, 1);
theme->a_disabled_unfocused_max = RrAppearanceNew(inst, 1);
theme->a_hover_focused_max = RrAppearanceNew(inst, 1);
@@ -147,9 +149,12 @@ RrTheme* RrThemeNew(const RrInstance *inst, gchar *name)
if (!read_int(db, "menuOverlap", &theme->menu_overlap) ||
theme->menu_overlap < 0 || theme->menu_overlap > 20)
theme->menu_overlap = 0;
- if (!read_int(db, "handleWidth", &theme->handle_height) ||
- theme->handle_height < 0 || theme->handle_height > 100)
- theme->handle_height = 3;
+ if (!read_int(db, "handleWidth", &theme->handle_height))
+ theme->handle_height = 6;
+ if (!theme->handle_height)
+ theme->show_handle = FALSE;
+ if (theme->handle_height <= 0 || theme->handle_height > 100)
+ theme->handle_height = 6;
if (!read_int(db, "bevelWidth", &theme->bevel) ||
theme->bevel <= 0 || theme->bevel > 100)
theme->bevel = 3;
diff --git a/render/theme.h b/render/theme.h
index 0e574d79..d9965f6f 100644
--- a/render/theme.h
+++ b/render/theme.h
@@ -11,6 +11,9 @@ struct _RrTheme {
const RrInstance *inst;
+ /* style settings - optional decor */
+ gboolean show_handle;
+
/* style settings - geometry */
gint bevel;
gint handle_height;