Author: juha
Date: 2007-02-04 15:31:25 +0000 (Sun, 04 Feb 2007)
New Revision: 24845
Modified:
xfcalendar/branches/xfce_4_4/panel-plugin/oc_config.c
xfcalendar/branches/xfce_4_4/panel-plugin/orageclock.c
xfcalendar/branches/xfce_4_4/panel-plugin/orageclock.h
Log:
Fixing Bug 2863: erroneous warning when adding panel plugin
Modified: xfcalendar/branches/xfce_4_4/panel-plugin/oc_config.c
===================================================================
--- xfcalendar/branches/xfce_4_4/panel-plugin/oc_config.c 2007-02-04
15:26:35 UTC (rev 24844)
+++ xfcalendar/branches/xfce_4_4/panel-plugin/oc_config.c 2007-02-04
15:31:25 UTC (rev 24845)
@@ -1,7 +1,7 @@
/* vim: set expandtab ts=4 sw=4: */
/*
*
- * Copyright © 2006 Juha Kautto <[EMAIL PROTECTED]>
+ * Copyright © 2006-2007 Juha Kautto <[EMAIL PROTECTED]>
*
* it under the terms of the GNU Library General Public License as published
* by the Free Software Foundation; either version 2 of the License, or
Modified: xfcalendar/branches/xfce_4_4/panel-plugin/orageclock.c
===================================================================
--- xfcalendar/branches/xfce_4_4/panel-plugin/orageclock.c 2007-02-04
15:26:35 UTC (rev 24844)
+++ xfcalendar/branches/xfce_4_4/panel-plugin/orageclock.c 2007-02-04
15:31:25 UTC (rev 24845)
@@ -1,7 +1,7 @@
/* vim: set expandtab ts=4 sw=4: */
/*
*
- * Copyright © 2006 Juha Kautto <[EMAIL PROTECTED]>
+ * Copyright © 2006-2007 Juha Kautto <[EMAIL PROTECTED]>
*
* it under the terms of the GNU Library General Public License as published
* by the Free Software Foundation; either version 2 of the License, or
@@ -136,7 +136,7 @@
popup = "_XFCE_GLOBALTIME_TOGGLE_HERE";
}
else {
- g_warning("%s: unknown program to start %s", OC_NAME, program);
+ g_warning("unknown program to start %s", program);
return(FALSE);
}
@@ -229,12 +229,10 @@
gchar tmp[100];
gint i;
- if (!(file = xfce_panel_plugin_lookup_rc_file(plugin))) {
- g_warning("%s: unable to read rc file", OC_NAME);
- return;
- }
+ if (!(file = xfce_panel_plugin_lookup_rc_file(plugin)))
+ return; /* if it does not exist, we use defaults from orage_oc_new */
if (!(rc = xfce_rc_simple_open(file, TRUE))) {
- g_warning("%s: unable to read-open rc file (%s)", OC_NAME, file);
+ g_warning("unable to read-open rc file (%s)", file);
return;
}
g_free(file);
@@ -301,11 +299,11 @@
gint i;
if (!(file = xfce_panel_plugin_save_location(plugin, TRUE))) {
- g_warning("%s: unable to write rc file", OC_NAME);
+ g_warning("unable to write rc file");
return;
}
if (!(rc = xfce_rc_simple_open(file, FALSE))) {
- g_warning("%s: unable to read-open rc file (%s)", OC_NAME, file);
+ g_warning("unable to read-open rc file (%s)", file);
return;
}
g_free(file);
@@ -397,6 +395,8 @@
clock->show_frame = TRUE;
clock->fg_set = FALSE;
clock->bg_set = FALSE;
+ clock->width_set = FALSE;
+ clock->height_set = FALSE;
clock->timezone = g_string_new(""); /* = not set */
clock->TZ_orig = g_strdup(g_getenv("TZ"));
Modified: xfcalendar/branches/xfce_4_4/panel-plugin/orageclock.h
===================================================================
--- xfcalendar/branches/xfce_4_4/panel-plugin/orageclock.h 2007-02-04
15:26:35 UTC (rev 24844)
+++ xfcalendar/branches/xfce_4_4/panel-plugin/orageclock.h 2007-02-04
15:31:25 UTC (rev 24845)
@@ -1,5 +1,5 @@
/* xfce4
- * Copyright (C) 2006 Juha Kautto ([EMAIL PROTECTED])
+ * Copyright (C) 2006-2007 Juha Kautto ([EMAIL PROTECTED])
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits