aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/calendar-model.c12
-rw-r--r--calendar/gui/goto-dialog.glade2
2 files changed, 9 insertions, 5 deletions
diff --git a/calendar/gui/calendar-model.c b/calendar/gui/calendar-model.c
index f61b76cd88..b7aca002ce 100644
--- a/calendar/gui/calendar-model.c
+++ b/calendar/gui/calendar-model.c
@@ -1445,7 +1445,8 @@ calendar_model_free_value (ETableModel *etm, int col, void *value)
switch (col) {
case CAL_COMPONENT_FIELD_CATEGORIES:
- g_free (value);
+ if (value)
+ g_free (value);
break;
case CAL_COMPONENT_FIELD_CLASSIFICATION:
@@ -1460,14 +1461,16 @@ calendar_model_free_value (ETableModel *etm, int col, void *value)
case CAL_COMPONENT_FIELD_PRIORITY:
case CAL_COMPONENT_FIELD_SUMMARY:
case CAL_COMPONENT_FIELD_STATUS:
- g_free (value);
+ if (value)
+ g_free (value);
break;
case CAL_COMPONENT_FIELD_TRANSPARENCY:
break;
case CAL_COMPONENT_FIELD_URL:
- g_free (value);
+ if (value)
+ g_free (value);
break;
case CAL_COMPONENT_FIELD_HAS_ALARMS:
@@ -1479,7 +1482,8 @@ calendar_model_free_value (ETableModel *etm, int col, void *value)
break;
case CAL_COMPONENT_FIELD_COMPONENT:
- gtk_object_unref (GTK_OBJECT (value));
+ if (value)
+ gtk_object_unref (GTK_OBJECT (value));
break;
default:
diff --git a/calendar/gui/goto-dialog.glade b/calendar/gui/goto-dialog.glade
index af5ceb4b1f..8fc438982e 100644
--- a/calendar/gui/goto-dialog.glade
+++ b/calendar/gui/goto-dialog.glade
@@ -60,7 +60,7 @@
<name>button4</name>
<can_default>True</can_default>
<can_focus>True</can_focus>
- <label>_Go To Today</label>
+ <label>_Go to Today</label>
<stock_pixmap>GNOME_STOCK_PIXMAP_JUMP_TO</stock_pixmap>
</widget>