}
}
-#if defined(WINSYS_X11)
static void _minictrl_lock(const char *name)
{
struct _viewer_item *found;
}
}
}
-#endif
static void _mctrl_viewer_event_cb(minicontrol_event_e event, const char *name, bundle *event_arg, void *data)
{
return;
}
-#if defined(WINSYS_X11)
-
if ((int)event == MINICONTROL_EVENT_REQUEST_LOCK) {
/**
* This event type is extra one. not in the enumeration list.
*/
_minictrl_lock(name);
} else {
-#endif
switch (event) {
case MINICONTROL_EVENT_START:
ret = bundle_get_byte(event_arg, MINICONTROL_BUNDLE_KEY_WIDTH, (void **)&width, &bundle_size);
default:
break;
}
-#if defined(WINSYS_X11)
}
-#endif
}
static int _init(void *data)
}
}
-#if defined(WINSYS_X11)
static void _minictrl_send_view_event_cb(gpointer key, gpointer value, gpointer user_data)
{
if (!key) {
bundle_free(event_arg_bundle);
}
}
-#endif
static void _minictrl_opened(void *data)
{
DBG("");
-#if defined(WINSYS_X11)
+
g_hash_table_foreach(s_info.prov_table, _minictrl_send_view_event_cb, (gpointer)MINICONTROL_VIEWER_EVENT_SHOW);
-#endif
}
static void _minictrl_closed(void *data)
{
DBG("");
-#if defined(WINSYS_X11)
g_hash_table_foreach(s_info.prov_table, _minictrl_send_view_event_cb, (gpointer)MINICONTROL_VIEWER_EVENT_HIDE);
-#endif
}
QP_Module minictrl = {