The following code spawns a window --
if (connect_build_object != NULL) {
g_object_unref (G_OBJECT ( connect_build_object ));
object = NULL;
}
connect_build_object = gtk_builder_new();
gtk_builder_add_from_resource ( connect_build_object,
"/erg/app/ui/main_window.ui",
NULL );
gtk
Hi;
On 8 May 2015 at 10:25, Konstantin P. wrote:
> The following code spawns a window --
>
> if (connect_build_object != NULL) {
> g_object_unref (G_OBJECT ( connect_build_object ));
> object = NULL;
> }
> connect_build_object = gtk_builder_new();
>
> gtk_builder_add_from_resource ( c
I am using valgrind into it. I got leaks only in 2 cases (repeated
variously):
==19790==by 0x5398314: gtk_label_init (gtklabel.c:1341)
==19790==by 0x5D84506: g_type_create_instance (in
/usr/lib/libgobject-2.0.so.0.4400.0)
==19790==by 0x5D683B6: g_object_new_internal (in
/usr/lib/libgob
There's a few bugs here. First, you forgot to unref the builder, which
keeps a reference to all its objects. Second, windows must be destroyed
with gtk_widget_destroy to ensure they are properly cleaned up. Windows, as
toplevel widgets, need to interact with the windowing system at any time,
even i
gnotification works under win?
i get a segfault on g_application_send_notification
(GLib-GObject-CRITICAL **: g_object_new: assertion 'G_TYPE_IS_OBJECT
(object_type)' failed)
or i did't uderstand how use it?
i tried with this code (i also tried without gtkapplication, but only
with gappl