From 627a3a01c632175a297186d005dd0ddf29313595 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Tue, 31 Aug 2010 01:13:45 +0000 Subject: [PATCH] Little bit of cleanup so that we don't set window minimum size twice. SVN revision: 51768 --- src/modules/illume-indicator/e_mod_notify.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/modules/illume-indicator/e_mod_notify.c b/src/modules/illume-indicator/e_mod_notify.c index cdeadf4b3..3a9fa6cac 100644 --- a/src/modules/illume-indicator/e_mod_notify.c +++ b/src/modules/illume-indicator/e_mod_notify.c @@ -72,9 +72,13 @@ _e_mod_notify_cb_add(E_Notification_Daemon *daemon __UNUSED__, E_Notification *n e_notification_ref(n); if (nwin->notify) e_notification_unref(nwin->notify); nwin->notify = n; + _e_mod_notify_refresh(nwin); } else if (!replace) - nwin = _e_mod_notify_merge(n); + { + if ((nwin = _e_mod_notify_merge(n))) + _e_mod_notify_refresh(nwin); + } if (!nwin) { @@ -83,9 +87,6 @@ _e_mod_notify_cb_add(E_Notification_Daemon *daemon __UNUSED__, E_Notification *n _nwins = eina_list_append(_nwins, nwin); } - if (nwin) - _e_mod_notify_refresh(nwin); - /* show it */ ecore_x_e_illume_quickpanel_state_send(nwin->zone->black_win, ECORE_X_ILLUME_QUICKPANEL_STATE_ON); @@ -276,7 +277,8 @@ _e_mod_notify_new(E_Notification *n) evas_object_move(nwin->o_base, 0, 0); evas_object_show(nwin->o_base); - e_win_size_min_set(nwin->win, zone->w, 48); + _e_mod_notify_refresh(nwin); + e_win_show(nwin->win); e_border_zone_set(nwin->win->border, zone); nwin->win->border->user_skip_winlist = 1;