Massive reorder/cleanup of a lot of the code. Some documentation added.

Fri Apr 27 20:27:21 2001  Jonathan Blandford  <jrb@redhat.com>

	* gtk/gtktreeview.[hc]: Massive reorder/cleanup of a lot of the
	code.  Some documentation added.
This commit is contained in:
Jonathan Blandford 2001-04-28 00:29:34 +00:00 committed by Jonathan Blandford
parent 7e9b154f0c
commit c4f26ae336
9 changed files with 2892 additions and 2746 deletions

View File

@ -1,3 +1,8 @@
Fri Apr 27 20:27:21 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.[hc]: Massive reorder/cleanup of a lot of the
code. Some documentation added.
2001-04-27 Havoc Pennington <hp@redhat.com> 2001-04-27 Havoc Pennington <hp@redhat.com>
* gtk/gtkcombo.c (gtk_combo_popup_button_press): fix warning * gtk/gtkcombo.c (gtk_combo_popup_button_press): fix warning

View File

@ -1,3 +1,8 @@
Fri Apr 27 20:27:21 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.[hc]: Massive reorder/cleanup of a lot of the
code. Some documentation added.
2001-04-27 Havoc Pennington <hp@redhat.com> 2001-04-27 Havoc Pennington <hp@redhat.com>
* gtk/gtkcombo.c (gtk_combo_popup_button_press): fix warning * gtk/gtkcombo.c (gtk_combo_popup_button_press): fix warning

View File

@ -1,3 +1,8 @@
Fri Apr 27 20:27:21 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.[hc]: Massive reorder/cleanup of a lot of the
code. Some documentation added.
2001-04-27 Havoc Pennington <hp@redhat.com> 2001-04-27 Havoc Pennington <hp@redhat.com>
* gtk/gtkcombo.c (gtk_combo_popup_button_press): fix warning * gtk/gtkcombo.c (gtk_combo_popup_button_press): fix warning

View File

@ -1,3 +1,8 @@
Fri Apr 27 20:27:21 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.[hc]: Massive reorder/cleanup of a lot of the
code. Some documentation added.
2001-04-27 Havoc Pennington <hp@redhat.com> 2001-04-27 Havoc Pennington <hp@redhat.com>
* gtk/gtkcombo.c (gtk_combo_popup_button_press): fix warning * gtk/gtkcombo.c (gtk_combo_popup_button_press): fix warning

View File

@ -1,3 +1,8 @@
Fri Apr 27 20:27:21 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.[hc]: Massive reorder/cleanup of a lot of the
code. Some documentation added.
2001-04-27 Havoc Pennington <hp@redhat.com> 2001-04-27 Havoc Pennington <hp@redhat.com>
* gtk/gtkcombo.c (gtk_combo_popup_button_press): fix warning * gtk/gtkcombo.c (gtk_combo_popup_button_press): fix warning

View File

@ -1,3 +1,8 @@
Fri Apr 27 20:27:21 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.[hc]: Massive reorder/cleanup of a lot of the
code. Some documentation added.
2001-04-27 Havoc Pennington <hp@redhat.com> 2001-04-27 Havoc Pennington <hp@redhat.com>
* gtk/gtkcombo.c (gtk_combo_popup_button_press): fix warning * gtk/gtkcombo.c (gtk_combo_popup_button_press): fix warning

View File

@ -1,3 +1,8 @@
Fri Apr 27 20:27:21 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.[hc]: Massive reorder/cleanup of a lot of the
code. Some documentation added.
2001-04-27 Havoc Pennington <hp@redhat.com> 2001-04-27 Havoc Pennington <hp@redhat.com>
* gtk/gtkcombo.c (gtk_combo_popup_button_press): fix warning * gtk/gtkcombo.c (gtk_combo_popup_button_press): fix warning

File diff suppressed because it is too large Load Diff

View File

