]> cgit.babelmonkeys.de Git - jubjub.git/commitdiff
Fix return types for signal handlers
authorFlorian Zeitz <florob@babelmonkeys.de>
Tue, 1 Jan 2013 20:54:09 +0000 (21:54 +0100)
committerFlorian Zeitz <florob@babelmonkeys.de>
Tue, 1 Jan 2013 20:54:09 +0000 (21:54 +0100)
src/gui/gtk/JubGtkChatUI.m
src/gui/gtk/JubGtkRosterUI.m

index 79872f88c67d98ccb4d0af18dae48614e56fbd15..277cfe5d5407a93e9908fbd6e6729669e95ce84c 100644 (file)
@@ -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
index d63608e08be91b81d4b82a72e08ac16732cbaf4e..66a050ef4002b152a0fc7362542a4999da765e8a 100644 (file)
@@ -5,7 +5,7 @@
 
 #include <string.h>
 
-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)