aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/shot/e_mod_main.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2011-05-29 23:45:40 +0000
committerCarsten Haitzler <raster@rasterman.com>2011-05-29 23:45:40 +0000
commit95cea2f98276b187823244c4a61d19190e36f7ff (patch)
tree0db81635a7e105a2d7f17c61ada92d8a0b781bf2 /src/modules/shot/e_mod_main.c
parent4fb30d5186f1f5dec838ad8e1b1c627ba3919916 (diff)
downloadenlightenment-95cea2f98276b187823244c4a61d19190e36f7ff.tar.gz
enlightenment-95cea2f98276b187823244c4a61d19190e36f7ff.tar.xz
enlightenment-95cea2f98276b187823244c4a61d19190e36f7ff.zip
fix click-preview-select to properly update radio buttons when preview
is clicked. SVN revision: 59792
Diffstat (limited to 'src/modules/shot/e_mod_main.c')
-rw-r--r--src/modules/shot/e_mod_main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/modules/shot/e_mod_main.c b/src/modules/shot/e_mod_main.c
index 2a670c829..f4a85c793 100644
--- a/src/modules/shot/e_mod_main.c
+++ b/src/modules/shot/e_mod_main.c
@@ -15,6 +15,7 @@ static int quality = 90;
static int screen = -1;
#define MAXZONES 64
static Evas_Object *o_rectdim[MAXZONES] = { NULL };
+static Evas_Object *o_radio_all = NULL;
static Evas_Object *o_radio[MAXZONES] = { NULL };
static Evas_Object *o_fsel = NULL;
static Evas_Object *o_label = NULL;
@@ -498,14 +499,16 @@ _rect_down_cb(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *obj __UNUS
if (ev->button != 1) return;
+ e_widget_radio_toggle_set(o_radio_all, 0);
EINA_LIST_FOREACH(scon->zones, l, z)
{
if (obj == o_rectdim[z->num])
{
screen = z->num;
e_widget_radio_toggle_set(o_radio[z->num], 1);
- break;
}
+ else
+ e_widget_radio_toggle_set(o_radio[z->num], 0);
}
EINA_LIST_FOREACH(scon->zones, l, z)
@@ -633,6 +636,7 @@ _shot_now(E_Zone *zone)
rg = e_widget_radio_group_new(&screen);
o = e_widget_radio_add(evas, _("All"), -1, rg);
+ o_radio_all = o;
evas_object_smart_callback_add(o, "changed", _screen_change_cb, NULL);
e_widget_framelist_object_append(ol, o);
i = 0;