From: Daniel Carl Date: Wed, 14 Aug 2013 11:18:31 +0000 (+0200) Subject: Adapt the function return type of callback. X-Git-Url: https://git.owens.tech/assets/favicon.png/assets/favicon.png/git?a=commitdiff_plain;h=79408ee0acf3b1a42af33cb928fbe6a8865615cf;p=vimb.git Adapt the function return type of callback. --- diff --git a/src/hints.c b/src/hints.c index 1c9f479..ab22e2f 100644 --- a/src/hints.c +++ b/src/hints.c @@ -41,7 +41,7 @@ extern VbCore vb; static void run_script(char *js); static void fire(); static void observe_input(gboolean observe); -static gboolean changed_cb(GtkTextBuffer *buffer); +static void changed_cb(GtkTextBuffer *buffer); static gboolean keypress_cb(GtkWidget *widget, GdkEventKey *event); void hints_init(WebKitWebFrame *frame) @@ -219,7 +219,7 @@ static void observe_input(gboolean observe) } } -static gboolean changed_cb(GtkTextBuffer *buffer) +static void changed_cb(GtkTextBuffer *buffer) { char *text; GtkTextIter start, end; @@ -231,8 +231,6 @@ static gboolean changed_cb(GtkTextBuffer *buffer) hints_create(text + hints.prefixLength, hints.mode, hints.prefixLength); g_free(text); - - return true; } static gboolean keypress_cb(GtkWidget *widget, GdkEventKey *event)