aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog10
-rw-r--r--applets/mb-applet-wireless.c8
-rw-r--r--src/panel.c1
3 files changed, 15 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 651345e..24dd71d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2004-02-13 Matthew Allum,,, <mallum@openedhand.com>
+
+ * applets/mb-applet-wireless.c: (resize_callback),
+ (theme_callback):
+ * src/panel.c: (panel_set_theme_from_root_prop):
+ Fix crash when wireless at maximum strength.
+ Caused by level enum referencing from 1 not 0.
+
+2004-02-10 matchbox-panel-0.8 released released
+
2004-02-10 Matthew Allum,,, <mallum@openedhand.com>
* applets/mb-applet-battery.c: (main):
diff --git a/applets/mb-applet-wireless.c b/applets/mb-applet-wireless.c
index 9f62cf6..e60bf07 100644
--- a/applets/mb-applet-wireless.c
+++ b/applets/mb-applet-wireless.c
@@ -55,10 +55,10 @@
#define IMG_EXT "xpm"
#endif
-static int LastImg = 0;
+static int LastImg = -1;
enum {
- MW_BROKE = 1,
+ MW_BROKE = 0,
MW_NO_LINK,
MW_SIG_1_40,
MW_SIG_41_60,
@@ -401,7 +401,7 @@ resize_callback (MBTrayApp *app, int w, int h )
if (want_resize) /* we only request a resize is absolutely needed */
{
- LastImg = 0;
+ LastImg = -1;
mb_tray_app_request_size (app, scale_width, scale_height);
}
@@ -452,7 +452,7 @@ theme_callback (MBTrayApp *app, char *theme_name)
if (!theme_name) return;
if (ThemeName) free(ThemeName);
- LastImg = 0; /* Make sure paint gets updated */
+ LastImg = -1; /* Make sure paint gets updated */
ThemeName = strdup(theme_name);
load_icons(app);
diff --git a/src/panel.c b/src/panel.c
index 1c4d691..a2e1cc3 100644
--- a/src/panel.c
+++ b/src/panel.c
@@ -603,6 +603,7 @@ panel_set_theme_from_root_prop(MBPanel *panel)
util_xcol_from_spec(panel, panel->msg_urgent_col,
DEFAULT_MSG_BGURGCOL);
+
if (mb_dotdesktop_get(theme, "PanelMsgFgCol"))
util_xcol_from_spec(panel, panel->msg_fg_col,
mb_dotdesktop_get(theme,