Skip to content

Commit 2099296

Browse files
committed
Fix warning with cast
1 parent 09501e5 commit 2099296

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dunstify.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ int get_id(NotifyNotification *n)
177177
{
178178
GValue value = G_VALUE_INIT;
179179
g_value_init(&value, G_TYPE_UINT);
180-
g_object_get_property(n, "id", &value);
180+
g_object_get_property(G_OBJECT(n), "id", &value);
181181
return g_value_get_int(&value);
182182
}
183183

@@ -186,7 +186,7 @@ void put_id(NotifyNotification *n, guint32 id)
186186
GValue value = G_VALUE_INIT;
187187
g_value_init(&value, G_TYPE_UINT);
188188
g_value_set_uint(&value, id);
189-
g_object_set_property(n, "id", &value);
189+
g_object_set_property(G_OBJECT(n), "id", &value);
190190
}
191191

192192
void actioned(NotifyNotification *n, char *a, gpointer foo)

0 commit comments

Comments
 (0)