mirror of https://github.com/davatorium/rofi.git
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
|
@ -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 )
|
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;
|
||||||
wid->trigger_action_cb_data = cb_data;
|
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_update ( NULL );
|
||||||
widget_queue_redraw ( NULL );
|
widget_queue_redraw ( NULL );
|
||||||
TASSERT (widget_need_redraw ( NULL ) == FALSE);
|
TASSERT (widget_need_redraw ( NULL ) == FALSE);
|
||||||
/* FIXME: add relevant code for binding rework
|
widget_trigger_action ( NULL, 0, 0, 0 );
|
||||||
widget_clicked ( NULL, NULL );
|
widget_set_trigger_action_handler ( NULL, NULL, NULL );
|
||||||
widget_set_clicked_handler ( NULL, NULL, NULL );
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
g_free(wid);
|
g_free(wid);
|
||||||
|
|
Loading…
Reference in New Issue