13781343738de4abddf56982325a77bd70a98cd26Alexander Larsson/* GIO - GLib Input, Output and Streaming Library
2f2a2d6c9ac2d98b565005d446fde01aac47f7d88Michael Natterer *
33781343738de4abddf56982325a77bd70a98cd26Alexander Larsson * Copyright (C) 2006-2007 Red Hat, Inc.
43781343738de4abddf56982325a77bd70a98cd26Alexander Larsson *
53781343738de4abddf56982325a77bd70a98cd26Alexander Larsson * This library is free software; you can redistribute it and/or
63781343738de4abddf56982325a77bd70a98cd26Alexander Larsson * modify it under the terms of the GNU Lesser General Public
73781343738de4abddf56982325a77bd70a98cd26Alexander Larsson * License as published by the Free Software Foundation; either
83781343738de4abddf56982325a77bd70a98cd26Alexander Larsson * version 2 of the License, or (at your option) any later version.
93781343738de4abddf56982325a77bd70a98cd26Alexander Larsson *
103781343738de4abddf56982325a77bd70a98cd26Alexander Larsson * This library is distributed in the hope that it will be useful,
113781343738de4abddf56982325a77bd70a98cd26Alexander Larsson * but WITHOUT ANY WARRANTY; without even the implied warranty of
123781343738de4abddf56982325a77bd70a98cd26Alexander Larsson * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
133781343738de4abddf56982325a77bd70a98cd26Alexander Larsson * Lesser General Public License for more details.
143781343738de4abddf56982325a77bd70a98cd26Alexander Larsson *
153781343738de4abddf56982325a77bd70a98cd26Alexander Larsson * You should have received a copy of the GNU Lesser General
163781343738de4abddf56982325a77bd70a98cd26Alexander Larsson * Public License along with this library; if not, write to the
173781343738de4abddf56982325a77bd70a98cd26Alexander Larsson * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
183781343738de4abddf56982325a77bd70a98cd26Alexander Larsson * Boston, MA 02111-1307, USA.
193781343738de4abddf56982325a77bd70a98cd26Alexander Larsson *
203781343738de4abddf56982325a77bd70a98cd26Alexander Larsson * Author: Alexander Larsson <alexl@redhat.com>
213781343738de4abddf56982325a77bd70a98cd26Alexander Larsson */
223781343738de4abddf56982325a77bd70a98cd26Alexander Larsson
23ced29277267476bbe4ba5e35f79a8d6a130cb989Alexander Larsson#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
24ced29277267476bbe4ba5e35f79a8d6a130cb989Alexander Larsson#error "Only <gio/gio.h> can be included directly."
25ced29277267476bbe4ba5e35f79a8d6a130cb989Alexander Larsson#endif
26ced29277267476bbe4ba5e35f79a8d6a130cb989Alexander Larsson
273781343738de4abddf56982325a77bd70a98cd26Alexander Larsson#ifndef __G_THEMED_ICON_H__
283781343738de4abddf56982325a77bd70a98cd26Alexander Larsson#define __G_THEMED_ICON_H__
293781343738de4abddf56982325a77bd70a98cd26Alexander Larsson
303d93bf6968884d75dd2706ef85e2014305eb92f2Cody Russell#include <gio/giotypes.h>
313781343738de4abddf56982325a77bd70a98cd26Alexander Larsson
323781343738de4abddf56982325a77bd70a98cd26Alexander LarssonG_BEGIN_DECLS
333781343738de4abddf56982325a77bd70a98cd26Alexander Larsson
343781343738de4abddf56982325a77bd70a98cd26Alexander Larsson#define G_TYPE_THEMED_ICON         (g_themed_icon_get_type ())
353781343738de4abddf56982325a77bd70a98cd26Alexander Larsson#define G_THEMED_ICON(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_THEMED_ICON, GThemedIcon))
363781343738de4abddf56982325a77bd70a98cd26Alexander Larsson#define G_THEMED_ICON_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_THEMED_ICON, GThemedIconClass))
373781343738de4abddf56982325a77bd70a98cd26Alexander Larsson#define G_IS_THEMED_ICON(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_THEMED_ICON))
383781343738de4abddf56982325a77bd70a98cd26Alexander Larsson#define G_IS_THEMED_ICON_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_THEMED_ICON))
393781343738de4abddf56982325a77bd70a98cd26Alexander Larsson#define G_THEMED_ICON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_THEMED_ICON, GThemedIconClass))
403781343738de4abddf56982325a77bd70a98cd26Alexander Larsson
415247f12f3649726471080440de0d37b78c1cec33Andrew Walton/**
425247f12f3649726471080440de0d37b78c1cec33Andrew Walton * GThemedIcon:
43f2a2d6c9ac2d98b565005d446fde01aac47f7d88Michael Natterer *
445247f12f3649726471080440de0d37b78c1cec33Andrew Walton * An implementation of #GIcon for themed icons.
455247f12f3649726471080440de0d37b78c1cec33Andrew Walton **/
463781343738de4abddf56982325a77bd70a98cd26Alexander Larssontypedef struct _GThemedIconClass   GThemedIconClass;
473781343738de4abddf56982325a77bd70a98cd26Alexander Larsson
48f2a2d6c9ac2d98b565005d446fde01aac47f7d88Michael NattererGType  g_themed_icon_get_type                   (void) G_GNUC_CONST;
49f2a2d6c9ac2d98b565005d446fde01aac47f7d88Michael Natterer
500f370f9a042214453d9d92ca1daafadb0870aa9eMatthias ClasenGIcon *g_themed_icon_new                        (const char  *iconname);
510f370f9a042214453d9d92ca1daafadb0870aa9eMatthias ClasenGIcon *g_themed_icon_new_with_default_fallbacks (const char  *iconname);
52f2a2d6c9ac2d98b565005d446fde01aac47f7d88Michael NattererGIcon *g_themed_icon_new_from_names             (char       **iconnames,
530f370f9a042214453d9d92ca1daafadb0870aa9eMatthias Clasen                                                 int          len);
54f2a2d6c9ac2d98b565005d446fde01aac47f7d88Michael Natterervoid   g_themed_icon_prepend_name               (GThemedIcon *icon,
550f370f9a042214453d9d92ca1daafadb0870aa9eMatthias Clasen                                                 const char  *iconname);
56f2a2d6c9ac2d98b565005d446fde01aac47f7d88Michael Natterervoid   g_themed_icon_append_name                (GThemedIcon *icon,
570f370f9a042214453d9d92ca1daafadb0870aa9eMatthias Clasen                                                 const char  *iconname);
583781343738de4abddf56982325a77bd70a98cd26Alexander Larsson
590f370f9a042214453d9d92ca1daafadb0870aa9eMatthias Clasenconst char * const *g_themed_icon_get_names     (GThemedIcon *icon);
603781343738de4abddf56982325a77bd70a98cd26Alexander Larsson
613781343738de4abddf56982325a77bd70a98cd26Alexander LarssonG_END_DECLS
623781343738de4abddf56982325a77bd70a98cd26Alexander Larsson
633781343738de4abddf56982325a77bd70a98cd26Alexander Larsson#endif /* __G_THEMED_ICON_H__ */
64