1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- 2 3 caja-emblem-utils.h: Utilities for handling emblems 4 5 Copyright (C) 2002 Red Hat, Inc. 6 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. 11 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. 16 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., 51 Franklin St, Fifth Floor, 20 Boston, MA 02110-1301, USA. 21 22 Author: Alexander Larsson <alexl@redhat.com> 23 */ 24 25 #ifndef __CAJA_EMBLEM_UTILS_H__ 26 #define __CAJA_EMBLEM_UTILS_H__ 27 28 #include <glib.h> 29 #include <gio/gio.h> 30 #include <gtk/gtk.h> 31 #include <gdk-pixbuf/gdk-pixbuf.h> 32 33 GList * caja_emblem_list_available (void); 34 void caja_emblem_refresh_list (void); 35 gboolean caja_emblem_should_show_in_list (const char *emblem); 36 gboolean caja_emblem_verify_keyword (GtkWindow *parent_window, 37 const char *keyword, 38 const char *display_name); 39 void caja_emblem_install_custom_emblem (GdkPixbuf *pixbuf, 40 const char *keyword, 41 const char *display_name, 42 GtkWindow *parent_window); 43 44 gboolean caja_emblem_remove_emblem (const char *keyword); 45 gboolean caja_emblem_rename_emblem (const char *keyword, 46 const char *display_name); 47 48 GdkPixbuf *caja_emblem_load_pixbuf_for_emblem (GFile *emblem); 49 char * caja_emblem_get_keyword_from_icon_name (const char *emblem); 50 char * caja_emblem_get_icon_name_from_keyword (const char *keyword); 51 52 gboolean caja_emblem_can_remove_emblem (const char *keyword); 53 gboolean caja_emblem_can_rename_emblem (const char *keyword); 54 55 char * caja_emblem_create_unique_keyword (const char *base); 56 57 58 #endif /* __CAJA_EMBLEM_UTILS_H__ */ 59 60