]> Dogcows Code - chaz/openbox/commitdiff
allow handlewidth of 0, which sets show_handle to false
authorDana Jansens <danakj@orodu.net>
Sat, 30 Aug 2003 19:02:10 +0000 (19:02 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 30 Aug 2003 19:02:10 +0000 (19:02 +0000)
render/theme.c
render/theme.h

index 7461387f791964e647637fb063350f3aa5828eaf..c87f58c2f6ebe23b39ccdaa1f3e012ff4c899678 100644 (file)
@@ -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;
index 0e574d791985eeafa366c9ee3496eb5dafecdfc4..d9965f6f154e658a27a42f300f41948a3fd2bfe0 100644 (file)
@@ -11,6 +11,9 @@ struct _RrTheme {
 
     const RrInstance *inst;
 
+    /* style settings - optional decor */
+    gboolean show_handle;
+
     /* style settings - geometry */
     gint bevel;
     gint handle_height;
This page took 0.026824 seconds and 4 git commands to generate.