libfeedback: Allow to set important hint
This commit is contained in:
committed by
Guido Günther
parent
e6845a52d3
commit
14ffd9722d
@@ -15,6 +15,7 @@ test_lfb_event_props (void)
|
||||
g_autofree gchar *evname = NULL;
|
||||
g_autofree gchar *profile = NULL;
|
||||
g_autofree gchar *app_id = NULL;
|
||||
gboolean important;
|
||||
gint timeout;
|
||||
|
||||
g_assert_true (lfb_init (TEST_APP_ID, NULL));
|
||||
@@ -27,10 +28,12 @@ test_lfb_event_props (void)
|
||||
"timeout", &timeout,
|
||||
"feedback-profile", &profile,
|
||||
"app-id", &app_id,
|
||||
"important", &important,
|
||||
NULL);
|
||||
g_assert_cmpstr (evname, ==, "window-close");
|
||||
g_assert_cmpint (timeout, ==, -1);
|
||||
g_assert_null (profile);
|
||||
g_assert_false (important);
|
||||
g_assert_null (app_id);
|
||||
|
||||
g_assert_cmpint (lfb_event_get_end_reason (event), ==, LFB_EVENT_END_REASON_NATURAL);
|
||||
|
||||
@@ -238,6 +238,7 @@ test_lfb_integration_event_async (void)
|
||||
lfb_event_set_timeout (event10, 1);
|
||||
g_assert_cmpint (lfb_event_get_timeout (event10), ==, 1);
|
||||
lfb_event_set_feedback_profile (event10, "quiet");
|
||||
lfb_event_set_important (event10, FALSE);
|
||||
g_signal_connect (event10, "feedback-ended", (GCallback)on_feedback_ended, &cmp1);
|
||||
|
||||
/* The async callback ends the main loop */
|
||||
|
||||
Reference in New Issue
Block a user