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_APPLICATION_VIEW__
22 #define __MM_GTK_APPLICATION_VIEW__
24 #include <libmmanager/mm-application.h>
25 #include <libmmanager/mm-types.h>
26 #include <libmmanager/mm-category.h>
28 #include <glib-object.h>
31 #define MM_GTK_TYPE_APPLICATION_VIEW mm_gtk_application_view_get_type()
32 #define MM_GTK_APPLICATION_VIEW(obj) \
33 (G_TYPE_CHECK_INSTANCE_CAST ((obj), MM_GTK_TYPE_APPLICATION_VIEW, MMGtkApplicationView))
34 #define MM_GTK_APPLICATION_VIEW_CLASS(klass) \
35 (G_TYPE_CHECK_CLASS_CAST ((klass), MM_GTK_TYPE_APPLICATION_VIEW, MMGtkApplicationViewClass))
36 #define MM_GTK_IS_APPLICATION_VIEW(obj) \
37 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MM_GTK_TYPE_APPLICATION_VIEW))
38 #define MM_GTK_IS_APPLICATION_VIEW_CLASS(klass) \
39 (G_TYPE_CHECK_CLASS_TYPE ((klass), MM_GTK_TYPE_APPLICATION_VIEW))
40 #define MM_GTK_APPLICATION_VIEW_GET_CLASS(obj) \
41 (G_TYPE_INSTANCE_GET_CLASS ((obj), MM_GTK_TYPE_APPLICATION_VIEW, MMGtkApplicationViewClass))
44 * SECTION:mm-gtk-application-view
45 * @short_description: view #GtkWidget for #MMGtkApplicationStore
47 * #MMGtkApplicationView is a #GtkTreeView which shows the contents of
48 * a #MMGtkApplicationStore in a nice tree similar to the Nautilus tree
53 * MMGtkApplicationView:
55 * A #GtkTreeView made for showing a #MMGtkApplicationStore.
58 typedef struct _MMGtkApplicationView MMGtkApplicationView
;
59 typedef struct _MMGtkApplicationViewClass MMGtkApplicationViewClass
;
60 typedef struct _MMGtkApplicationViewPrivate MMGtkApplicationViewPrivate
;
62 struct _MMGtkApplicationView
{
64 MMGtkApplicationViewPrivate
*details
;
67 struct _MMGtkApplicationViewClass
{
68 GtkTreeViewClass parent_class
;
70 void (* application_selected
) (MMGtkApplicationView
*view
,
71 MMApplication
*application
);
72 void (* category_selected
) (MMGtkApplicationView
*view
,
73 MMCategory
*category
);
74 void (* mmtype_selected
) (MMGtkApplicationView
*view
,
75 MMApplicationType type
);
78 GType
mm_gtk_application_view_get_type (void);
79 MMGtkApplicationView
* mm_gtk_application_view_new (void);
81 #endif /* __MM_GTK_APPLICATION_VIEW__ */