Watch object path.

2015-03-04 Thread Konstantin P.
How I can watch both name and object path in GDBus? (like g_bus_watch_name, but call callbacks also when object path is added/removed)? ___ gtk-list mailing list gtk-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-list

GHashTable strange behavior

2015-03-04 Thread Stathis Gkotsis
Hi all, I am facing some strange behavior with GHashTable. When I use g_hash_table_insert to insert the same key twice, it does not return FALSE, but TRUE: typedef struct {     int a, b; } key_t; typedef struct {     int a, b; } value_t; guint hash_func(gconstpointer key) {     return hash((c

RE: GHashTable strange behavior

2015-03-04 Thread Stathis Gkotsis
Forgot to mention that I am using Glib 2.42 on Linux. > From: stathisgot...@hotmail.com > To: gtk-list@gnome.org > Subject: GHashTable strange behavior > Date: Wed, 4 Mar 2015 20:44:04 +0200 > > Hi all, > > I am facing some strange behavior with GHashTable.