Replace deprecated gdk_pixbuf_unref with g_object_unref

This appears to be the better API call to do this (according to online
documentation and compiler warnings on Linux).

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2013-02-09 11:48:12 -08:00
parent df8fb3be98
commit 2f059c8b81
2 changed files with 3 additions and 3 deletions

View file

@ -922,7 +922,7 @@ static void fill_one_dive(struct dive *dive,
-1);
if (icon)
gdk_pixbuf_unref(icon);
g_object_unref(icon);
free(location);
free(cylinder);
free(suit);
@ -1328,7 +1328,7 @@ static void fill_dive_list(void)
DIVE_SAC, 0,
-1);
if (icon)
gdk_pixbuf_unref(icon);
g_object_unref(icon);
gtk_tree_store_append(liststore, &iter, NULL);
gtk_tree_store_set(liststore, &iter,
DIVE_INDEX, i,