summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@yahoo.com>2018-11-24 19:29:42 +0200
committerDaniel Zaoui <daniel.zaoui@yahoo.com>2018-11-24 19:29:42 +0200
commit997bde6ae7cdfbb63abbc4200910ab96e4cae709 (patch)
tree9c010e538f1f110fb6f2bb9385b4d3d907384b47
parent31c51f0c2159fd4ebdbda4634069a3633bde60ab (diff)
C-Gen: don't generate callback info variable for singleton widget
-rw-r--r--src/bin/c_gen.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bin/c_gen.c b/src/bin/c_gen.c
index 7a2cda1..3a6717d 100644
--- a/src/bin/c_gen.c
+++ b/src/bin/c_gen.c
@@ -213,6 +213,9 @@ end:
213static void 213static void
214_add_to_struct(Eina_List **struct_wdgs, Ea_Widget *wdg) 214_add_to_struct(Eina_List **struct_wdgs, Ea_Widget *wdg)
215{ 215{
216 Eina_Bool is_singleton = !!JSON_GET("Class_Properties",
217 eolian_class_name_get(wdg->kl), "Singleton");
218 if (is_singleton) return;
216 if (eina_list_data_find(*struct_wdgs, wdg)) return; 219 if (eina_list_data_find(*struct_wdgs, wdg)) return;
217 if (eina_list_data_find(_globals, wdg)) return; 220 if (eina_list_data_find(_globals, wdg)) return;
218 *struct_wdgs = eina_list_append(*struct_wdgs, wdg); 221 *struct_wdgs = eina_list_append(*struct_wdgs, wdg);