From 2bf25c7ceca5ebeaaedead71af159d43cc025a23 Mon Sep 17 00:00:00 2001 From: Florian Zeitz Date: Tue, 1 Jan 2013 21:54:09 +0100 Subject: [PATCH] Fix return types for signal handlers --- src/gui/gtk/JubGtkChatUI.m | 4 +--- src/gui/gtk/JubGtkRosterUI.m | 6 ++---- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/gui/gtk/JubGtkChatUI.m b/src/gui/gtk/JubGtkChatUI.m index 79872f8..277cfe5 100644 --- a/src/gui/gtk/JubGtkChatUI.m +++ b/src/gui/gtk/JubGtkChatUI.m @@ -24,12 +24,10 @@ static gboolean call_send_block(GtkEntry *entry, GdkEventKey *event, return TRUE; } -static gboolean call_close_block(GtkWidget *object, gpointer data) +static void call_close_block(GtkWidget *object, gpointer data) { jub_close_block_t block = data; block(); - - return FALSE; } @implementation JubGtkChatUI diff --git a/src/gui/gtk/JubGtkRosterUI.m b/src/gui/gtk/JubGtkRosterUI.m index d63608e..66a050e 100644 --- a/src/gui/gtk/JubGtkRosterUI.m +++ b/src/gui/gtk/JubGtkRosterUI.m @@ -5,7 +5,7 @@ #include -static gboolean roster_row_activated(GtkTreeView *tree_view, GtkTreePath *path, +static void roster_row_activated(GtkTreeView *tree_view, GtkTreePath *path, GtkTreeViewColumn *column, gpointer data) { JubGtkRosterUI *roster = data; @@ -20,7 +20,7 @@ static gboolean roster_row_activated(GtkTreeView *tree_view, GtkTreePath *path, gtk_tree_model_get(tree_model, &row_iter, 1, &jid_s, -1); // This was a group row - if (!jid_s) return TRUE; + if (!jid_s) return; pool = [OFAutoreleasePool new]; jid = [XMPPJID JIDWithString: [OFString stringWithUTF8String: jid_s]]; @@ -29,8 +29,6 @@ static gboolean roster_row_activated(GtkTreeView *tree_view, GtkTreePath *path, withObject: jid waitUntilDone: NO]; [pool release]; - - return TRUE; } static void presence_changed(GtkComboBox *combo_box, gpointer data) -- 2.39.5