Emit the connected signal after setting up the connection.

Otherwise, we might miss the first a few DBus and IBus signals.

BUG=http://crosbug.com/11144
TEST=see the bug.

Review URL: http://codereview.appspot.com/4029043
This commit is contained in:
Yusuke Sato 2011-01-21 21:03:23 +09:00
Родитель b5382549a2
Коммит 683e301b68
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -218,14 +218,14 @@ ibus_bus_connect (IBusBus *bus)
"closed",
(GCallback) _connection_closed_cb,
bus);
g_signal_emit (bus, bus_signals[CONNECTED], 0);
if (bus->priv->watch_dbus_signal) {
ibus_bus_watch_dbus_signal (bus);
}
if (bus->priv->watch_ibus_signal) {
ibus_bus_watch_ibus_signal (bus);
}
g_signal_emit (bus, bus_signals[CONNECTED], 0);
}
}