From e336438a938a4b2a9fb52303d46df051f8e15d2d Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Thu, 7 Jun 2012 07:52:15 +0000 Subject: [PATCH] E Notification Module: Don't use _gc_id_del. It removes any stored configuration for items. This caused Notification module to not save it's config options on an E restart. This fixes Ticket #931 SVN revision: 71779 --- src/modules/notification/e_mod_main.c | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/src/modules/notification/e_mod_main.c b/src/modules/notification/e_mod_main.c index f2231c4d0..62f6ba69a 100644 --- a/src/modules/notification/e_mod_main.c +++ b/src/modules/notification/e_mod_main.c @@ -10,8 +10,6 @@ static const char *_gc_label(E_Gadcon_Client_Class *client_class); static Evas_Object *_gc_icon(E_Gadcon_Client_Class *client_class, Evas *evas); static const char *_gc_id_new(E_Gadcon_Client_Class *client_class); -static void _gc_id_del(E_Gadcon_Client_Class *client_class, - const char *id); /* Callback function protos */ static int _notification_cb_notify(E_Notification_Daemon *daemon, @@ -35,7 +33,7 @@ const E_Gadcon_Client_Class _gc_class = { GADCON_CLIENT_CLASS_VERSION, "notification", { - _gc_init, _gc_shutdown, _gc_orient, _gc_label, _gc_icon, _gc_id_new, _gc_id_del, + _gc_init, _gc_shutdown, _gc_orient, _gc_label, _gc_icon, _gc_id_new, NULL, e_gadcon_site_is_not_toolbar }, E_GADCON_CLIENT_STYLE_PLAIN @@ -153,20 +151,6 @@ _gc_id_new(E_Gadcon_Client_Class *client_class __UNUSED__) return ci->id; } -static void -_gc_id_del(E_Gadcon_Client_Class *client_class __UNUSED__, - const char *id) -{ - Config_Item *ci; - - notification_box_del(id); - ci = notification_box_config_item_get(id); - if (!ci) return; - eina_stringshare_del(ci->id); - notification_cfg->items = eina_list_remove(notification_cfg->items, ci); - free(ci); -} - static unsigned int _notification_notify(E_Notification *n) {