summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlavio Ceolin <flavio.ceolin@gmail.com>2014-05-23 00:42:36 -0300
committerFlavio Ceolin <flavio.ceolin@gmail.com>2014-05-23 00:42:36 -0300
commitdbd9bd8ce714a168ab20d2e359372e03082fe4e0 (patch)
tree2839c3f4d4029a77dcbc866b5cf4ab1644433a6c /src
parentba8266999b502d1ef5dbc79e6f2b06ba978f76a9 (diff)
Adding applicaton icon
Diffstat (limited to 'src')
-rw-r--r--src/bin/main_window.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/bin/main_window.c b/src/bin/main_window.c
index cb55c1c..c596e7d 100644
--- a/src/bin/main_window.c
+++ b/src/bin/main_window.c
@@ -66,7 +66,8 @@ Evas_Object *
66main_window_add(void) 66main_window_add(void)
67{ 67{
68 Main_Window *mw; 68 Main_Window *mw;
69 Evas_Object *tmp, *box; 69 Evas_Object *tmp, *box, *icon;
70 char buf[4096];
70 71
71 elm_theme_extension_add(NULL, EPULSE_THEME); 72 elm_theme_extension_add(NULL, EPULSE_THEME);
72 mw = calloc(1, sizeof(Main_Window)); 73 mw = calloc(1, sizeof(Main_Window));
@@ -84,6 +85,13 @@ main_window_add(void)
84 elm_win_title_set(tmp, _("Efl Volume Control")); 85 elm_win_title_set(tmp, _("Efl Volume Control"));
85 mw->win = tmp; 86 mw->win = tmp;
86 87
88 icon = evas_object_image_add(evas_object_evas_get(mw->win));
89 snprintf(buf, sizeof(buf), "%s/icons/terminology.png",
90 elm_app_data_dir_get());
91 evas_object_image_file_set(icon, buf, NULL);
92 elm_win_icon_object_set(mw->win, icon);
93 elm_win_icon_name_set(mw->win, "epulse");
94
87 tmp = elm_bg_add(mw->win); 95 tmp = elm_bg_add(mw->win);
88 evas_object_size_hint_weight_set(tmp, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 96 evas_object_size_hint_weight_set(tmp, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
89 evas_object_size_hint_align_set(tmp, EVAS_HINT_FILL, EVAS_HINT_FILL); 97 evas_object_size_hint_align_set(tmp, EVAS_HINT_FILL, EVAS_HINT_FILL);