Hi !

On 09/26/2017 10:24 PM, psp...@mail.bg wrote:
> (Notification Project.exe:27780): GLib-GObject-CRITICAL **: g_object_new:
> assertion 'G_TYPE_IS_OBJECT (object_type)' failed

What it means is that, during a call to g_object_new
(https://developer.gnome.org/gobject/stable/gobject-The-Base-Object-Type.html#g-object-new),
a type was checked with G_TYPE_IS_OBJECT
(https://developer.gnome.org/gobject/stable/gobject-The-Base-Object-Type.html#G-TYPE-IS-OBJECT:CAPS).
The code expected to see a GObject type, but it didn't, hence the
assertion failure.

The most, most likely error here is from the library caller (aka you):
you must be passing wrong pointers.

You say you're using g_application_send_notification (), so have a look
at the manual here:

   
https://developer.gnome.org/gio/stable/GApplication.html#g-application-send-notification

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 ?

Hope this helps, good luck !

  Arnaud

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to