]> Dogcows Code - chaz/openbox/commitdiff
config option for icons in desktop menus
authorMikael Magnusson <mikachu@comhem.se>
Sun, 31 Oct 2004 10:10:33 +0000 (10:10 +0000)
committerMikael Magnusson <mikachu@comhem.se>
Sun, 31 Oct 2004 10:10:33 +0000 (10:10 +0000)
data/rc.xml.in
data/rc.xsd
openbox/client_list_menu.c
openbox/config.c
openbox/config.h

index 58c6b42d5350ac91679894a7ca764a838df148e1..b07a8cdce3362edd17910cf4613b371d88ba3a48 100644 (file)
@@ -54,6 +54,7 @@
   <floatingY>0</floatingY>
   <autoHide>no</autoHide>
   <hideDelay>300</hideDelay>
+  <desktopMenuIcons>yes</desktopMenuIcons>
   <moveButton>A-Left</moveButton>
 </dock>
 
index 9f992ed7413a035a31438b787998c72ee7615269..b5b40f2da13bdea10e8cea244f55168984de4805 100644 (file)
@@ -28,6 +28,9 @@
          update hideTimeout to hideDelay
      Thu Apr 22 12:33:11 UTC 2004 - mikachu(a)openbox.org
          add diffs between 3.1 and 3.2
+     Sun Oct 31 10:08:34 UTC 2004 - mikachu(a)openbox.org
+         we haven't remembered to update this changelog in a while,
+         adding desktopMenuIcons.
 -->
 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
     targetNamespace="http://openbox.org/"
             <xs:element name="floatingY" type="xs:integer"/>
             <xs:element name="autoHide" type="ob:yesorno"/>
             <xs:element name="hideDelay" type="xs:integer"/>
+            <xs:element name="disktopMenuIcons" type="ob:yesorno"/>
             <xs:element name="moveButton" type="ob:button"/>
         </xs:sequence>
     </xs:complexType>
index a1dc266c5066d1b713d8a3c68ade1cfe96d5a816..fd14a96d8ab8a2f23665cbaf5bc04863fc711dc5 100644 (file)
@@ -73,7 +73,7 @@ static void desk_menu_update(ObMenuFrame *frame, gpointer data)
             e = menu_add_normal(menu, i,
                                 (c->iconic ? c->icon_title : c->title), acts);
 
-            if ((icon = client_icon(c, 32, 32))) {
+            if (config_menu_client_list_icons && (icon = client_icon(c, 32, 32))) {
                 e->data.normal.icon_width = icon->width;
                 e->data.normal.icon_height = icon->height;
                 e->data.normal.icon_data = icon->data;
index 768cc600ba9af38e0967e1834556545b0420d8e9..f9fae2bfef3265fe96217c787fc6c7081c19b2a4 100644 (file)
@@ -66,6 +66,7 @@ gint config_mouse_dclicktime;
 gboolean config_menu_warppointer;
 gboolean config_menu_xorstyle;
 guint    config_menu_hide_delay;
+gboolean config_menu_client_list_icons;
 
 GSList *config_menu_files;
 
@@ -408,6 +409,8 @@ static void parse_menu(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node,
             config_menu_xorstyle = parse_bool(doc, n);
         if ((n = parse_find_node("hideDelay", node)))
             config_menu_hide_delay = parse_int(doc, n);
+        if ((n = parse_find_node("desktopMenuIcons", node)))
+            config_menu_client_list_icons = parse_int(doc, n);
     }
 }
    
@@ -597,6 +600,7 @@ void config_startup(ObParseInst *i)
     config_menu_warppointer = TRUE;
     config_menu_xorstyle = TRUE;
     config_menu_hide_delay = 250;
+    config_menu_client_list_icons = TRUE;
     config_menu_files = NULL;
 
     parse_register(i, "menu", parse_menu, NULL);
index c7df90f0f19960d8a4039e0becc4d5d9bb76fdb3..13255108b138d417c27769823d1ffe974da4ce22 100644 (file)
@@ -113,6 +113,8 @@ extern gboolean config_menu_warppointer;
 extern gboolean config_menu_xorstyle;
 /*! delay for hiding menu when opening */
 extern guint    config_menu_hide_delay;
+/*! show icons in client_list_menu */
+extern gboolean config_menu_client_list_icons;
 /*! User-specified menu files */
 extern GSList *config_menu_files;
 
This page took 0.028059 seconds and 4 git commands to generate.