forked from enlightenment/terminology
retain compat with previous tw protocol when building with 1.8 elm
This commit is contained in:
parent
7a2d665610
commit
4bfa81d2d6
|
@ -37,8 +37,11 @@ ty_dbus_link_mouseout(uint64_t win, const char *url, int x, int y)
|
||||||
"/org/enlightenment/wm/RemoteObject",
|
"/org/enlightenment/wm/RemoteObject",
|
||||||
"org.enlightenment.wm.Teamwork",
|
"org.enlightenment.wm.Teamwork",
|
||||||
"LinkMouseOut");
|
"LinkMouseOut");
|
||||||
|
#if (ELM_VERSION_MAJOR > 1) || (ELM_VERSION_MINOR > 8) // not a typo
|
||||||
eldbus_message_arguments_append(msg, "sutii", url, time(NULL), win, x, y);
|
eldbus_message_arguments_append(msg, "sutii", url, time(NULL), win, x, y);
|
||||||
|
#else
|
||||||
|
eldbus_message_arguments_append(msg, "suxii", url, time(NULL), (int64_t)win, x, y);
|
||||||
|
#endif
|
||||||
eldbus_object_send(ty_e_object, msg, NULL, NULL, -1);
|
eldbus_object_send(ty_e_object, msg, NULL, NULL, -1);
|
||||||
eina_stringshare_replace(&_current_url, NULL);
|
eina_stringshare_replace(&_current_url, NULL);
|
||||||
}
|
}
|
||||||
|
@ -64,8 +67,11 @@ ty_dbus_link_mousein(uint64_t win, const char *url, int x, int y)
|
||||||
"org.enlightenment.wm.Teamwork",
|
"org.enlightenment.wm.Teamwork",
|
||||||
"LinkMouseIn");
|
"LinkMouseIn");
|
||||||
|
|
||||||
eldbus_message_arguments_append(msg, "sutii",
|
#if (ELM_VERSION_MAJOR > 1) || (ELM_VERSION_MINOR > 8) // not a typo
|
||||||
_current_url, time(NULL), win, x, y);
|
eldbus_message_arguments_append(msg, "sutii", _current_url, time(NULL), win, x, y);
|
||||||
|
#else
|
||||||
|
eldbus_message_arguments_append(msg, "suxii", _current_url, time(NULL), (int64_t)win, x, y);
|
||||||
|
#endif
|
||||||
eldbus_object_send(ty_e_object, msg, NULL, NULL, -1);
|
eldbus_object_send(ty_e_object, msg, NULL, NULL, -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue