Changeset 9194


Ignore:
Timestamp:
Sep 27, 2009, 5:47:45 PM (13 years ago)
Author:
charles
Message:

(trunk gtk) #2453: Transmission since version 1.61 need GTK+ 2.12 or an upper version.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/icons.c

    r8891 r9194  
    1010
    1111#ifdef HAVE_GIO
     12 #if GTK_CHECK_VERSION( 2, 12, 0 )
     13   #define USE_GIO_ICONS
     14 #endif
     15#endif
     16
     17#ifdef USE_GIO_ICONS
    1218 #include <gio/gio.h>
    1319#endif
     
    1521#define VOID_PIXBUF_KEY "void-pixbuf"
    1622
    17 #ifdef HAVE_GIO
     23#ifdef USE_GIO_ICONS
    1824static const char *
    1925get_static_string( const char *s )
     
    9197}
    9298
    93 #ifdef HAVE_GIO
     99#ifdef USE_GIO_ICONS
    94100static const char *
    95101_icon_cache_get_icon_key( GIcon * icon )
     
    216222}
    217223
    218 #else /* HAVE_GIO */
     224#else /* USE_GIO_ICONS */
    219225
    220226static GdkPixbuf *
     
    276282get_mime_type_from_filename( const char * file G_GNUC_UNUSED )
    277283{
    278 #ifdef HAVE_GIO
     284#ifdef USE_GIO_ICONS
    279285    char * tmp = g_content_type_guess( file, NULL, 0, NULL );
    280286    const char * ret = get_static_string( tmp );
Note: See TracChangeset for help on using the changeset viewer.