Changeset 14107


Ignore:
Timestamp:
Jul 8, 2013, 4:25:18 PM (9 years ago)
Author:
jordan
Message:

replace deprecated gtk_icon_info_free() calls with g_object_unref() in GTK+ >= 3.8.0

Location:
trunk/gtk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/icons.c

    r14018 r14107  
    143143    }
    144144
     145#if GTK_CHECK_VERSION(3,8,0)
     146    g_object_unref (icon_info);
     147#else
    145148    gtk_icon_info_free (icon_info);
     149#endif
    146150    g_strfreev (icon_names);
    147151
  • trunk/gtk/tr-icon.c

    r13761 r14107  
    133133     GtkIconInfo * icon_info = gtk_icon_theme_lookup_icon (theme, TRAY_ICON, 48, GTK_ICON_LOOKUP_USE_BUILTIN);
    134134     const gboolean icon_is_builtin = gtk_icon_info_get_filename (icon_info) == NULL;
    135      gtk_icon_info_free (icon_info);
     135#if GTK_CHECK_VERSION(3,8,0)
     136    g_object_unref (icon_info);
     137#else
     138    gtk_icon_info_free (icon_info);
     139#endif
    136140     icon_name = icon_is_builtin ? ICON_NAME : TRAY_ICON;
    137141    }
Note: See TracChangeset for help on using the changeset viewer.