aboutsummaryrefslogtreecommitdiff
path: root/src/idoplaybackmenuitem.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/idoplaybackmenuitem.c')
-rw-r--r--src/idoplaybackmenuitem.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/idoplaybackmenuitem.c b/src/idoplaybackmenuitem.c
index 81fcab7..e520e20 100644
--- a/src/idoplaybackmenuitem.c
+++ b/src/idoplaybackmenuitem.c
@@ -331,6 +331,8 @@ static void
ido_playback_menu_item_set_state_from_string (IdoPlaybackMenuItem *self,
const gchar *state)
{
+ g_return_if_fail (state != NULL);
+
if (g_str_equal (state, "Playing"))
self->current_state = STATE_PLAYING;
else if (g_str_equal (state, "Launching"))
@@ -382,6 +384,8 @@ ido_playback_menu_item_action_state_changed (GActionGroup *action_group,
{
IdoPlaybackMenuItem *self = user_data;
+ g_return_if_fail (action_name != NULL);
+
if (self->play_action && g_str_equal (action_name, self->play_action))
{
if (g_variant_is_of_type (value, G_VARIANT_TYPE_STRING))