ONE_FINGER_HOVER = 0,
ONE_FINGER_SINGLE_TAP = 15,
ONE_FINGER_DOUBLE_TAP = 16
-}Gesture;
+} Gesture;
typedef struct
{
} Gesture_Info;
#endif
-sclboolean mouse_pressed = FALSE; /* Checks whether mouse is pressed or not */
-sclwindow pressed_window = SCLWINDOW_INVALID;
+static sclboolean mouse_pressed = FALSE; /* Checks whether mouse is pressed or not */
+static sclwindow pressed_window = SCLWINDOW_INVALID;
#define MIN_XY_DIFF 14
-Eina_Bool mouse_press(void *data, int type, void *event_info);
-Eina_Bool mouse_move(void *data, int type, void *event_info);
-Eina_Bool mouse_release(void *data, int type, void *event_info);
+static Eina_Bool mouse_press(void *data, int type, void *event_info);
+static Eina_Bool mouse_move(void *data, int type, void *event_info);
+static Eina_Bool mouse_release(void *data, int type, void *event_info);
-Eina_Bool client_message_cb(void *data, int type, void *event);
+#ifndef WAYLAND
+static Eina_Bool client_message_cb(void *data, int type, void *event);
+#endif
#ifdef HANDLE_KEY_EVENTS
-Eina_Bool key_pressed(void *data, int type, void *event_info);
+static Eina_Bool key_pressed(void *data, int type, void *event_info);
#endif
static sclboolean get_window_rect(const sclwindow window, SclRectangle *rect)
m_mouse_move_handler = NULL;
m_mouse_up_handler = NULL;
+#ifndef WAYLAND
m_xclient_msg_handler = NULL;
+#endif
m_key_pressed_handler = NULL;
}
free(info);
}
-void gestures_tracker_register()
+static void gestures_tracker_register()
{
Eldbus_Object *obj;
Eldbus_Proxy *proxy;
return;
}
-void gestures_tracker_unregister()
+static void gestures_tracker_unregister()
{
if (eldbus_conn) {
eldbus_connection_unref(eldbus_conn);
m_mouse_move_handler = NULL;
if (m_mouse_up_handler) ecore_event_handler_del(m_mouse_up_handler);
m_mouse_up_handler = NULL;
- if (m_xclient_msg_handler) ecore_event_handler_del(m_xclient_msg_handler);
- m_xclient_msg_handler = NULL;
#ifdef HANDLE_KEY_EVENTS
if (m_key_pressed_handler) ecore_event_handler_del(m_key_pressed_handler);
#endif
}
//void mouse_press (void *data, Evas *e, Evas_Object *object, void *event_info)
-Eina_Bool mouse_press(void *data, int type, void *event_info)
+static Eina_Bool mouse_press(void *data, int type, void *event_info)
{
SCL_DEBUG();
#ifdef WAYLAND
}
//void mouse_release (void *data, Evas *e, Evas_Object *object, void *event_info)
-Eina_Bool mouse_release(void *data, int type, void *event_info)
+static Eina_Bool mouse_release(void *data, int type, void *event_info)
{
SCL_DEBUG();
}
#ifdef HANDLE_KEY_EVENTS
-Eina_Bool key_pressed(void *data, int type, void *event_info)
+static Eina_Bool key_pressed(void *data, int type, void *event_info)
{
LOGD("=-=-=-=- key_pressed \n");
CSCLController *controller = CSCLController::get_instance();
#endif /*HANDLE_KEY_EVENTS*/
//int mouse_move (void *data, Evas *e, Evas_Object *object, void *event_info)
-Eina_Bool mouse_move(void *data, int type, void *event_info)
+static Eina_Bool mouse_move(void *data, int type, void *event_info)
{
SCL_DEBUG();
evas_object_event_callback_add((Evas_Object*)wnd, EVAS_CALLBACK_MOUSE_MOVE, mouse_move, NULL);*/
}
-Eina_Bool
+#ifndef WAYLAND
+static Eina_Bool
client_message_cb(void *data, int type, void *event)
{
-#ifndef WAYLAND
Ecore_X_Event_Client_Message *ev = (Ecore_X_Event_Client_Message *)event;
if (ev->message_type == ECORE_X_ATOM_E_ILLUME_ACCESS_CONTROL) {
CSCLWindows *windows = CSCLWindows::get_instance();
}
}
}
-#endif
return ECORE_CALLBACK_PASS_ON;
}
+#endif
Eina_Bool timer_event(void *data)
{