Fixed desktop message registration

This commit is contained in:
Pierre Pronchery 2013-04-11 02:15:14 +02:00
parent 28d4cd033d
commit 278f30c46d

View File

@ -515,6 +515,7 @@ static gboolean _new_idle(gpointer data)
phone_show_write(phone, FALSE); phone_show_write(phone, FALSE);
_idle_settings(phone); _idle_settings(phone);
/* listen to desktop messages */ /* listen to desktop messages */
gtk_widget_realize(phone->ca_window);
desktop_message_register(phone->ca_window, PHONE_CLIENT_MESSAGE, desktop_message_register(phone->ca_window, PHONE_CLIENT_MESSAGE,
_phone_on_message, phone); _phone_on_message, phone);
/* default to the "systray" plug-in if nothing is configured */ /* default to the "systray" plug-in if nothing is configured */