{ "destroy", G_CALLBACK (_context_destroy_cb) },
};
- for (i = 0; G_N_ELEMENTS (signals); i++) {
+ for (i = 0; i < G_N_ELEMENTS (signals); i++) {
g_signal_connect (context,
signals[i].name,
signals[i].callback,
ibus_message_set_destination (message, DBUS_SERVICE_DBUS);
if (ibus_message_get_type (message) == DBUS_MESSAGE_TYPE_METHOD_CALL) {
- for (i = 0; G_N_ELEMENTS (handlers); i++) {
+ for (i = 0; i < G_N_ELEMENTS (handlers); i++) {
if (ibus_message_is_method_call (message,
handlers[i].interface,
handlers[i].name)) {
ibus_message_set_sender (message, bus_connection_get_unique_name (connection));
ibus_message_set_destination (message, DBUS_SERVICE_DBUS);
- for (i = 0; G_N_ELEMENTS (handlers); i++) {
+ for (i = 0; i < G_N_ELEMENTS (handlers); i++) {
if (ibus_message_is_method_call (message,
handlers[i].interface,
handlers[i].name)) {
/* install signal handlers */
gint i;
- for (i = 0; G_N_ELEMENTS (__signals); i++) {
+ for (i = 0; i < G_N_ELEMENTS (__signals); i++) {
g_signal_connect (context,
__signals[i].name,
__signals[i].callback,
/* uninstall signal handlers */
gint i;
- for (i = 0; G_N_ELEMENTS (__signals); i++) {
+ for (i = 0; i < G_N_ELEMENTS (__signals); i++) {
g_signal_handlers_disconnect_by_func (context,
__signals[i].callback,
panel);