diff options
author | Dan Williams <dcbw@redhat.com> | 2016-02-23 14:08:34 -0600 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2016-02-23 14:08:34 -0600 |
commit | 05624ad69ee10fd7310479a8776333b85ee68147 (patch) | |
tree | 72325993db3da78e723341b996c3ac5630189133 /libdbusmenu-gtk/parser.c | |
parent | 1398225fea8d3d4143a5b167ad17e1dddfaf3916 (diff) | |
parent | ea7b8b5b3bb2b46388153ae48dcd2e162f6512b7 (diff) | |
download | libdbusmenu-05624ad69ee10fd7310479a8776333b85ee68147.tar.gz libdbusmenu-05624ad69ee10fd7310479a8776333b85ee68147.tar.bz2 libdbusmenu-05624ad69ee10fd7310479a8776333b85ee68147.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; |