]> Dogcows Code - chaz/openbox/commitdiff
rename back the app_selected appearances to app_hilite
authorDana Jansens <danakj@orodu.net>
Mon, 1 Sep 2003 16:37:21 +0000 (16:37 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 1 Sep 2003 16:37:21 +0000 (16:37 +0000)
openbox/menuframe.c
openbox/popup.c
render/theme.c
render/theme.h

index 4a56548f3784543f7dc0abf8007a799c0dddea66..6f91e0b1649f0f6304ed17170bc02d326de2d0ae 100644 (file)
@@ -323,7 +323,7 @@ static void menu_entry_frame_render(ObMenuEntryFrame *self)
         self->a_bullet->surface.parent = item_a;
         self->a_bullet->surface.parentx =
             self->frame->text_x + self->frame->text_w - self->frame->item_h
-            - PADDING;
+            + PADDING;
         self->a_bullet->surface.parenty = PADDING;
         RrPaint(self->a_bullet, self->bullet,
                 self->frame->item_h - 2*PADDING,
index ac8ef700e99032cf953b03306e3d6b5ded43faa9..d44a59d162c0415d38dc80e3904b58a269d17c41 100644 (file)
@@ -97,7 +97,7 @@ void popup_size_to_string(Popup *self, gchar *text)
     gint iconw;
 
     if (!self->a_text)
-        self->a_text = RrAppearanceCopy(ob_rr_theme->app_selected_label);
+        self->a_text = RrAppearanceCopy(ob_rr_theme->app_hilite_label);
 
     self->a_text->texture[0].data.text.string = text;
     RrMinsize(self->a_text, &textw, &texth);
@@ -112,7 +112,7 @@ void popup_size_to_string(Popup *self, gchar *text)
 void popup_set_text_align(Popup *self, RrJustify align)
 {
     if (!self->a_text)
-        self->a_text = RrAppearanceCopy(ob_rr_theme->app_selected_label);
+        self->a_text = RrAppearanceCopy(ob_rr_theme->app_hilite_label);
 
     self->a_text->texture[0].data.text.justify = align;
 }
@@ -125,11 +125,11 @@ void popup_show(Popup *self, gchar *text, ObClientIcon *icon)
 
     /* create the shit if needed */
     if (!self->a_bg)
-        self->a_bg = RrAppearanceCopy(ob_rr_theme->app_selected_bg);
+        self->a_bg = RrAppearanceCopy(ob_rr_theme->app_hilite_bg);
     if (self->hasicon && !self->a_icon)
         self->a_icon = RrAppearanceCopy(ob_rr_theme->a_clear_tex);
     if (!self->a_text)
-        self->a_text = RrAppearanceCopy(ob_rr_theme->app_selected_label);
+        self->a_text = RrAppearanceCopy(ob_rr_theme->app_hilite_label);
 
     XSetWindowBorderWidth(ob_display, self->bg, ob_rr_theme->bwidth);
     XSetWindowBorder(ob_display, self->bg, ob_rr_theme->b_color->pixel);
index cd867742a0f48e5bf69b381255c29ab53fd8a9a4..e98537548ff1d0568cc0f0bf96eb1353961f951c 100644 (file)
@@ -68,10 +68,10 @@ RrTheme* RrThemeNew(const RrInstance *inst, gchar *name)
     theme->a_clear = RrAppearanceNew(inst, 0);
     theme->a_clear_tex = RrAppearanceNew(inst, 1);
 
-    theme->app_selected_bg = RrAppearanceNew(inst, 0);
-    theme->app_unselected_bg = RrAppearanceNew(inst, 0);
-    theme->app_selected_label = RrAppearanceNew(inst, 1);
-    theme->app_unselected_label = RrAppearanceNew(inst, 1);
+    theme->app_hilite_bg = RrAppearanceNew(inst, 0);
+    theme->app_unhilite_bg = RrAppearanceNew(inst, 0);
+    theme->app_hilite_label = RrAppearanceNew(inst, 1);
+    theme->app_unhilite_label = RrAppearanceNew(inst, 1);
 
     if (name) {
        db = loaddb(theme, name);
@@ -464,21 +464,21 @@ RrTheme* RrThemeNew(const RrInstance *inst, gchar *name)
 
     /* read the appearances for rendering non-decorations */
     if (!read_appearance(db, inst,
-                         "window.title.focus", theme->app_selected_bg,
+                         "window.title.focus", theme->app_hilite_bg,
                          FALSE))
-        set_default_appearance(theme->app_selected_bg);
+        set_default_appearance(theme->app_hilite_bg);
     if (!read_appearance(db, inst,
-                         "window.label.focus", theme->app_selected_label,
+                         "window.label.focus", theme->app_hilite_label,
                          TRUE))
-        set_default_appearance(theme->app_selected_label);
+        set_default_appearance(theme->app_hilite_label);
     if (!read_appearance(db, inst,
-                         "window.title.unfocus", theme->app_unselected_bg,
+                         "window.title.unfocus", theme->app_unhilite_bg,
                          FALSE))
-        set_default_appearance(theme->app_unselected_bg);
+        set_default_appearance(theme->app_unhilite_bg);
     if (!read_appearance(db, inst,
-                         "window.label.unfocus", theme->app_unselected_label,
+                         "window.label.unfocus", theme->app_unhilite_label,
                          TRUE))
-        set_default_appearance(theme->app_unselected_label);
+        set_default_appearance(theme->app_unhilite_label);
 
     /* read buttons textures */
     if (!read_appearance(db, inst,
@@ -633,26 +633,26 @@ RrTheme* RrThemeNew(const RrInstance *inst, gchar *name)
 
     /* set up the textures */
     theme->a_focused_label->texture[0].type = 
-        theme->app_selected_label->texture[0].type = RR_TEXTURE_TEXT;
+        theme->app_hilite_label->texture[0].type = RR_TEXTURE_TEXT;
     theme->a_focused_label->texture[0].data.text.justify = winjust;
-    theme->app_selected_label->texture[0].data.text.justify = RR_JUSTIFY_LEFT;
+    theme->app_hilite_label->texture[0].data.text.justify = RR_JUSTIFY_LEFT;
     theme->a_focused_label->texture[0].data.text.font =
-        theme->app_selected_label->texture[0].data.text.font =
+        theme->app_hilite_label->texture[0].data.text.font =
         theme->winfont_focused;
     theme->a_focused_label->texture[0].data.text.color =
-        theme->app_selected_label->texture[0].data.text.color =
+        theme->app_hilite_label->texture[0].data.text.color =
         theme->title_focused_color;
 
     theme->a_unfocused_label->texture[0].type =
-        theme->app_unselected_label->texture[0].type = RR_TEXTURE_TEXT;
+        theme->app_unhilite_label->texture[0].type = RR_TEXTURE_TEXT;
     theme->a_unfocused_label->texture[0].data.text.justify = winjust;
-    theme->app_unselected_label->texture[0].data.text.justify =
+    theme->app_unhilite_label->texture[0].data.text.justify =
         RR_JUSTIFY_LEFT;
     theme->a_unfocused_label->texture[0].data.text.font =
-        theme->app_unselected_label->texture[0].data.text.font =
+        theme->app_unhilite_label->texture[0].data.text.font =
         theme->winfont_unfocused;
     theme->a_unfocused_label->texture[0].data.text.color =
-        theme->app_unselected_label->texture[0].data.text.color =
+        theme->app_unhilite_label->texture[0].data.text.color =
         theme->title_unfocused_color;
 
     theme->a_menu_title->texture[0].type = RR_TEXTURE_TEXT;
@@ -987,10 +987,10 @@ void RrThemeFree(RrTheme *theme)
         RrAppearanceFree(theme->a_menu_text_selected);
         RrAppearanceFree(theme->a_clear);
         RrAppearanceFree(theme->a_clear_tex);
-        RrAppearanceFree(theme->app_selected_bg);
-        RrAppearanceFree(theme->app_unselected_bg);
-        RrAppearanceFree(theme->app_selected_label);
-        RrAppearanceFree(theme->app_unselected_label);
+        RrAppearanceFree(theme->app_hilite_bg);
+        RrAppearanceFree(theme->app_unhilite_bg);
+        RrAppearanceFree(theme->app_hilite_label);
+        RrAppearanceFree(theme->app_unhilite_label);
     }
 }
 
index b4d7cd1dcb92434a7ea02d27c09b01f66609f04d..c93eb843897d8ac5292c3fc70038191137a8eef8 100644 (file)
@@ -153,10 +153,10 @@ struct _RrTheme {
     RrAppearance *a_clear;     /* clear with no texture */
     RrAppearance *a_clear_tex; /* clear with a texture */
 
-    RrAppearance *app_selected_bg;
-    RrAppearance *app_unselected_bg;
-    RrAppearance *app_selected_label;
-    RrAppearance *app_unselected_label;
+    RrAppearance *app_hilite_bg;
+    RrAppearance *app_unhilite_bg;
+    RrAppearance *app_hilite_label;
+    RrAppearance *app_unhilite_label;
 
 };
 
This page took 0.03903 seconds and 4 git commands to generate.