Commit 718a348f authored by Sebastian Ramacher's avatar Sebastian Ramacher

Fix return types of callbacks

parent 418d8a65
......@@ -72,7 +72,7 @@ clean_mask(guint hardware_keycode, GdkModifierType state, gint group, guint* cle
}
/* callback implementation */
bool
gboolean
girara_callback_view_key_press_event(GtkWidget* UNUSED(widget),
GdkEventKey* event, girara_session_t* session)
{
......@@ -201,7 +201,7 @@ girara_callback_view_key_press_event(GtkWidget* UNUSED(widget),
return FALSE;
}
bool
gboolean
girara_callback_view_button_press_event(GtkWidget* UNUSED(widget),
GdkEventButton* button, girara_session_t* session)
{
......@@ -248,7 +248,7 @@ girara_callback_view_button_press_event(GtkWidget* UNUSED(widget),
return false;
}
bool
gboolean
girara_callback_view_button_release_event(GtkWidget* UNUSED(widget), GdkEventButton* button, girara_session_t* session)
{
g_return_val_if_fail(session != NULL, false);
......@@ -279,7 +279,7 @@ girara_callback_view_button_release_event(GtkWidget* UNUSED(widget), GdkEventBut
return false;
}
bool
gboolean
girara_callback_view_button_motion_notify_event(GtkWidget* UNUSED(widget), GdkEventMotion* button, girara_session_t* session)
{
g_return_val_if_fail(session != NULL, false);
......@@ -310,7 +310,7 @@ girara_callback_view_button_motion_notify_event(GtkWidget* UNUSED(widget), GdkEv
return false;
}
bool
gboolean
girara_callback_view_scroll_event(GtkWidget* UNUSED(widget), GdkEventScroll* scroll, girara_session_t* session)
{
g_return_val_if_fail(session != NULL, false);
......@@ -362,7 +362,7 @@ girara_callback_view_scroll_event(GtkWidget* UNUSED(widget), GdkEventScroll* scr
return false;
}
bool
gboolean
girara_callback_inputbar_activate(GtkEntry* entry, girara_session_t* session)
{
g_return_val_if_fail(session != NULL, FALSE);
......@@ -505,13 +505,13 @@ girara_callback_inputbar_activate(GtkEntry* entry, girara_session_t* session)
return false;
}
bool
gboolean
girara_callback_inputbar_key_press_event(GtkWidget* entry, GdkEventKey* event, girara_session_t* session)
{
g_return_val_if_fail(session != NULL, false);
/* a custom handler has been installed (e.g. by girara_dialog) */
bool custom_ret = false;
gboolean custom_ret = false;
if (session->signals.inputbar_custom_key_press_event != NULL) {
custom_ret = session->signals.inputbar_custom_key_press_event(entry, event, session->signals.inputbar_custom_data);
if (custom_ret == true) {
......@@ -556,7 +556,7 @@ girara_callback_inputbar_key_press_event(GtkWidget* entry, GdkEventKey* event, g
return custom_ret;
}
bool
gboolean
girara_callback_inputbar_changed_event(GtkEditable* entry, girara_session_t* session)
{
g_return_val_if_fail(session != NULL, false);
......
......@@ -14,7 +14,7 @@
* @param data Custom data
* @return true if no error occurred
*/
typedef bool (*girara_callback_inputbar_key_press_event_t)(GtkWidget* widget,
typedef gboolean (*girara_callback_inputbar_key_press_event_t)(GtkWidget* widget,
GdkEventKey* event, void* data);
/**
......@@ -24,7 +24,7 @@ typedef bool (*girara_callback_inputbar_key_press_event_t)(GtkWidget* widget,
* @param data Custom data
* @return true if no error occurred
*/
typedef bool (*girara_callback_inputbar_activate_t)(GtkEntry* entry,
typedef gboolean (*girara_callback_inputbar_activate_t)(GtkEntry* entry,
void* data);
/**
......@@ -36,7 +36,7 @@ typedef bool (*girara_callback_inputbar_activate_t)(GtkEntry* entry,
* @return TRUE No error occurred
* @return FALSE An error occurred
*/
bool girara_callback_view_key_press_event(GtkWidget* widget, GdkEventKey* event,
gboolean girara_callback_view_key_press_event(GtkWidget* widget, GdkEventKey* event,
girara_session_t* session);
/**
......@@ -48,7 +48,7 @@ bool girara_callback_view_key_press_event(GtkWidget* widget, GdkEventKey* event,
* @return true to stop other handlers from being invoked for the event.
* @return false to propagate the event further.
*/
bool girara_callback_view_button_press_event(GtkWidget* widget,
gboolean girara_callback_view_button_press_event(GtkWidget* widget,
GdkEventButton* button, girara_session_t* session);
/**
......@@ -60,7 +60,7 @@ bool girara_callback_view_button_press_event(GtkWidget* widget,
* @return true to stop other handlers from being invoked for the event.
* @return false to propagate the event further.
*/
bool girara_callback_view_button_release_event(GtkWidget* widget,
gboolean girara_callback_view_button_release_event(GtkWidget* widget,
GdkEventButton* button, girara_session_t* session);
/**
......@@ -72,7 +72,7 @@ bool girara_callback_view_button_release_event(GtkWidget* widget,
* @return true to stop other handlers from being invoked for the event.
* @return false to propagate the event further.
*/
bool girara_callback_view_button_motion_notify_event(GtkWidget* widget,
gboolean girara_callback_view_button_motion_notify_event(GtkWidget* widget,
GdkEventMotion* button, girara_session_t* session);
/**
......@@ -84,7 +84,7 @@ bool girara_callback_view_button_motion_notify_event(GtkWidget* widget,
* @return true to stop other handlers from being invoked for the event.
* @return false to propagate the event further.
*/
bool girara_callback_view_scroll_event(GtkWidget* widget, GdkEventScroll* event,
gboolean girara_callback_view_scroll_event(GtkWidget* widget, GdkEventScroll* event,
girara_session_t* session);
/**
......@@ -95,7 +95,7 @@ bool girara_callback_view_scroll_event(GtkWidget* widget, GdkEventScroll* event,
* @return TRUE No error occurred
* @return FALSE An error occurred
*/
bool girara_callback_inputbar_activate(GtkEntry* entry,
gboolean girara_callback_inputbar_activate(GtkEntry* entry,
girara_session_t* session);
/**
......@@ -107,7 +107,7 @@ bool girara_callback_inputbar_activate(GtkEntry* entry,
* @return TRUE No error occurred
* @return FALSE An error occurred
*/
bool girara_callback_inputbar_key_press_event(GtkWidget* widget,
gboolean girara_callback_inputbar_key_press_event(GtkWidget* widget,
GdkEventKey* event, girara_session_t* session);
/**
......@@ -118,7 +118,7 @@ bool girara_callback_inputbar_key_press_event(GtkWidget* widget,
* @return TRUE No error occurred
* @return FALSE An error occurred
*/
bool girara_callback_inputbar_changed_event(GtkEditable* widget,
gboolean girara_callback_inputbar_changed_event(GtkEditable* widget,
girara_session_t* session);
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment