2008-05-05 Paolo Borelli <pborelli@katamail.com>
[nautilus.git] / libnautilus-private / nautilus-emblem-utils.h
blobd203b5153ea66c98424625e5ad551d06a07179d7
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*-
3 nautilus-emblem-utils.h: Utilities for handling emblems
5 Copyright (C) 2002 Red Hat, Inc.
7 This program is free software; you can redistribute it and/or
8 modify it under the terms of the GNU General Public License as
9 published by the Free Software Foundation; either version 2 of the
10 License, or (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 General Public License for more details.
17 You should have received a copy of the GNU General Public
18 License along with this program; if not, write to the
19 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA.
22 Author: Alexander Larsson <alexl@redhat.com>
25 #include <glib.h>
26 #include <gio/gio.h>
27 #include <gtk/gtkwindow.h>
28 #include <gdk-pixbuf/gdk-pixbuf.h>
30 GList * nautilus_emblem_list_available (void);
31 void nautilus_emblem_refresh_list (void);
32 gboolean nautilus_emblem_should_show_in_list (const char *emblem);
33 gboolean nautilus_emblem_verify_keyword (GtkWindow *parent_window,
34 const char *keyword,
35 const char *display_name);
36 void nautilus_emblem_install_custom_emblem (GdkPixbuf *pixbuf,
37 const char *keyword,
38 const char *display_name,
39 GtkWindow *parent_window);
41 gboolean nautilus_emblem_remove_emblem (const char *keyword);
42 gboolean nautilus_emblem_rename_emblem (const char *keyword,
43 const char *display_name);
45 GdkPixbuf *nautilus_emblem_load_pixbuf_for_emblem (GFile *emblem);
46 char * nautilus_emblem_get_keyword_from_icon_name (const char *emblem);
47 char * nautilus_emblem_get_icon_name_from_keyword (const char *keyword);
49 gboolean nautilus_emblem_can_remove_emblem (const char *keyword);
50 gboolean nautilus_emblem_can_rename_emblem (const char *keyword);
52 char * nautilus_emblem_create_unique_keyword (const char *base);