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:
Родитель
b5382549a2
Коммит
683e301b68
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче