diff options
author | Dan Williams <dcbw@redhat.com> | 2016-02-22 15:07:09 -0600 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2016-02-22 15:07:09 -0600 |
commit | 29040c205f8391734ddb3af2f3e93d5419a5f060 (patch) | |
tree | c19b00b3ad3e91b733270d67a4983d2fac731bb8 /libdbusmenu-gtk/parser.c | |
parent | 1398225fea8d3d4143a5b167ad17e1dddfaf3916 (diff) | |
download | libdbusmenu-29040c205f8391734ddb3af2f3e93d5419a5f060.tar.gz libdbusmenu-29040c205f8391734ddb3af2f3e93d5419a5f060.tar.bz2 libdbusmenu-29040c205f8391734ddb3af2f3e93d5419a5f060.zip |
gtk: fix some GTKv3 deprecations and get rid of HAVE_GTK3
Diffstat (limited to 'libdbusmenu-gtk/parser.c')
-rw-r--r-- | libdbusmenu-gtk/parser.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libdbusmenu-gtk/parser.c b/libdbusmenu-gtk/parser.c index d23fb75..d47622f 100644 --- a/libdbusmenu-gtk/parser.c +++ b/libdbusmenu-gtk/parser.c @@ -907,7 +907,11 @@ update_icon (DbusmenuMenuitem *menuitem, ParserData * pdata, GtkImage *image) GTK_ICON_LOOKUP_FORCE_SIZE); if (info != NULL) { pixbuf = gtk_icon_info_load_icon (info, NULL); +#if GTK_CHECK_VERSION(3,8,0) + g_object_unref (info); +#else gtk_icon_info_free (info); +#endif } break; |