Release 0.8.0. 0.8.0
authorAndriy Grytsenko <andrej@rep.kiev.ua>
Sun, 7 Dec 2014 16:23:47 +0000 (18:23 +0200)
committerAndriy Grytsenko <andrej@rep.kiev.ua>
Sun, 7 Dec 2014 16:23:47 +0000 (18:23 +0200)
configure.ac
src/panel.c

index 1885c48..e8290eb 100644 (file)
@@ -1,5 +1,5 @@
 AC_PREREQ(2.53)
-AC_INIT(lxpanel, 0.7.99, http://lxde.org/)
+AC_INIT(lxpanel, 0.8.0, http://lxde.org/)
 AM_INIT_AUTOMAKE([-Wall foreign subdir-objects no-dist-gzip dist-xz])
 AC_CONFIG_HEADER([config.h])
 AC_CONFIG_MACRO_DIR([m4])
index 0ae0f1f..791753a 100644 (file)
@@ -1695,9 +1695,9 @@ panel_parse_global(Panel *p, config_setting_t *cfg)
     }
     if (config_setting_lookup_string(cfg, "edge", &str))
         p->edge = str2num(edge_pair, str, EDGE_NONE);
-    if (config_setting_lookup_string(cfg, "align", &str))
-        p->align = str2num(allign_pair, str, ALIGN_NONE);
-    else if (config_setting_lookup_string(cfg, "allign", &str))
+    if (config_setting_lookup_string(cfg, "align", &str) ||
+        /* NOTE: supporting "allign" for backward compatibility */
+        config_setting_lookup_string(cfg, "allign", &str))
         p->align = str2num(allign_pair, str, ALIGN_NONE);
     config_setting_lookup_int(cfg, "monitor", &p->monitor);
     config_setting_lookup_int(cfg, "margin", &p->margin);