summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/e_mod_main.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/e_mod_main.c b/src/e_mod_main.c
index 5dee39d..16ba10a 100644
--- a/src/e_mod_main.c
+++ b/src/e_mod_main.c
@@ -164,11 +164,14 @@ _espresso_cb_mouse_down(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSE
164 int x = 0, y = 0; 164 int x = 0, y = 0;
165 m = e_menu_new(); 165 m = e_menu_new();
166 166
167#define ADD_MENU_ITEM(label, timeout) \ 167#define ADD_MENU_ITEM(label, _timeout) \
168 td = E_NEW(Timer_Data, 1); \ 168 td = E_NEW(Timer_Data, 1); \
169 td->minutes = timeout; \ 169 td->minutes = _timeout; \
170 td->inst = inst; \ 170 td->inst = inst; \
171 mi = e_menu_item_new(m); \ 171 mi = e_menu_item_new(m); \
172 e_menu_item_radio_set(mi, 1); \
173 e_menu_item_radio_group_set(mi, 1); \
174 e_menu_item_toggle_set(mi, (_timeout == espresso_config->timeout)); \
172 e_menu_item_label_set(mi, label); \ 175 e_menu_item_label_set(mi, label); \
173 e_menu_item_callback_set(mi, _espresso_menu_cb_timeout_set, (void*)td) 176 e_menu_item_callback_set(mi, _espresso_menu_cb_timeout_set, (void*)td)
174 ADD_MENU_ITEM( D_("20 Minutes"), 20); 177 ADD_MENU_ITEM( D_("20 Minutes"), 20);