aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/shot
diff options
context:
space:
mode:
authorChidambar Zinnoury <illogict@online.fr>2012-06-26 06:43:22 +0000
committerChidambar Zinnoury <illogict@online.fr>2012-06-26 06:43:22 +0000
commit1e3423ccd7f0b4467d983d519fc6a5173cd01d97 (patch)
tree8c722384bad21937a64723fb6cbc90269dd3f612 /src/modules/shot
parent4b020358688d3ab1c294a155b44bdd511cd18dd6 (diff)
downloadenlightenment-1e3423ccd7f0b4467d983d519fc6a5173cd01d97.tar.gz
enlightenment-1e3423ccd7f0b4467d983d519fc6a5173cd01d97.tar.xz
enlightenment-1e3423ccd7f0b4467d983d519fc6a5173cd01d97.zip
e shot: have hide and cancel button work properly (they were inverted before).
Also change to more user-friendly button labels. TODO: Have a popup present the url after completion when hidden. SVN revision: 72842
Diffstat (limited to 'src/modules/shot')
-rw-r--r--src/modules/shot/e_mod_main.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/modules/shot/e_mod_main.c b/src/modules/shot/e_mod_main.c
index 3316be54c..e8be3941b 100644
--- a/src/modules/shot/e_mod_main.c
+++ b/src/modules/shot/e_mod_main.c
@@ -239,7 +239,7 @@ _win_save_cb(void *data __UNUSED__, void *data2 __UNUSED__)
evas_object_show(o);
e_widget_size_min_get(o, &mw, &mh);
e_dialog_content_set(dia, o, mw, mh);
- e_dialog_button_add(dia, _("OK"), NULL,
+ e_dialog_button_add(dia, _("Save"), NULL,
_file_select_ok_cb, NULL);
e_dialog_button_add(dia, _("Cancel"), NULL,
_file_select_cancel_cb, NULL);
@@ -279,18 +279,19 @@ _upload_ok_cb(void *data __UNUSED__, E_Dialog *dia)
e_object_del(E_OBJECT(win));
win = NULL;
}
- _share_done();
}
static void
_upload_cancel_cb(void *data __UNUSED__, E_Dialog *dia)
{
+ o_label = NULL;
if (dia) e_util_defer_object_del(E_OBJECT(dia));
if (win)
{
e_object_del(E_OBJECT(win));
win = NULL;
}
+ _share_done();
}
static Eina_Bool
@@ -479,7 +480,7 @@ _win_share_cb(void *data __UNUSED__, void *data2 __UNUSED__)
e_widget_size_min_get(ol, &mw, &mh);
e_dialog_content_set(dia, ol, mw, mh);
- e_dialog_button_add(dia, _("OK"), NULL, _upload_ok_cb, NULL);
+ e_dialog_button_add(dia, _("Hide"), NULL, _upload_ok_cb, NULL);
e_dialog_button_add(dia, _("Cancel"), NULL, _upload_cancel_cb, NULL);
e_dialog_resizable_set(dia, 1);
e_win_centered_set(dia->win, 1);