summaryrefslogtreecommitdiff
path: root/applets/clock
diff options
context:
space:
mode:
Diffstat (limited to 'applets/clock')
-rw-r--r--applets/clock/calendar-window.c4
-rw-r--r--applets/clock/clock.c25
2 files changed, 29 insertions, 0 deletions
diff --git a/applets/clock/calendar-window.c b/applets/clock/calendar-window.c
index bd117a3f..79780d34 100644
--- a/applets/clock/calendar-window.c
+++ b/applets/clock/calendar-window.c
@@ -1423,6 +1423,8 @@ handle_appointments_changed (CalendarWindow *calwin)
update_frame_visibility (calwin->priv->appointment_list,
GTK_TREE_MODEL (calwin->priv->appointments_filter));
+ g_slist_free_full (events, (GDestroyNotify) calendar_event_free);
+
/* Auto-scroll to next upcoming event */
if (calwin->priv->appointment_tree_view) {
GtkTreeView *tree_view = GTK_TREE_VIEW(calwin->priv->appointment_tree_view);
@@ -1544,6 +1546,8 @@ handle_tasks_changed (CalendarWindow *calwin)
g_free (percent_complete_text);
}
+ g_slist_free_full (events, (GDestroyNotify) calendar_event_free);
+
/* Refresh filter before checking visibility */
if (calwin->priv->tasks_filter)
gtk_tree_model_filter_refilter (calwin->priv->tasks_filter);
diff --git a/applets/clock/clock.c b/applets/clock/clock.c
index bc01b290..0c104f31 100644
--- a/applets/clock/clock.c
+++ b/applets/clock/clock.c
@@ -822,6 +822,21 @@ destroy_clock (GtkWidget * widget, ClockData *cd)
cd->systz = NULL;
}
+ if (cd->clock_group) {
+ g_object_unref (cd->clock_group);
+ cd->clock_group = NULL;
+ }
+
+ if (cd->prefs_window) {
+ gtk_widget_destroy (cd->prefs_window);
+ cd->prefs_window = NULL;
+ }
+
+ if (cd->set_time_window) {
+ gtk_widget_destroy (cd->set_time_window);
+ cd->set_time_window = NULL;
+ }
+
if (cd->cities_store) {
g_object_unref (cd->cities_store);
cd->cities_store = NULL;
@@ -1531,6 +1546,16 @@ create_main_clock_label (ClockData *cd)
GtkWidget *label;
label = gtk_label_new (NULL);
+
+ // Fix proportional font by font feature tabular numbers (tnum) (if supported by the font)
+ PangoAttribute *attr;
+ PangoAttrList *alist;
+ attr = pango_attr_font_features_new ("tnum=1");
+ alist = pango_attr_list_new ();
+ pango_attr_list_insert (alist, attr);
+ gtk_label_set_attributes (GTK_LABEL (label), alist);
+ pango_attr_list_unref (alist);
+
/*Fixme-this is invalid for labels with any recent GTK3 version, maybe all of them*/
/*
g_signal_connect (label, "size-request",