Use internal messages to display the different windows available

This commit is contained in:
Pierre Pronchery 2011-08-21 21:13:09 +00:00
parent 707cfbc1b1
commit ada2a20136

View File

@ -350,17 +350,6 @@ static void _debug_settings(PhonePlugin * plugin)
/* debug_send_message */ /* debug_send_message */
static void _debug_send_message(PhonePlugin * plugin, PhoneMessageShow show) static void _debug_send_message(PhonePlugin * plugin, PhoneMessageShow show)
{ {
GdkEvent event; plugin->helper->message(plugin->helper->phone, PHONE_MESSAGE_SHOW,
GdkEventClient * client = &event.client; show);
memset(&event, 0, sizeof(event));
client->type = GDK_CLIENT_EVENT;
client->window = NULL;
client->send_event = TRUE;
client->message_type = gdk_atom_intern(PHONE_CLIENT_MESSAGE, FALSE);
client->data_format = 8;
client->data.b[0] = PHONE_MESSAGE_SHOW;
client->data.b[1] = show;
client->data.b[2] = TRUE;
gdk_event_send_clientmessage_toall(&event);
} }