I use the newest GTK+ installed with MSYS2 and whenever I attempt to use
g_application_send_notification() it always results in the following
(Notification Project.exe:27780): GLib-GObject-CRITICAL **: g_object_new:
ion 'G_TYPE_IS_OBJECT (object_type)' failed
Why I think it is a bug - because I tried many code samples beside mines
(they are all quite like mines anyway), of people who got it working
(including notifaction by Lars Uebernickel) and it all makes the same
Assert, followed by crash. Now I really don't know what this means, as it
is probably within gtk internals, but I really hope some of you might have
a clue or experience with this.
Look closely at the types GApplication and GNotification (section Object
Hierarchy): they're both objects derived from a GObject. So when you
invoke g_application_send_notification (), you can be sure that the
implementation will validate the pointers here and there, and ensure
they're GObject pointers.
While I can't solve your error, I can advice you to double-check the
pointers you're passing. Are you sure it's not NULL pointers ? Are you
sure they're initialized ? How did you obtain these pointers ?