1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-11 13:50:48 -05:00

widget.test: Add NULL tests for trigger_action functions

Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
This commit is contained in:
Quentin Glidic 2017-05-30 13:40:03 +02:00
parent c68dc38c36
commit 4e448eac45
No known key found for this signature in database
GPG key ID: AC203F96E2C34BB7
2 changed files with 5 additions and 4 deletions

View file

@ -463,6 +463,9 @@ WidgetTriggerActionResult widget_trigger_action ( widget *wid, guint action, gin
void widget_set_trigger_action_handler ( widget *wid, widget_trigger_action_cb cb, void * cb_data )
{
if ( wid == NULL ) {
return;
}
wid->trigger_action = cb;
wid->trigger_action_cb_data = cb_data;
}

View file

@ -189,10 +189,8 @@ int main ( G_GNUC_UNUSED int argc, G_GNUC_UNUSED char **argv )
widget_update ( NULL );
widget_queue_redraw ( NULL );
TASSERT (widget_need_redraw ( NULL ) == FALSE);
/* FIXME: add relevant code for binding rework
widget_clicked ( NULL, NULL );
widget_set_clicked_handler ( NULL, NULL, NULL );
*/
widget_trigger_action ( NULL, 0, 0, 0 );
widget_set_trigger_action_handler ( NULL, NULL, NULL );
g_free(wid);