@ -46,14 +46,12 @@ typedef enum
#define GTK_IS_TREE_VIEW(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_TREE_VIEW)) #define GTK_IS_TREE_VIEW(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_TREE_VIEW))
#define GTK_IS_TREE_VIEW_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((obj), GTK_TYPE_TREE_VIEW)) #define GTK_IS_TREE_VIEW_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((obj), GTK_TYPE_TREE_VIEW))
typedef struct _GtkTreeView GtkTreeView; typedef struct _GtkTreeView GtkTreeView;
typedef struct _GtkTreeViewClass GtkTreeViewClass; typedef struct _GtkTreeViewClass GtkTreeViewClass;
typedef struct _GtkTreeViewPrivate GtkTreeViewPrivate; typedef struct _GtkTreeViewPrivate GtkTreeViewPrivate;
typedef struct _GtkTreeSelection GtkTreeSelection; typedef struct _GtkTreeSelection GtkTreeSelection;
typedef struct _GtkTreeSelectionClass GtkTreeSelectionClass; typedef struct _GtkTreeSelectionClass GtkTreeSelectionClass;
struct _GtkTreeView struct _GtkTreeView
{ {
GtkContainer parent; GtkContainer parent;
@ -80,163 +78,158 @@ struct _GtkTreeViewClass
}; };
typedef gboolean (* GtkTreeViewColumnDropFunc) (GtkTreeView *tree_view, typedef gboolean (* GtkTreeViewColumnDropFunc) (GtkTreeView *tree_view,
GtkTreeViewColumn *column, GtkTreeViewColumn *column,
GtkTreeViewColumn *prev_column, GtkTreeViewColumn *prev_column,
GtkTreeViewColumn *next_column, GtkTreeViewColumn *next_column,
gpointer data); gpointer data);
typedef gboolean (* GtkTreeViewDraggableFunc) (GtkTreeView *tree_view, typedef gboolean (* GtkTreeViewDraggableFunc) (GtkTreeView *tree_view,
GdkDragContext *context, GdkDragContext *context,
GtkTreePath *path, GtkTreePath *path,
gpointer user_data); gpointer user_data);
typedef void (* GtkTreeViewMappingFunc) (GtkTreeView *tree_view, typedef void (* GtkTreeViewMappingFunc) (GtkTreeView *tree_view,
GtkTreePath *path, GtkTreePath *path,
gpointer user_data); gpointer user_data);
typedef gboolean (* GtkTreeViewDroppableFunc) (GtkTreeView *tree_view,
GdkDragContext *context,
GtkTreePath *path,
GtkTreeViewDropPosition *pos,
gpointer user_data);
/* Creators */
GtkType gtk_tree_view_get_type (void); GtkType gtk_tree_view_get_type (void);
GtkWidget *gtk_tree_view_new (void); GtkWidget *gtk_tree_view_new (void);
GtkWidget *gtk_tree_view_new_with_model (GtkTreeModel *model); GtkWidget *gtk_tree_view_new_with_model (GtkTreeModel *model);
GtkTreeModel *gtk_tree_view_get_model (GtkTreeView *tree_view);
void gtk_tree_view_set_model (GtkTreeView *tree_view,
GtkTreeModel *model);
GtkTreeSelection *gtk_tree_view_get_selection (GtkTreeView *tree_view);
GtkAdjustment *gtk_tree_view_get_hadjustment (GtkTreeView *tree_view);
void gtk_tree_view_set_hadjustment (GtkTreeView *tree_view,
GtkAdjustment *adjustment);
GtkAdjustment *gtk_tree_view_get_vadjustment (GtkTreeView *tree_view);
void gtk_tree_view_set_vadjustment (GtkTreeView *tree_view,
GtkAdjustment *adjustment);
gboolean gtk_tree_view_get_headers_visible (GtkTreeView *tree_view);
void gtk_tree_view_set_headers_visible (GtkTreeView *tree_view,
gboolean headers_visible);
void gtk_tree_view_columns_autosize (GtkTreeView *tree_view);
void gtk_tree_view_set_headers_clickable (GtkTreeView *tree_view,
gboolean setting);
gint gtk_tree_view_append_column (GtkTreeView *tree_view,
GtkTreeViewColumn *column);
gint gtk_tree_view_remove_column (GtkTreeView *tree_view,
GtkTreeViewColumn *column);
gint gtk_tree_view_insert_column (GtkTreeView *tree_view,
GtkTreeViewColumn *column,
gint position);
gint gtk_tree_view_insert_column_with_attributes (GtkTreeView *tree_view,
gint position,
gchar *title,
GtkCellRenderer *cell,
...);
void gtk_tree_view_move_column (GtkTreeView *tree_view,
GtkTreeViewColumn *column,
GtkTreeViewColumn *base_column,
gint side);
GtkTreeViewColumn *gtk_tree_view_get_column (GtkTreeView *tree_view,
gint n);
void gtk_tree_view_set_expander_column (GtkTreeView *tree_view,
gint col);
gint gtk_tree_view_get_expander_column (GtkTreeView *tree_view);
/* Accessors */
GtkTreeModel *gtk_tree_view_get_model (GtkTreeView *tree_view);
void gtk_tree_view_set_model (GtkTreeView *tree_view,
GtkTreeModel *model);
GtkTreeSelection *gtk_tree_view_get_selection (GtkTreeView *tree_view);
GtkAdjustment *gtk_tree_view_get_hadjustment (GtkTreeView *tree_view);
void gtk_tree_view_set_hadjustment (GtkTreeView *tree_view,
GtkAdjustment *adjustment);
GtkAdjustment *gtk_tree_view_get_vadjustment (GtkTreeView *tree_view);
void gtk_tree_view_set_vadjustment (GtkTreeView *tree_view,
GtkAdjustment *adjustment);
gboolean gtk_tree_view_get_headers_visible (GtkTreeView *tree_view);
void gtk_tree_view_set_headers_visible (GtkTreeView *tree_view,
gboolean headers_visible);
void gtk_tree_view_columns_autosize (GtkTreeView *tree_view);
void gtk_tree_view_set_headers_clickable (GtkTreeView *tree_view,
gboolean setting);
void gtk_tree_view_set_rules_hint (GtkTreeView *tree_view,
gboolean setting);
gboolean gtk_tree_view_get_rules_hint (GtkTreeView *tree_view);
/* Column funtions */
gint gtk_tree_view_append_column (GtkTreeView *tree_view,
GtkTreeViewColumn *column);
gint gtk_tree_view_remove_column (GtkTreeView *tree_view,
GtkTreeViewColumn *column);
gint gtk_tree_view_insert_column (GtkTreeView *tree_view,
GtkTreeViewColumn *column,
gint position);
gint gtk_tree_view_insert_column_with_attributes (GtkTreeView *tree_view,
gint position,
gchar *title,
GtkCellRenderer *cell,
...);
GtkTreeViewColumn *gtk_tree_view_get_column (GtkTreeView *tree_view,
gint n);
void gtk_tree_view_move_column (GtkTreeView *tree_view,
GtkTreeViewColumn *column,
GtkTreeViewColumn *base_column,
gint left);
void gtk_tree_view_set_expander_column (GtkTreeView *tree_view,
gint col);
gint gtk_tree_view_get_expander_column (GtkTreeView *tree_view);
/* Actions */ /* Actions */
void gtk_tree_view_scroll_to_point (GtkTreeView *tree_view, void gtk_tree_view_scroll_to_point (GtkTreeView *tree_view,
gint tree_x, gint tree_x,
gint tree_y); gint tree_y);
void gtk_tree_view_scroll_to_cell (GtkTreeView *tree_view, void gtk_tree_view_scroll_to_cell (GtkTreeView *tree_view,
GtkTreePath *path, GtkTreePath *path,
GtkTreeViewColumn *column, GtkTreeViewColumn *column,
gfloat row_align, gfloat row_align,
gfloat col_align); gfloat col_align);
gboolean gtk_tree_view_get_path_at_pos (GtkTreeView *tree_view, void gtk_tree_view_row_activated (GtkTreeView *tree_view,
GdkWindow *window, GtkTreePath *path,
gint x, GtkTreeViewColumn *column);
gint y, void gtk_tree_view_expand_all (GtkTreeView *tree_view);
GtkTreePath **path, void gtk_tree_view_collapse_all (GtkTreeView *tree_view);
GtkTreeViewColumn **column, gboolean gtk_tree_view_expand_row (GtkTreeView *tree_view,
gint *cell_x, GtkTreePath *path,
gint *cell_y); gboolean open_all);
void gtk_tree_view_get_cell_area (GtkTreeView *tree_view, gboolean gtk_tree_view_collapse_row (GtkTreeView *tree_view,
GtkTreePath *path, GtkTreePath *path);
GtkTreeViewColumn *column, void gtk_tree_view_map_expanded_rows (GtkTreeView *tree_view,
GdkRectangle *rect); GtkTreeViewMappingFunc func,
void gtk_tree_view_get_background_area (GtkTreeView *tree_view, gpointer data);
GtkTreePath *path,
GtkTreeViewColumn *column,
GdkRectangle *rect);
void gtk_tree_view_expand_all (GtkTreeView *tree_view);
void gtk_tree_view_collapse_all (GtkTreeView *tree_view);
gboolean gtk_tree_view_expand_row (GtkTreeView *tree_view,
GtkTreePath *path,
gboolean open_all);
gboolean gtk_tree_view_collapse_row (GtkTreeView *tree_view,
GtkTreePath *path);
void gtk_tree_view_row_activated (GtkTreeView *tree_view,
GtkTreePath *path,
GtkTreeViewColumn *column);
void gtk_tree_view_map_expanded_rows (GtkTreeView *tree_view,
GtkTreeViewMappingFunc func,
gpointer data);
void gtk_tree_view_get_visible_rect (GtkTreeView *tree_view,
GdkRectangle *visible_rect);
void gtk_tree_view_widget_to_tree_coords (GtkTreeView *tree_view,
gint wx,
gint wy,
gint *tx,
gint *ty);
void gtk_tree_view_tree_to_widget_coords (GtkTreeView *tree_view,
gint tx,
gint ty,
gint *wx,
gint *wy);
void gtk_tree_view_set_rules_hint (GtkTreeView *tree_view,
gboolean setting);
gboolean gtk_tree_view_get_rules_hint (GtkTreeView *tree_view);
/* Layout information */
gboolean gtk_tree_view_get_path_at_pos (GtkTreeView *tree_view,
GdkWindow *window,
gint x,
gint y,
GtkTreePath **path,
GtkTreeViewColumn **column,
gint *cell_x,
gint *cell_y);
void gtk_tree_view_get_cell_area (GtkTreeView *tree_view,
GtkTreePath *path,
GtkTreeViewColumn *column,
GdkRectangle *rect);
void gtk_tree_view_get_background_area (GtkTreeView *tree_view,
GtkTreePath *path,
GtkTreeViewColumn *column,
GdkRectangle *rect);
void gtk_tree_view_get_visible_rect (GtkTreeView *tree_view,
GdkRectangle *visible_rect);
void gtk_tree_view_widget_to_tree_coords (GtkTreeView *tree_view,
gint wx,
gint wy,
gint *tx,
gint *ty);
void gtk_tree_view_tree_to_widget_coords (GtkTreeView *tree_view,
gint tx,
gint ty,
gint *wx,
gint *wy);
/* Drag-and-Drop support */ /* Drag-and-Drop support */
/* this func can change "pos" if it likes, in addition to returning void gtk_tree_view_set_rows_drag_source (GtkTreeView *tree_view,
* true/false for whether a drop is possible GdkModifierType start_button_mask,
*/ const GtkTargetEntry *targets,
typedef gboolean (* GtkTreeViewDroppableFunc) (GtkTreeView *tree_view, gint n_targets,
GdkDragContext *context, GdkDragAction actions,
GtkTreePath *path, GtkTreeViewDraggableFunc row_draggable_func,
GtkTreeViewDropPosition *pos, gpointer user_data);
gpointer user_data); void gtk_tree_view_set_rows_drag_dest (GtkTreeView *tree_view,
const GtkTargetEntry *targets,
void gtk_tree_view_set_rows_drag_source (GtkTreeView *tree_view, gint n_targets,
GdkModifierType start_button_mask, GdkDragAction actions,
const GtkTargetEntry *targets, GtkTreeViewDroppableFunc location_droppable_func,
gint n_targets, gpointer user_data);
GdkDragAction actions, void gtk_tree_view_unset_rows_drag_source (GtkTreeView *tree_view);
GtkTreeViewDraggableFunc row_draggable_func, void gtk_tree_view_unset_rows_drag_dest (GtkTreeView *tree_view);
gpointer user_data);
void gtk_tree_view_set_rows_drag_dest (GtkTreeView *tree_view,
const GtkTargetEntry *targets,
gint n_targets,
GdkDragAction actions,
GtkTreeViewDroppableFunc location_droppable_func,
gpointer user_data);
void gtk_tree_view_unset_rows_drag_source (GtkTreeView *tree_view);
void gtk_tree_view_unset_rows_drag_dest (GtkTreeView *tree_view);
/* These are useful to implement your own custom stuff. */ /* These are useful to implement your own custom stuff. */
void gtk_tree_view_set_drag_dest_row (GtkTreeView *tree_view, void gtk_tree_view_set_drag_dest_row (GtkTreeView *tree_view,
GtkTreePath *path, GtkTreePath *path,
GtkTreeViewDropPosition pos); GtkTreeViewDropPosition pos);
void gtk_tree_view_get_drag_dest_row (GtkTreeView *tree_view, void gtk_tree_view_get_drag_dest_row (GtkTreeView *tree_view,
GtkTreePath **path, GtkTreePath **path,
GtkTreeViewDropPosition *pos); GtkTreeViewDropPosition *pos);
gboolean gtk_tree_view_get_dest_row_at_pos (GtkTreeView *tree_view, gboolean gtk_tree_view_get_dest_row_at_pos (GtkTreeView *tree_view,
gint drag_x, gint drag_x,
gint drag_y, gint drag_y,
GtkTreePath **path, GtkTreePath **path,
GtkTreeViewDropPosition *pos); GtkTreeViewDropPosition *pos);
GdkPixmap* gtk_tree_view_create_row_drag_icon (GtkTreeView *tree_view, GdkPixmap *gtk_tree_view_create_row_drag_icon (GtkTreeView *tree_view,
GtkTreePath *path); GtkTreePath *path);
#ifdef __cplusplus #ifdef __cplusplus
} }