summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2019-05-14 17:01:17 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-05-14 17:01:17 +0200
commit05d9b74e19671b2f8e0290a5b45afa75a2956a8f (patch)
tree356fa13784bb12f0b6861d0528cc01ed367965cb
parent6cb115480e51c64cf3034e05dded2e0ad784c648 (diff)
texteditor app: no need to use efl_part
efl_content_set() will access that part, there's no need to retrieve "efl.content". Plus, that part is not advertised in the button's EO file, so I am not sure it is legal to access it.
-rw-r--r--apps/c/texteditor/src/texteditor_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/c/texteditor/src/texteditor_main.c b/apps/c/texteditor/src/texteditor_main.c
index a300145..1ef1fe4 100644
--- a/apps/c/texteditor/src/texteditor_main.c
+++ b/apps/c/texteditor/src/texteditor_main.c
@@ -47,7 +47,7 @@ _gui_toolbar_button_add(Efl_Ui_Box *toolbar, const char *name,
47 47
48 efl_add(EFL_UI_IMAGE_CLASS, toolbar, 48 efl_add(EFL_UI_IMAGE_CLASS, toolbar,
49 efl_ui_image_icon_set(efl_added, icon_name), 49 efl_ui_image_icon_set(efl_added, icon_name),
50 efl_content_set(efl_part(button, "efl.content"), efl_added)); 50 efl_content_set(button, efl_added));
51 51
52 return button; 52 return button;
53} 53}