Fix minor fixes/tweaks.
This commit is contained in:
@ -2,13 +2,11 @@
|
||||
#include "ecdb.h"
|
||||
|
||||
static void
|
||||
_widget_focus_handle(void *data, Evas_Object *o)
|
||||
_widget_focus_handle(const char *name, Evas_Object *o)
|
||||
{
|
||||
static char *old_source;
|
||||
const char *name;
|
||||
Evas_Object *eo;
|
||||
|
||||
name = data;
|
||||
// Some widgets aren't named (such as when in combo), so check
|
||||
if (!name)
|
||||
return;
|
||||
@ -33,14 +31,20 @@ static void
|
||||
_mouse_down_edje(void *data, Evas_Object *o, const char *emission,
|
||||
const char *source)
|
||||
{
|
||||
_widget_focus_handle(data, o);
|
||||
const char *name;
|
||||
|
||||
name = evas_object_name_get(o);
|
||||
_widget_focus_handle(name, o);
|
||||
}
|
||||
|
||||
static void
|
||||
_mouse_down_evas(void *data, Evas *e __UNUSED__, Evas_Object *eo,
|
||||
void *ev_data __UNUSED__)
|
||||
{
|
||||
_widget_focus_handle(data, eo);
|
||||
const char *name;
|
||||
|
||||
name = evas_object_name_get(eo);
|
||||
_widget_focus_handle(name, eo);
|
||||
}
|
||||
|
||||
void
|
||||
@ -64,8 +68,7 @@ ecdb_widget_add(Evas_Object *parent, const char *name)
|
||||
}
|
||||
|
||||
edje_object_signal_callback_add(o, "mouse,down,*", "*",
|
||||
_mouse_down_edje,
|
||||
(void *)name);
|
||||
_mouse_down_edje, NULL);
|
||||
|
||||
if (name)
|
||||
{
|
||||
|
Reference in New Issue
Block a user