1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-23 00:04:06 +00:00

(trunk gtk) maybe compile a little better for Lacrocivous

This commit is contained in:
Charles Kerr 2009-03-03 00:55:03 +00:00
parent 3c32f97ef5
commit f5612b348b
2 changed files with 22 additions and 5 deletions

View file

@ -4,18 +4,17 @@
*/
#include <glib.h>
#include <glib/gi18n.h>
#include <gio/gio.h>
#include <gtk/gtk.h>
#include "icons.h"
#ifdef HAVE_GIO
#include <gio/gio.h>
#define VOID_PIXBUF_KEY "void-pixbuf"
static GHashTable *static_strings = NULL;
static const char *
get_static_string( const char *s )
{
@ -249,3 +248,22 @@ get_mime_type_from_filename( const char *file )
{
return get_static_string( g_content_type_guess( file, NULL, 0, NULL ));
}
#else
GdkPixbuf *
get_mime_type_icon( const char * mime_type,
GtkIconSize icon_size,
GtkWidget * for_widget )
{
return NULL;
}
const char *
get_mime_type_from_filename( const char *file )
{
return "uncertain";
}
#endif

View file

@ -3,7 +3,6 @@
* "There is no problem for me, you can license my code under whatever licence you wish :)"
*/
#ifndef ICONS_H
#define ICONS_H