Commit a362eecc authored by Michael Natterer's avatar Michael Natterer Committed by Michael Natterer

gtk/gtkbutton.h gtk/gtkcellrenderer.h gtk/gtkimcontext.h gtk/gtkstyle.h

2008-01-25  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkbutton.h
	* gtk/gtkcellrenderer.h
	* gtk/gtkimcontext.h
	* gtk/gtkstyle.h
	* gtk/gtktoolbar.h
	* gtk/gtktooltip.h
	* gtk/gtktreeprivate.h
	* gtk/gtktreeviewcolumn.h
	* gtk/gtkwidget.h: add const to constant structs which are passed
	into GTK+. Also add some forgotten const for const strings.

	* gtk/gtkbutton.c
	* gtk/gtkcellrenderer.c
	* gtk/gtkimcontext.c
	* gtk/gtkstyle.c
	* gtk/gtktoolbar.c
	* gtk/gtktooltip.c
	* gtk/gtktreeview.c
	* gtk/gtktreeviewcolumn.c
	* gtk/gtkwidget.c: changed accordingly.


svn path=/trunk/; revision=19399
parent 594b7102
2008-01-25 Michael Natterer <mitch@imendio.com>
* gtk/gtkbutton.h
* gtk/gtkcellrenderer.h
* gtk/gtkimcontext.h
* gtk/gtkstyle.h
* gtk/gtktoolbar.h
* gtk/gtktooltip.h
* gtk/gtktreeprivate.h
* gtk/gtktreeviewcolumn.h
* gtk/gtkwidget.h: add const to constant structs which are passed
into GTK+. Also add some forgotten const for const strings.
* gtk/gtkbutton.c
* gtk/gtkcellrenderer.c
* gtk/gtkimcontext.c
* gtk/gtkstyle.c
* gtk/gtktoolbar.c
* gtk/gtktooltip.c
* gtk/gtktreeview.c
* gtk/gtktreeviewcolumn.c
* gtk/gtkwidget.c: changed accordingly.
2008-01-25 Sven Herzberg <sven@imendio.com> 2008-01-25 Sven Herzberg <sven@imendio.com>
Reviewed by Johan Dahlin. Reviewed by Johan Dahlin.
......
...@@ -1217,12 +1217,12 @@ gtk_button_size_allocate (GtkWidget *widget, ...@@ -1217,12 +1217,12 @@ gtk_button_size_allocate (GtkWidget *widget,
} }
void void
_gtk_button_paint (GtkButton *button, _gtk_button_paint (GtkButton *button,
GdkRectangle *area, const GdkRectangle *area,
GtkStateType state_type, GtkStateType state_type,
GtkShadowType shadow_type, GtkShadowType shadow_type,
const gchar *main_detail, const gchar *main_detail,
const gchar *default_detail) const gchar *default_detail)
{ {
GtkWidget *widget; GtkWidget *widget;
gint width, height; gint width, height;
......
...@@ -125,14 +125,14 @@ void gtk_button_set_image_position (GtkButton *button, ...@@ -125,14 +125,14 @@ void gtk_button_set_image_position (GtkButton *button,
GtkPositionType position); GtkPositionType position);
GtkPositionType gtk_button_get_image_position (GtkButton *button); GtkPositionType gtk_button_get_image_position (GtkButton *button);
void _gtk_button_set_depressed (GtkButton *button, void _gtk_button_set_depressed (GtkButton *button,
gboolean depressed); gboolean depressed);
void _gtk_button_paint (GtkButton *button, void _gtk_button_paint (GtkButton *button,
GdkRectangle *area, const GdkRectangle *area,
GtkStateType state_type, GtkStateType state_type,
GtkShadowType shadow_type, GtkShadowType shadow_type,
const gchar *main_detail, const gchar *main_detail,
const gchar *default_detail); const gchar *default_detail);
G_END_DECLS G_END_DECLS
......
...@@ -479,13 +479,13 @@ set_cell_bg_color (GtkCellRenderer *cell, ...@@ -479,13 +479,13 @@ set_cell_bg_color (GtkCellRenderer *cell,
* in @x_offset and @y_offset are inclusive of the xpad and ypad properties. * in @x_offset and @y_offset are inclusive of the xpad and ypad properties.
**/ **/
void void
gtk_cell_renderer_get_size (GtkCellRenderer *cell, gtk_cell_renderer_get_size (GtkCellRenderer *cell,
GtkWidget *widget, GtkWidget *widget,
GdkRectangle *cell_area, const GdkRectangle *cell_area,
gint *x_offset, gint *x_offset,
gint *y_offset, gint *y_offset,
gint *width, gint *width,
gint *height) gint *height)
{ {
gint *real_width = width; gint *real_width = width;
gint *real_height = height; gint *real_height = height;
...@@ -506,7 +506,7 @@ gtk_cell_renderer_get_size (GtkCellRenderer *cell, ...@@ -506,7 +506,7 @@ gtk_cell_renderer_get_size (GtkCellRenderer *cell,
GTK_CELL_RENDERER_GET_CLASS (cell)->get_size (cell, GTK_CELL_RENDERER_GET_CLASS (cell)->get_size (cell,
widget, widget,
cell_area, (GdkRectangle *) cell_area,
x_offset, x_offset,
y_offset, y_offset,
real_width, real_width,
...@@ -533,13 +533,13 @@ gtk_cell_renderer_get_size (GtkCellRenderer *cell, ...@@ -533,13 +533,13 @@ gtk_cell_renderer_get_size (GtkCellRenderer *cell,
* @window. @expose_area is a clip rectangle. * @window. @expose_area is a clip rectangle.
**/ **/
void void
gtk_cell_renderer_render (GtkCellRenderer *cell, gtk_cell_renderer_render (GtkCellRenderer *cell,
GdkWindow *window, GdkWindow *window,
GtkWidget *widget, GtkWidget *widget,
GdkRectangle *background_area, const GdkRectangle *background_area,
GdkRectangle *cell_area, const GdkRectangle *cell_area,
GdkRectangle *expose_area, const GdkRectangle *expose_area,
GtkCellRendererState flags) GtkCellRendererState flags)
{ {
gboolean selected = FALSE; gboolean selected = FALSE;
GtkCellRendererPrivate *priv = GTK_CELL_RENDERER_GET_PRIVATE (cell); GtkCellRendererPrivate *priv = GTK_CELL_RENDERER_GET_PRIVATE (cell);
...@@ -563,9 +563,9 @@ gtk_cell_renderer_render (GtkCellRenderer *cell, ...@@ -563,9 +563,9 @@ gtk_cell_renderer_render (GtkCellRenderer *cell,
GTK_CELL_RENDERER_GET_CLASS (cell)->render (cell, GTK_CELL_RENDERER_GET_CLASS (cell)->render (cell,
window, window,
widget, widget,
background_area, (GdkRectangle *) background_area,
cell_area, (GdkRectangle *) cell_area,
expose_area, (GdkRectangle *) expose_area,
flags); flags);
} }
...@@ -591,8 +591,8 @@ gtk_cell_renderer_activate (GtkCellRenderer *cell, ...@@ -591,8 +591,8 @@ gtk_cell_renderer_activate (GtkCellRenderer *cell,
GdkEvent *event, GdkEvent *event,
GtkWidget *widget, GtkWidget *widget,
const gchar *path, const gchar *path,
GdkRectangle *background_area, const GdkRectangle *background_area,
GdkRectangle *cell_area, const GdkRectangle *cell_area,
GtkCellRendererState flags) GtkCellRendererState flags)
{ {
g_return_val_if_fail (GTK_IS_CELL_RENDERER (cell), FALSE); g_return_val_if_fail (GTK_IS_CELL_RENDERER (cell), FALSE);
...@@ -607,8 +607,8 @@ gtk_cell_renderer_activate (GtkCellRenderer *cell, ...@@ -607,8 +607,8 @@ gtk_cell_renderer_activate (GtkCellRenderer *cell,
event, event,
widget, widget,
path, path,
background_area, (GdkRectangle *) background_area,
cell_area, (GdkRectangle *) cell_area,
flags); flags);
} }
...@@ -632,8 +632,8 @@ gtk_cell_renderer_start_editing (GtkCellRenderer *cell, ...@@ -632,8 +632,8 @@ gtk_cell_renderer_start_editing (GtkCellRenderer *cell,
GdkEvent *event, GdkEvent *event,
GtkWidget *widget, GtkWidget *widget,
const gchar *path, const gchar *path,
GdkRectangle *background_area, const GdkRectangle *background_area,
GdkRectangle *cell_area, const GdkRectangle *cell_area,
GtkCellRendererState flags) GtkCellRendererState flags)
{ {
...@@ -651,8 +651,8 @@ gtk_cell_renderer_start_editing (GtkCellRenderer *cell, ...@@ -651,8 +651,8 @@ gtk_cell_renderer_start_editing (GtkCellRenderer *cell,
event, event,
widget, widget,
path, path,
background_area, (GdkRectangle *) background_area,
cell_area, (GdkRectangle *) cell_area,
flags); flags);
g_signal_emit (cell, g_signal_emit (cell,
......
...@@ -124,7 +124,7 @@ GType gtk_cell_renderer_get_type (void) G_GNUC_CONST; ...@@ -124,7 +124,7 @@ GType gtk_cell_renderer_get_type (void) G_GNUC_CONST;
void gtk_cell_renderer_get_size (GtkCellRenderer *cell, void gtk_cell_renderer_get_size (GtkCellRenderer *cell,
GtkWidget *widget, GtkWidget *widget,
GdkRectangle *cell_area, const GdkRectangle *cell_area,
gint *x_offset, gint *x_offset,
gint *y_offset, gint *y_offset,
gint *width, gint *width,
...@@ -132,23 +132,23 @@ void gtk_cell_renderer_get_size (GtkCellRenderer *cell, ...@@ -132,23 +132,23 @@ void gtk_cell_renderer_get_size (GtkCellRenderer *cell,
void gtk_cell_renderer_render (GtkCellRenderer *cell, void gtk_cell_renderer_render (GtkCellRenderer *cell,
GdkWindow *window, GdkWindow *window,
GtkWidget *widget, GtkWidget *widget,
GdkRectangle *background_area, const GdkRectangle *background_area,
GdkRectangle *cell_area, const GdkRectangle *cell_area,
GdkRectangle *expose_area, const GdkRectangle *expose_area,
GtkCellRendererState flags); GtkCellRendererState flags);
gboolean gtk_cell_renderer_activate (GtkCellRenderer *cell, gboolean gtk_cell_renderer_activate (GtkCellRenderer *cell,
GdkEvent *event, GdkEvent *event,
GtkWidget *widget, GtkWidget *widget,
const gchar *path, const gchar *path,
GdkRectangle *background_area, const GdkRectangle *background_area,
GdkRectangle *cell_area, const GdkRectangle *cell_area,
GtkCellRendererState flags); GtkCellRendererState flags);
GtkCellEditable *gtk_cell_renderer_start_editing (GtkCellRenderer *cell, GtkCellEditable *gtk_cell_renderer_start_editing (GtkCellRenderer *cell,
GdkEvent *event, GdkEvent *event,
GtkWidget *widget, GtkWidget *widget,
const gchar *path, const gchar *path,
GdkRectangle *background_area, const GdkRectangle *background_area,
GdkRectangle *cell_area, const GdkRectangle *cell_area,
GtkCellRendererState flags); GtkCellRendererState flags);
void gtk_cell_renderer_set_fixed_size (GtkCellRenderer *cell, void gtk_cell_renderer_set_fixed_size (GtkCellRenderer *cell,
gint width, gint width,
......
...@@ -361,8 +361,8 @@ gtk_im_context_reset (GtkIMContext *context) ...@@ -361,8 +361,8 @@ gtk_im_context_reset (GtkIMContext *context)
* window. * window.
**/ **/
void void
gtk_im_context_set_cursor_location (GtkIMContext *context, gtk_im_context_set_cursor_location (GtkIMContext *context,
GdkRectangle *area) const GdkRectangle *area)
{ {
GtkIMContextClass *klass; GtkIMContextClass *klass;
...@@ -370,7 +370,7 @@ gtk_im_context_set_cursor_location (GtkIMContext *context, ...@@ -370,7 +370,7 @@ gtk_im_context_set_cursor_location (GtkIMContext *context,
klass = GTK_IM_CONTEXT_GET_CLASS (context); klass = GTK_IM_CONTEXT_GET_CLASS (context);
if (klass->set_cursor_location) if (klass->set_cursor_location)
klass->set_cursor_location (context, area); klass->set_cursor_location (context, (GdkRectangle *) area);
} }
/** /**
......
...@@ -94,31 +94,31 @@ struct _GtkIMContextClass ...@@ -94,31 +94,31 @@ struct _GtkIMContextClass
GType gtk_im_context_get_type (void) G_GNUC_CONST; GType gtk_im_context_get_type (void) G_GNUC_CONST;
void gtk_im_context_set_client_window (GtkIMContext *context, void gtk_im_context_set_client_window (GtkIMContext *context,
GdkWindow *window); GdkWindow *window);
void gtk_im_context_get_preedit_string (GtkIMContext *context, void gtk_im_context_get_preedit_string (GtkIMContext *context,
gchar **str, gchar **str,
PangoAttrList **attrs, PangoAttrList **attrs,
gint *cursor_pos); gint *cursor_pos);
gboolean gtk_im_context_filter_keypress (GtkIMContext *context, gboolean gtk_im_context_filter_keypress (GtkIMContext *context,
GdkEventKey *event); GdkEventKey *event);
void gtk_im_context_focus_in (GtkIMContext *context); void gtk_im_context_focus_in (GtkIMContext *context);
void gtk_im_context_focus_out (GtkIMContext *context); void gtk_im_context_focus_out (GtkIMContext *context);
void gtk_im_context_reset (GtkIMContext *context); void gtk_im_context_reset (GtkIMContext *context);
void gtk_im_context_set_cursor_location (GtkIMContext *context, void gtk_im_context_set_cursor_location (GtkIMContext *context,
GdkRectangle *area); const GdkRectangle *area);
void gtk_im_context_set_use_preedit (GtkIMContext *context, void gtk_im_context_set_use_preedit (GtkIMContext *context,
gboolean use_preedit); gboolean use_preedit);
void gtk_im_context_set_surrounding (GtkIMContext *context, void gtk_im_context_set_surrounding (GtkIMContext *context,
const gchar *text, const gchar *text,
gint len, gint len,
gint cursor_index); gint cursor_index);
gboolean gtk_im_context_get_surrounding (GtkIMContext *context, gboolean gtk_im_context_get_surrounding (GtkIMContext *context,
gchar **text, gchar **text,
gint *cursor_index); gint *cursor_index);
gboolean gtk_im_context_delete_surrounding (GtkIMContext *context, gboolean gtk_im_context_delete_surrounding (GtkIMContext *context,
gint offset, gint offset,
gint n_chars); gint n_chars);
G_END_DECLS G_END_DECLS
......
This diff is collapsed.
This diff is collapsed.
...@@ -4840,10 +4840,10 @@ _gtk_toolbar_get_default_space_size (void) ...@@ -4840,10 +4840,10 @@ _gtk_toolbar_get_default_space_size (void)
} }
void void
_gtk_toolbar_paint_space_line (GtkWidget *widget, _gtk_toolbar_paint_space_line (GtkWidget *widget,
GtkToolbar *toolbar, GtkToolbar *toolbar,
GdkRectangle *area, const GdkRectangle *area,
GtkAllocation *allocation) const GtkAllocation *allocation)
{ {
const double start_fraction = (SPACE_LINE_START / SPACE_LINE_DIVISION); const double start_fraction = (SPACE_LINE_START / SPACE_LINE_DIVISION);
const double end_fraction = (SPACE_LINE_END / SPACE_LINE_DIVISION); const double end_fraction = (SPACE_LINE_END / SPACE_LINE_DIVISION);
......
...@@ -169,11 +169,11 @@ void gtk_toolbar_set_drop_highlight_item (GtkToolbar *toolbar, ...@@ -169,11 +169,11 @@ void gtk_toolbar_set_drop_highlight_item (GtkToolbar *toolbar,
gint index_); gint index_);
/* internal functions */ /* internal functions */
gchar * _gtk_toolbar_elide_underscores (const gchar *original); gchar * _gtk_toolbar_elide_underscores (const gchar *original);
void _gtk_toolbar_paint_space_line (GtkWidget *widget, void _gtk_toolbar_paint_space_line (GtkWidget *widget,
GtkToolbar *toolbar, GtkToolbar *toolbar,
GdkRectangle *area, const GdkRectangle *area,
GtkAllocation *allocation); const GtkAllocation *allocation);
gint _gtk_toolbar_get_default_space_size (void); gint _gtk_toolbar_get_default_space_size (void);
......
...@@ -387,8 +387,8 @@ gtk_tooltip_set_custom (GtkTooltip *tooltip, ...@@ -387,8 +387,8 @@ gtk_tooltip_set_custom (GtkTooltip *tooltip,
* Since: 2.12 * Since: 2.12
*/ */
void void
gtk_tooltip_set_tip_area (GtkTooltip *tooltip, gtk_tooltip_set_tip_area (GtkTooltip *tooltip,
GdkRectangle *rect) const GdkRectangle *rect)
{ {
g_return_if_fail (GTK_IS_TOOLTIP (tooltip)); g_return_if_fail (GTK_IS_TOOLTIP (tooltip));
......
...@@ -33,32 +33,32 @@ G_BEGIN_DECLS ...@@ -33,32 +33,32 @@ G_BEGIN_DECLS
GType gtk_tooltip_get_type (void); GType gtk_tooltip_get_type (void);
void gtk_tooltip_set_markup (GtkTooltip *tooltip, void gtk_tooltip_set_markup (GtkTooltip *tooltip,
const gchar *markup); const gchar *markup);
void gtk_tooltip_set_text (GtkTooltip *tooltip, void gtk_tooltip_set_text (GtkTooltip *tooltip,
const gchar *text); const gchar *text);
void gtk_tooltip_set_icon (GtkTooltip *tooltip, void gtk_tooltip_set_icon (GtkTooltip *tooltip,
GdkPixbuf *pixbuf); GdkPixbuf *pixbuf);
void gtk_tooltip_set_icon_from_stock (GtkTooltip *tooltip, void gtk_tooltip_set_icon_from_stock (GtkTooltip *tooltip,
const gchar *stock_id, const gchar *stock_id,
GtkIconSize size); GtkIconSize size);
void gtk_tooltip_set_icon_from_icon_name (GtkTooltip *tooltip, void gtk_tooltip_set_icon_from_icon_name (GtkTooltip *tooltip,
const gchar *icon_name, const gchar *icon_name,
GtkIconSize size); GtkIconSize size);
void gtk_tooltip_set_custom (GtkTooltip *tooltip, void gtk_tooltip_set_custom (GtkTooltip *tooltip,
GtkWidget *custom_widget); GtkWidget *custom_widget);
void gtk_tooltip_set_tip_area (GtkTooltip *tooltip, void gtk_tooltip_set_tip_area (GtkTooltip *tooltip,
GdkRectangle *rect); const GdkRectangle *rect);
void gtk_tooltip_trigger_tooltip_query (GdkDisplay *display); void gtk_tooltip_trigger_tooltip_query (GdkDisplay *display);
void _gtk_tooltip_focus_in (GtkWidget *widget); void _gtk_tooltip_focus_in (GtkWidget *widget);
void _gtk_tooltip_focus_out (GtkWidget *widget); void _gtk_tooltip_focus_out (GtkWidget *widget);
void _gtk_tooltip_toggle_keyboard_mode (GtkWidget *widget); void _gtk_tooltip_toggle_keyboard_mode (GtkWidget *widget);
void _gtk_tooltip_handle_event (GdkEvent *event); void _gtk_tooltip_handle_event (GdkEvent *event);
void _gtk_tooltip_hide (GtkWidget *widget); void _gtk_tooltip_hide (GtkWidget *widget);
G_END_DECLS G_END_DECLS
......
...@@ -366,7 +366,7 @@ void _gtk_tree_view_child_move_resize (GtkTreeView *tree_v ...@@ -366,7 +366,7 @@ void _gtk_tree_view_child_move_resize (GtkTreeView *tree_v
void _gtk_tree_view_queue_draw_node (GtkTreeView *tree_view, void _gtk_tree_view_queue_draw_node (GtkTreeView *tree_view,
GtkRBTree *tree, GtkRBTree *tree,
GtkRBNode *node, GtkRBNode *node,
GdkRectangle *clip_rect); const GdkRectangle *clip_rect);
void _gtk_tree_view_column_realize_button (GtkTreeViewColumn *column); void _gtk_tree_view_column_realize_button (GtkTreeViewColumn *column);
void _gtk_tree_view_column_unrealize_button (GtkTreeViewColumn *column); void _gtk_tree_view_column_unrealize_button (GtkTreeViewColumn *column);
...@@ -383,8 +383,8 @@ gboolean _gtk_tree_view_column_cell_event (GtkTreeViewColumn *tree_column, ...@@ -383,8 +383,8 @@ gboolean _gtk_tree_view_column_cell_event (GtkTreeViewColumn *tree_column,
GtkCellEditable **editable_widget, GtkCellEditable **editable_widget,
GdkEvent *event, GdkEvent *event,
gchar *path_string, gchar *path_string,
GdkRectangle *background_area, const GdkRectangle *background_area,
GdkRectangle *cell_area, const GdkRectangle *cell_area,
guint flags); guint flags);
void _gtk_tree_view_column_start_editing (GtkTreeViewColumn *tree_column, void _gtk_tree_view_column_start_editing (GtkTreeViewColumn *tree_column,
GtkCellEditable *editable_widget); GtkCellEditable *editable_widget);
...@@ -407,28 +407,28 @@ gboolean _gtk_tree_selection_row_is_selectable (GtkTreeSelection *sele ...@@ -407,28 +407,28 @@ gboolean _gtk_tree_selection_row_is_selectable (GtkTreeSelection *sele
GtkRBNode *node, GtkRBNode *node,
GtkTreePath *path); GtkTreePath *path);
void _gtk_tree_view_column_cell_render (GtkTreeViewColumn *tree_column, void _gtk_tree_view_column_cell_render (GtkTreeViewColumn *tree_column,
GdkWindow *window, GdkWindow *window,
GdkRectangle *background_area, const GdkRectangle *background_area,
GdkRectangle *cell_area, const GdkRectangle *cell_area,
GdkRectangle *expose_area, const GdkRectangle *expose_area,
guint flags); guint flags);
void _gtk_tree_view_column_get_focus_area (GtkTreeViewColumn *tree_column, void _gtk_tree_view_column_get_focus_area (GtkTreeViewColumn *tree_column,
GdkRectangle *background_area, const GdkRectangle *background_area,
GdkRectangle *cell_area, const GdkRectangle *cell_area,
GdkRectangle *focus_area); GdkRectangle *focus_area);
gboolean _gtk_tree_view_column_cell_focus (GtkTreeViewColumn *tree_column, gboolean _gtk_tree_view_column_cell_focus (GtkTreeViewColumn *tree_column,
gint direction, gint direction,
gboolean left, gboolean left,
gboolean right); gboolean right);
void _gtk_tree_view_column_cell_draw_focus (GtkTreeViewColumn *tree_column, void _gtk_tree_view_column_cell_draw_focus (GtkTreeViewColumn *tree_column,
GdkWindow *window, GdkWindow *window,
GdkRectangle *background_area, const GdkRectangle *background_area,
GdkRectangle *cell_area, const GdkRectangle *cell_area,
GdkRectangle *expose_area, const GdkRectangle *expose_area,
guint flags); guint flags);
void _gtk_tree_view_column_cell_set_dirty (GtkTreeViewColumn *tree_column, void _gtk_tree_view_column_cell_set_dirty (GtkTreeViewColumn *tree_column,
gboolean install_handler); gboolean install_handler);
void _gtk_tree_view_column_get_neighbor_sizes (GtkTreeViewColumn *column, void _gtk_tree_view_column_get_neighbor_sizes (GtkTreeViewColumn *column,
GtkCellRenderer *cell, GtkCellRenderer *cell,
gint *left, gint *left,
......
...@@ -309,90 +309,90 @@ static void gtk_tree_view_top_row_to_dy (GtkTreeView *tree_view); ...@@ -309,90 +309,90 @@ static void gtk_tree_view_top_row_to_dy (GtkTreeView *tree_view);
static void invalidate_empty_focus (GtkTreeView *tree_view); static void invalidate_empty_focus (GtkTreeView *tree_view);
/* Internal functions */ /* Internal functions */
static gboolean gtk_tree_view_is_expander_column (GtkTreeView *tree_view, static gboolean gtk_tree_view_is_expander_column (GtkTreeView *tree_view,
GtkTreeViewColumn *column); GtkTreeViewColumn *column);
static void gtk_tree_view_add_move_binding (GtkBindingSet *binding_set, static void gtk_tree_view_add_move_binding (GtkBindingSet *binding_set,
guint keyval, guint keyval,
guint modmask, guint modmask,
gboolean add_shifted_binding, gboolean add_shifted_binding,
GtkMovementStep step, GtkMovementStep step,
gint count); gint count);
static gint gtk_tree_view_unref_and_check_selection_tree (GtkTreeView *tree_view, static gint gtk_tree_view_unref_and_check_selection_tree (GtkTreeView *tree_view,
GtkRBTree *tree); GtkRBTree *tree);
static void gtk_tree_view_queue_draw_path (GtkTreeView *tree_view, static void gtk_tree_view_queue_draw_path (GtkTreeView *tree_view,
GtkTreePath *path, GtkTreePath *path,
GdkRectangle *clip_rect); const GdkRectangle *clip_rect);
static void gtk_tree_view_queue_draw_arrow (GtkTreeView *tree_view, static void gtk_tree_view_queue_draw_arrow (GtkTreeView *tree_view,
GtkRBTree *tree, GtkRBTree *tree,
GtkRBNode *node, GtkRBNode *node,
GdkRectangle *clip_rect); const GdkRectangle *clip_rect);
static void gtk_tree_view_draw_arrow (GtkTreeView *tree_view, static void gtk_tree_view_draw_arrow (GtkTreeView *tree_view,
GtkRBTree *tree, GtkRBTree *tree,
GtkRBNode *node, GtkRBNode *node,
gint x, gint x,
gint y); gint y);
static void gtk_tree_view_get_arrow_xrange (GtkTreeView *tree_view, static void gtk_tree_view_get_arrow_xrange (GtkTreeView *tree_view,
GtkRBTree *tree, GtkRBTree *tree,
gint *x1, gint *x1,
gint *x2); gint *x2);
static gint gtk_tree_view_new_column_width (GtkTreeView *tree_view, static gint gtk_tree_view_new_column_width (GtkTreeView *tree_view,
gint i, gint i,
gint *x); gint *x);
static void gtk_tree_view_adjustment_changed (GtkAdjustment *adjustment, static void gtk_tree_view_adjustment_changed (GtkAdjustment *adjustment,
GtkTreeView *tree_view); GtkTreeView *tree_view);
static void gtk_tree_view_build_tree (GtkTreeView *tree_view, static void gtk_tree_view_build_tree (GtkTreeView *tree_view,
GtkRBTree *tree, GtkRBTree *tree,
GtkTreeIter *iter, GtkTreeIter *iter,
gint depth, gint depth,
gboolean recurse); gboolean recurse);
static gboolean gtk_tree_view_discover_dirty_iter (GtkTreeView *tree_view, static gboolean gtk_tree_view_discover_dirty_iter (GtkTreeView *tree_view,
GtkTreeIter *iter, GtkTreeIter *iter,
gint depth, gint depth,
gint *height, gint *height,
GtkRBNode *node); GtkRBNode *node);
static void gtk_tree_view_discover_dirty (GtkTreeView *tree_view, static void gtk_tree_view_discover_dirty (GtkTreeView *tree_view,
GtkRBTree *tree, GtkRBTree *tree,
GtkTreeIter *iter, GtkTreeIter *iter,
gint depth); gint depth);
static void gtk_tree_view_clamp_node_visible (GtkTreeView *tree_view, static void gtk_tree_view_clamp_node_visible (GtkTreeView *tree_view,
GtkRBTree *tree, GtkRBTree *tree,
GtkRBNode *node); GtkRBNode *node);
static void gtk_tree_view_clamp_column_visible (GtkTreeView *tree_view, static void gtk_tree_view_clamp_column_visible (GtkTreeView *tree_view,
GtkTreeViewColumn *column, GtkTreeViewColumn *column,
gboolean focus_to_cell); gboolean focus_to_cell);
static gboolean gtk_tree_view_maybe_begin_dragging_row (GtkTreeView *tree_view, static gboolean gtk_tree_view_maybe_begin_dragging_row (GtkTreeView *tree_view,
GdkEventMotion *event); GdkEventMotion *event);
static void gtk_tree_view_focus_to_cursor (GtkTreeView *tree_view); static void gtk_tree_view_focus_to_cursor (GtkTreeView *tree_view);
static void gtk_tree_view_move_cursor_up_down (GtkTreeView *tree_view, static void gtk_tree_view_move_cursor_up_down (GtkTreeView *tree_view,
gint count); gint count);
static void gtk_tree_view_move_cursor_page_up_down (GtkTreeView *tree_view, static void gtk_tree_view_move_cursor_page_up_down (GtkTreeView *tree_view,
gint count); gint count);
static void gtk_tree_view_move_cursor_left_right (GtkTreeView *tree_view, static void gtk_tree_view_move_cursor_left_right (GtkTreeView *tree_view,
gint count); gint count);
static void gtk_tree_view_move_cursor_start_end (GtkTreeView *tree_view, static void gtk_tree_view_move_cursor_start_end (GtkTreeView *tree_view,
gint count); gint count);
static gboolean gtk_tree_view_real_collapse_row (GtkTreeView *tree_view, static gboolean gtk_tree_view_real_collapse_row (GtkTreeView *tree_view,
GtkTreePath *path, GtkTreePath *path,
GtkRBTree *tree, GtkRBTree *tree,
GtkRBNode *node, GtkRBNode *node,
gboolean animate); gboolean animate);
static gboolean gtk_tree_view_real_expand_row (GtkTreeView *tree_view, static gboolean gtk_tree_view_real_expand_row (GtkTreeView *tree_view,
GtkTreePath *path, GtkTreePath *path,
GtkRBTree *tree, GtkRBTree *tree,
GtkRBNode *node, GtkRBNode *node,
gboolean open_all, gboolean open_all,
gboolean animate); gboolean animate);
static void gtk_tree_view_real_set_cursor (GtkTreeView *tree_view, static void gtk_tree_view_real_set_cursor (GtkTreeView *tree_view,
GtkTreePath *path, GtkTreePath *path,
gboolean clear_and_select, gboolean clear_and_select,
gboolean clamp_node); gboolean clamp_node);
static gboolean gtk_tree_view_has_special_cell (GtkTreeView *tree_view); static gboolean gtk_tree_view_has_special_cell (GtkTreeView *tree_view);
static void column_sizing_notify (GObject *object, static void column_sizing_notify (GObject *object,
GParamSpec *pspec, GParamSpec *pspec,
gpointer data); gpointer data);
static gboolean expand_collapse_timeout (gpointer data); static gboolean expand_collapse_timeout (gpointer data);
static gboolean do_expand_collapse (GtkTreeView *tree_view); static gboolean do_expand_collapse (GtkTreeView *tree_view);
static void gtk_tree_view_stop_rubber_band (GtkTreeView *tree_view); static void gtk_tree_view_stop_rubber_band (GtkTreeView *tree_view);
/* interactive search */ /* interactive search */
static void gtk_tree_view_ensure_interactive_directory (GtkTreeView *tree_view); static void gtk_tree_view_ensure_interactive_directory (GtkTreeView *tree_view);
...@@ -9423,10 +9423,10 @@ _gtk_tree_view_column_start_drag (GtkTreeView *tree_view,