summaryrefslogtreecommitdiff
path: root/applets/notification_area
diff options
context:
space:
mode:
Diffstat (limited to 'applets/notification_area')
-rw-r--r--applets/notification_area/main.c1
-rw-r--r--applets/notification_area/na-grid.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/applets/notification_area/main.c b/applets/notification_area/main.c
index 8f8db2ff..271d22f8 100644
--- a/applets/notification_area/main.c
+++ b/applets/notification_area/main.c
@@ -333,6 +333,7 @@ na_tray_applet_realize (GtkWidget *widget)
static void
na_tray_applet_dispose (GObject *object)
{
+ g_clear_object (&NA_TRAY_APPLET (object)->priv->settings);
#ifdef PROVIDE_WATCHER_SERVICE
g_clear_object (&NA_TRAY_APPLET (object)->priv->sn_watcher);
#endif
diff --git a/applets/notification_area/na-grid.c b/applets/notification_area/na-grid.c
index bd87f139..8465fcab 100644
--- a/applets/notification_area/na-grid.c
+++ b/applets/notification_area/na-grid.c
@@ -183,9 +183,9 @@ void
na_grid_set_min_icon_size (NaGrid *grid,
gint min_icon_size)
{
- grid->min_icon_size = min_icon_size;
-
g_return_if_fail (NA_IS_GRID (grid));
+
+ grid->min_icon_size = min_icon_size;
refresh_grid (grid);
}