summaryrefslogtreecommitdiff
path: root/src/appfinder-category-model.h
diff options
context:
space:
mode:
authorNick Schermer <nick@xfce.org>2011-06-06 20:43:58 +0200
committerNick Schermer <nick@xfce.org>2011-07-09 16:14:55 +0200
commite3c64d41664e1ef70c88987fe5d970955c6a7587 (patch)
treeb4389b44afdeefa4ccd1c7032884be234e128a33 /src/appfinder-category-model.h
parent296cd0521239742e0e9a5d48a4157c9afbd3c459 (diff)
downloadxfce4-appfinder-e3c64d41664e1ef70c88987fe5d970955c6a7587.tar.gz
Initial work on xfce4-appfinder and xfrun4 merge.
Import the work from the design repository.
Diffstat (limited to 'src/appfinder-category-model.h')
-rw-r--r--src/appfinder-category-model.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/src/appfinder-category-model.h b/src/appfinder-category-model.h
new file mode 100644
index 0000000..73ffdf5
--- /dev/null
+++ b/src/appfinder-category-model.h
@@ -0,0 +1,60 @@
+/*
+ * Copyright (C) 2011 Nick Schermer <nick@xfce.org>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+#ifndef __XFCE_APPFINDER_CATEGORY_MODEL_H__
+#define __XFCE_APPFINDER_CATEGORY_MODEL_H__
+
+#include <gtk/gtk.h>
+
+G_BEGIN_DECLS
+
+typedef struct _XfceAppfinderCategoryModelClass XfceAppfinderCategoryModelClass;
+typedef struct _XfceAppfinderCategoryModel XfceAppfinderCategoryModel;
+
+#define XFCE_TYPE_APPFINDER_CATEGORY_MODEL (xfce_appfinder_category_model_get_type ())
+#define XFCE_APPFINDER_CATEGORY_MODEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), XFCE_TYPE_APPFINDER_CATEGORY_MODEL, XfceAppfinderCategoryModel))
+#define XFCE_APPFINDER_CATEGORY_MODEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), XFCE_TYPE_APPFINDER_CATEGORY_MODEL, XfceAppfinderCategoryModelClass))
+#define XFCE_IS_APPFINDER_CATEGORY_MODEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), XFCE_TYPE_APPFINDER_CATEGORY_MODEL))
+#define XFCE_IS_APPFINDER_CATEGORY_MODEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), XFCE_TYPE_APPFINDER_CATEGORY_MODEL))
+#define XFCE_APPFINDER_CATEGORY_MODEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), XFCE_TYPE_APPFINDER_CATEGORY_MODEL, XfceAppfinderCategoryModelClass))
+
+
+
+enum
+{
+ XFCE_APPFINDER_CATEGORY_MODEL_COLUMN_NAME,
+ XFCE_APPFINDER_CATEGORY_MODEL_COLUMN_ICON,
+ XFCE_APPFINDER_CATEGORY_MODEL_N_COLUMNS,
+};
+
+
+
+GType xfce_appfinder_category_model_get_type (void) G_GNUC_CONST;
+
+XfceAppfinderCategoryModel *xfce_appfinder_category_model_new (void) G_GNUC_MALLOC;
+
+void xfce_appfinder_category_model_set_categories (XfceAppfinderCategoryModel *model,
+ GSList *categories);
+
+gboolean xfce_appfinder_category_model_row_separator_func (GtkTreeModel *tree_model,
+ GtkTreeIter *iter,
+ gpointer user_data);
+
+G_END_DECLS
+
+#endif /* !__XFCE_APPFINDER_CATEGORY_MODEL_H__ */