JubGtkChatUI *chat;
};
-static gboolean call_send_block(GtkEntry *entry, GdkEventKey *event,
- gpointer data)
+static void call_send_block(GtkEntry *entry, gpointer data)
{
struct call_send_block_params *params = data;
- if (event->keyval != GDK_KEY_Return &&
- event->keyval != GDK_KEY_KP_Enter) return TRUE;
OFString *text =
[[OFString alloc] initWithUTF8String: gtk_entry_get_text(entry)];
}
[text release];
-
- return TRUE;
}
static void call_close_block(GtkWidget *object, gpointer data)
[self allocMemoryWithSize: sizeof(*send_params)];
send_params->block = sendBlock;
send_params->chat = self;
- g_signal_connect(chat_entry, "key_release_event",
+ g_signal_connect(chat_entry, "activate",
G_CALLBACK(call_send_block), send_params);
gtk_window_set_title(GTK_WINDOW(chat_window),