Introduce convertible module #49
|
@ -5,9 +5,6 @@
|
|||
#include "e-gadget-convertible.h"
|
||||
#include "e_mod_main.h"
|
||||
|
||||
/* LIST OF INSTANCES */
|
||||
static Eina_List *instances = NULL;
|
||||
|
||||
static void
|
||||
_update_instances(const Instance *current_instance)
|
||||
{
|
||||
|
@ -45,8 +42,3 @@ _keyboard_signal_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, const
|
|||
{
|
||||
DBG("Keyboard: Signal %s received from %s", sig, src);
|
||||
}
|
||||
|
||||
void
|
||||
update_instances(Eina_List *new_instances) {
|
||||
instances = new_instances;
|
||||
}
|
||||
|
|
|
@ -8,6 +8,9 @@
|
|||
#ifndef E_GADGET_CONVERTIBLE_E_GADGET_CONVERTIBLE_H
|
||||
#define E_GADGET_CONVERTIBLE_E_GADGET_CONVERTIBLE_H
|
||||
|
||||
/* LIST OF INSTANCES */
|
||||
Eina_List *instances = NULL;
|
||||
|
||||
/* gadcon callback for actions */
|
||||
void
|
||||
_rotation_signal_cb(void *data EINA_UNUSED, Evas_Object *obj, const char *sig EINA_UNUSED, const char *src EINA_UNUSED);
|
||||
|
@ -15,8 +18,6 @@ _rotation_signal_cb(void *data EINA_UNUSED, Evas_Object *obj, const char *sig EI
|
|||
void
|
||||
_keyboard_signal_cb(void *data EINA_UNUSED, Evas_Object *obj, const char *sig EINA_UNUSED, const char *src EINA_UNUSED);
|
||||
|
||||
void
|
||||
update_instances(Eina_List *instances);
|
||||
/* end gadcon callback for actions */
|
||||
|
||||
|
||||
|
|
|
@ -18,7 +18,6 @@ typedef struct _Convertible_Config Convertible_Config;
|
|||
struct _Convertible_Config
|
||||
{
|
||||
int version;
|
||||
E_Module *module;
|
||||
int disable_keyboard_on_rotation;
|
||||
};
|
||||
|
||||
|
|
|
@ -74,7 +74,6 @@ _gc_init(E_Gadcon *gc, const char *name, const char *id, const char *style)
|
|||
instance->o_button = evas_object;
|
||||
|
||||
instances = eina_list_append(instances, instance);
|
||||
update_instances(instances);
|
||||
|
||||
gcc = e_gadcon_client_new(gc, name, id, style, evas_object);
|
||||
gcc->data = instance;
|
||||
|
|
Loading…
Reference in New Issue