~ubuntu-branches/ubuntu/quantal/xarchiver/quantal

« back to all changes in this revision

Viewing changes to src/mime.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2008-11-07 14:54:00 UTC
  • mfrom: (1.1.7 upstream) (2.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20081107145400-z0j3jmgads8coae2
Tags: 0.5.1-1
MergingĀ upstreamĀ versionĀ 0.5.1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  Copyright (c) 2008 Giuseppe Torelli <colossus73@gmail.com>
 
3
 *
 
4
 *  This program is free software; you can redistribute it and/or modify
 
5
 *  it under the terms of the GNU General Public License as published by
 
6
 *  the Free Software Foundation; either version 2 of the License, or
 
7
 *  (at your option) any later version.
 
8
 *
 
9
 *  This program is distributed in the hope that it will be useful,
 
10
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
 *  GNU Library General Public License for more details.
 
13
 *
 
14
 *  You should have received a copy of the GNU General Public License
 
15
 *  along with this program; if not, write to the Free Software
 
16
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
17
 *
 
18
 */
 
19
 
 
20
#ifndef __XARCHIVER_MIME_H__
 
21
#define __XARCHIVER_MIME_H__
 
22
 
 
23
#include "xdgmime/xdgmime.h"
 
24
#include "support.h"
 
25
#include <gtk/gtk.h>
 
26
#include <gdk/gdk.h>
 
27
#include <string.h>
 
28
 
 
29
typedef struct _pixbuf_cache pixbuf_cache;
 
30
 
 
31
struct _pixbuf_cache
 
32
{
 
33
        gchar *icon_name;
 
34
        GdkPixbuf *pixbuf;
 
35
};
 
36
 
 
37
const char *xa_get_stock_mime_icon(char *);
 
38
GdkPixbuf *xa_get_pixbuf_icon_from_cache(gchar *,gint);
 
39
gint xa_icon_name_compare_func(pixbuf_cache *, pixbuf_cache *);
 
40
void xa_free_icon_cache();
 
41
#endif