From: Florian Zeitz Date: Mon, 18 Feb 2013 21:00:54 +0000 (+0100) Subject: JubGtkChat: Refer to the correct version of the close and send blocks X-Git-Url: https://git.babelmonkeys.de/?a=commitdiff_plain;h=b6080bda8e1fc3899923666b8cd0ceadf09918c8;p=jubjub.git JubGtkChat: Refer to the correct version of the close and send blocks --- diff --git a/src/gui/gtk/JubGtkChatUI.m b/src/gui/gtk/JubGtkChatUI.m index bf130a9..c4e5505 100644 --- a/src/gui/gtk/JubGtkChatUI.m +++ b/src/gui/gtk/JubGtkChatUI.m @@ -55,7 +55,7 @@ static void call_close_block(GtkWidget *object, gpointer data) chat_window = GTK_WIDGET( gtk_builder_get_object(builder, "ChatWindow")); g_signal_connect(chat_window, "destroy", - G_CALLBACK(call_close_block), closeBlock); + G_CALLBACK(call_close_block), _closeBlock); _chat_view = GTK_TEXT_VIEW( gtk_builder_get_object(builder, "ChatTextView")); @@ -67,7 +67,7 @@ static void call_close_block(GtkWidget *object, gpointer data) gtk_builder_get_object(builder, "ChatEntry")); struct call_send_block_params *send_params = [self allocMemoryWithSize: sizeof(*send_params)]; - send_params->block = sendBlock; + send_params->block = _sendBlock; send_params->chat = self; g_signal_connect(chat_entry, "activate", G_CALLBACK(call_send_block), send_params);