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:
parent
c68dc38c36
commit
4e448eac45
2 changed files with 5 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue