2
* Copyright (C) 2003 Michael Vogt
4
* This library is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU Library General Public
6
* License as published by the Free Software Foundation; either
7
* version 2 of the License, or (at your option) any later version.
9
* This library is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
* Library General Public License for more details.
14
* You should have received a copy of the GNU Library General Public
15
* License along with this library; if not, write to the
16
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17
* Boston, MA 02111-1307, USA.
20
#ifndef __GTK_PKG_TREE_H__
21
#define __GTK_PKG_TREE_H__
24
#include "rpackagelister.h"
29
#endif /* __cplusplus */
31
#define GTK_TYPE_PKG_TREE (gtk_pkg_tree_get_type ())
32
#define GTK_PKG_TREE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_PKG_TREE, GtkPkgTree))
33
#define GTK_PKG_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_PKG_TREE, GtkPkgTreeClass))
34
#define GTK_IS_PKG_TREE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_PKG_TREE))
35
#define GTK_IS_PKG_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_PKG_TREE))
36
#define GTK_PKG_TREE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_PKG_TREE, GtkPkgTreeClass))
38
typedef struct _GtkPkgTree GtkPkgTree;
39
typedef struct _GtkPkgTreeClass GtkPkgTreeClass;
45
INSTALLED_VERSION_COLUMN,
46
AVAILABLE_VERSION_COLUMN,
58
RPackageLister *_lister;
65
GType column_headers[N_COLUMNS];
66
guint columns_dirty : 1;
69
struct _GtkPkgTreeClass
71
GObjectClass parent_class;
76
GType gtk_pkg_tree_get_type ();
77
GtkPkgTree *gtk_pkg_tree_new (RPackageLister *lister, bool list_mode=false);
79
/* is this really needed */
80
void gtk_pkg_tree_refresh (GtkPkgTree *);
84
#endif /* __cplusplus */
87
#endif /* __GTK_TREE_STORE_H__ */