From bffe5a426cc2056d86aedfc61438020f5008fc60 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Sun, 20 Feb 2022 11:52:16 +0000 Subject: [PATCH] notification - get rid of useless appendix code... themes have supported notification for as logn as e17 was released so remove useless "appendix" of code that handles if it isnt. --- src/modules/notification/e_mod_popup.c | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/src/modules/notification/e_mod_popup.c b/src/modules/notification/e_mod_popup.c index 1a1a5cf5f..cc7e821bc 100644 --- a/src/modules/notification/e_mod_popup.c +++ b/src/modules/notification/e_mod_popup.c @@ -271,7 +271,6 @@ static Popup_Data * _notification_popup_new(E_Notification_Notify *n, unsigned id) { Popup_Data *popup; - char buf[PATH_MAX]; Eina_List *l; int pos = next_pos; E_Zone *zone = NULL; @@ -305,10 +304,7 @@ _notification_popup_new(E_Notification_Notify *n, unsigned id) popup->e = e_comp->evas; /* Setup the theme */ - snprintf(buf, sizeof(buf), "%s/e-module-notification.edj", - notification_mod->dir); popup->theme = edje_object_add(popup->e); - e_theme_edje_object_set(popup->theme, "base/theme/modules/notification", "e/modules/notification/main"); @@ -489,19 +485,10 @@ _notification_popup_refresh(Popup_Data *popup) if (!popup->app_icon) { - char buf[PATH_MAX]; - - snprintf(buf, sizeof(buf), "%s/e-module-notification.edj", - notification_mod->dir); popup->app_icon = edje_object_add(popup->e); - if (!e_theme_edje_object_set(popup->app_icon, - "base/theme/modules/notification", - "e/modules/notification/logo")) - if (!e_theme_edje_object_set(popup->app_icon, - "base/theme/modules/notification", - "modules/notification/logo")) - edje_object_file_set(popup->app_icon, buf, - "modules/notification/logo"); + e_theme_edje_object_set(popup->app_icon, + "base/theme/modules/notification", + "e/modules/notification/logo"); w = width; h = height; }