Make live update of attributes in the combobox finally work properly :)
[mmediamanager.git] / libmmanager-gtk / mm-gtk-attribute-store.h
blobcbf7232ea2f1b130775db1f2167ec04b0c3f1088
1 /* MManager - a Desktop wide manager for multimedia applications.
3 * Copyright (C) 2008 Cosimo Cecchi <cosimoc@gnome.org>
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
21 #ifndef __MM_GTK_ATTRIBUTE_STORE_H__
22 #define __MM_GTK_ATTRIBUTE_STORE_H__
24 #include <glib-object.h>
25 #include <gtk/gtk.h>
27 #include <libmmanager/mm-attribute.h>
28 #include <libmmanager/mm-attribute-manager.h>
30 #define MM_GTK_TYPE_ATTRIBUTE_STORE mm_gtk_attribute_store_get_type()
31 #define MM_GTK_ATTRIBUTE_STORE(obj) \
32 (G_TYPE_CHECK_INSTANCE_CAST ((obj), MM_GTK_TYPE_ATTRIBUTE_STORE, MMGtkAttributeStore))
33 #define MM_GTK_ATTRIBUTE_STORE_CLASS(klass) \
34 (G_TYPE_CHECK_CLASS_CAST ((klass), MM_GTK_TYPE_ATTRIBUTE_STORE, MMGtkAttributeStoreClass))
35 #define MM_GTK_IS_ATTRIBUTE_STORE(obj) \
36 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MM_GTK_TYPE_ATTRIBUTE_STORE))
37 #define MM_GTK_IS_ATTRIBUTE_STORE_CLASS(klass) \
38 (G_TYPE_CHECK_CLASS_TYPE ((klass), MM_GTK_TYPE_ATTRIBUTE_STORE))
39 #define MM_GTK_ATTRIBUTE_STORE_GET_CLASS(obj) \
40 (G_TYPE_INSTANCE_GET_CLASS ((obj), MM_GTK_TYPE_ATTRIBUTE_STORE, MMGtkAttributeStoreClass))
42 typedef struct {
43 GtkListStore parent;
44 } MMGtkAttributeStore;
46 typedef struct {
47 GtkListStoreClass parent_class;
48 } MMGtkAttributeStoreClass;
50 enum {
51 MM_GTK_ATTR_STORE_ATTR_COL,
52 MM_GTK_ATTR_STORE_ID_COL,
53 MM_GTK_ATTR_STORE_NAME_COL,
54 MM_GTK_ATTR_STORE_DESC_COL,
55 MM_GTK_ATTR_STORE_GTYPE_COL,
56 MM_GTK_ATTR_STORE_N_COL
59 GType mm_gtk_attribute_store_get_type (void);
60 MMGtkAttributeStore* mm_gtk_attribute_store_new (void);
61 void mm_gtk_attribute_store_add_attribute
62 (MMGtkAttributeStore *store,
63 MMAttribute *attribute);
64 void mm_gtk_attribute_store_set_from_attribute_manager
65 (MMGtkAttributeStore *store,
66 MMAttributeManager *attr_manager);
68 #endif /* __MM_GTK_ATTRIBUTE_STORE__ */