mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
Merge branch 'wip/chergert/subclass-treeview' into 'master'
treeview: allow subclassing GtkTreeView Closes #2936 See merge request GNOME/gtk!2256
This commit is contained in:
commit
059d131e2b
3309
gtk/gtktreeview.c
3309
gtk/gtktreeview.c
File diff suppressed because it is too large
Load Diff
@ -50,11 +50,15 @@ typedef enum
|
||||
GTK_TREE_VIEW_DROP_INTO_OR_AFTER
|
||||
} GtkTreeViewDropPosition;
|
||||
|
||||
#define GTK_TYPE_TREE_VIEW (gtk_tree_view_get_type ())
|
||||
#define GTK_TREE_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TREE_VIEW, GtkTreeView))
|
||||
#define GTK_IS_TREE_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TREE_VIEW))
|
||||
#define GTK_TYPE_TREE_VIEW (gtk_tree_view_get_type ())
|
||||
#define GTK_TREE_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TREE_VIEW, GtkTreeView))
|
||||
#define GTK_IS_TREE_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TREE_VIEW))
|
||||
#define GTK_TREE_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TREE_VIEW, GtkTreeViewClass))
|
||||
#define GTK_IS_TREE_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TREE_VIEW))
|
||||
#define GTK_TREE_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TREE_VIEW, GtkTreeViewClass))
|
||||
|
||||
typedef struct _GtkTreeView GtkTreeView;
|
||||
typedef struct _GtkTreeViewClass GtkTreeViewClass;
|
||||
typedef struct _GtkTreeSelection GtkTreeSelection;
|
||||
|
||||
/**
|
||||
@ -133,10 +137,59 @@ typedef gboolean (*GtkTreeViewRowSeparatorFunc) (GtkTreeModel *model,
|
||||
GtkTreeIter *iter,
|
||||
gpointer data);
|
||||
|
||||
struct _GtkTreeView
|
||||
{
|
||||
GtkWidget parent_instance;
|
||||
};
|
||||
|
||||
struct _GtkTreeViewClass
|
||||
{
|
||||
GtkWidgetClass parent_class;
|
||||
|
||||
void (* row_activated) (GtkTreeView *tree_view,
|
||||
GtkTreePath *path,
|
||||
GtkTreeViewColumn *column);
|
||||
gboolean (* test_expand_row) (GtkTreeView *tree_view,
|
||||
GtkTreeIter *iter,
|
||||
GtkTreePath *path);
|
||||
gboolean (* test_collapse_row) (GtkTreeView *tree_view,
|
||||
GtkTreeIter *iter,
|
||||
GtkTreePath *path);
|
||||
void (* row_expanded) (GtkTreeView *tree_view,
|
||||
GtkTreeIter *iter,
|
||||
GtkTreePath *path);
|
||||
void (* row_collapsed) (GtkTreeView *tree_view,
|
||||
GtkTreeIter *iter,
|
||||
GtkTreePath *path);
|
||||
void (* columns_changed) (GtkTreeView *tree_view);
|
||||
void (* cursor_changed) (GtkTreeView *tree_view);
|
||||
|
||||
/* Key Binding signals */
|
||||
gboolean (* move_cursor) (GtkTreeView *tree_view,
|
||||
GtkMovementStep step,
|
||||
gint count,
|
||||
gboolean extend,
|
||||
gboolean modify);
|
||||
gboolean (* select_all) (GtkTreeView *tree_view);
|
||||
gboolean (* unselect_all) (GtkTreeView *tree_view);
|
||||
gboolean (* select_cursor_row) (GtkTreeView *tree_view,
|
||||
gboolean start_editing);
|
||||
gboolean (* toggle_cursor_row) (GtkTreeView *tree_view);
|
||||
gboolean (* expand_collapse_cursor_row) (GtkTreeView *tree_view,
|
||||
gboolean logical,
|
||||
gboolean expand,
|
||||
gboolean open_all);
|
||||
gboolean (* select_cursor_parent) (GtkTreeView *tree_view);
|
||||
gboolean (* start_interactive_search) (GtkTreeView *tree_view);
|
||||
|
||||
/*< private >*/
|
||||
gpointer _reserved[16];
|
||||
};
|
||||
|
||||
/* Creators */
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GType gtk_tree_view_get_type (void) G_GNUC_CONST;
|
||||
|
||||
/* Creators */
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GtkWidget *gtk_tree_view_new (void);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
|
Loading…
Reference in New Issue
Block a user