summaryrefslogtreecommitdiff
path: root/gtk/gtkcellview.h
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.van.berkom@gmail.com>2010-11-24 14:59:55 +0900
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2011-01-04 23:37:08 +0900
commite1ecd34ce1e57b874cdf5b097db2b5a0c518956e (patch)
treee8549de09782cdd115a569e44809480d871cce6f /gtk/gtkcellview.h
parentd48690c32cb96d111b8cf8ab866303e1600df6ba (diff)
downloadgtk+-e1ecd34ce1e57b874cdf5b097db2b5a0c518956e.tar.gz
Added "fit-model" and "draw-sensitive" properties to GtkCellView
- "fit-model" decides that the cellview should request space for the entire treemodel, this ensures the cell view displayed on a combo box will not spuriously change size when the selected item changes. - "draw-sensitive" forces cell area to render cells sensitive even if they are insensitive in the model.
Diffstat (limited to 'gtk/gtkcellview.h')
-rw-r--r--gtk/gtkcellview.h19
1 files changed, 14 insertions, 5 deletions
diff --git a/gtk/gtkcellview.h b/gtk/gtkcellview.h
index 7371082152..c3aa8a6fec 100644
--- a/gtk/gtkcellview.h
+++ b/gtk/gtkcellview.h
@@ -76,11 +76,25 @@ GtkTreeModel *gtk_cell_view_get_model (GtkCellView *cell_v
void gtk_cell_view_set_displayed_row (GtkCellView *cell_view,
GtkTreePath *path);
GtkTreePath *gtk_cell_view_get_displayed_row (GtkCellView *cell_view);
+void gtk_cell_view_set_background_color (GtkCellView *cell_view,
+ const GdkColor *color);
+void gtk_cell_view_set_background_rgba (GtkCellView *cell_view,
+ const GdkRGBA *rgba);
+gboolean gtk_cell_view_get_draw_sensitive (GtkCellView *cell_view);
+void gtk_cell_view_set_draw_sensitive (GtkCellView *cell_view,
+ gboolean draw_sensitive);
+gboolean gtk_cell_view_get_fit_model (GtkCellView *cell_view);
+void gtk_cell_view_set_fit_model (GtkCellView *cell_view,
+ gboolean fit_model);
+
#ifndef GTK_DISABLE_DEPRECATED
gboolean gtk_cell_view_get_size_of_row (GtkCellView *cell_view,
GtkTreePath *path,
GtkRequisition *requisition);
#endif
+
+
+/* XXX These 2 are going away... */
void gtk_cell_view_get_desired_width_of_row(GtkCellView *cell_view,
GtkTreePath *path,
gint *minimum_size,
@@ -91,11 +105,6 @@ void gtk_cell_view_get_desired_height_for_width_of_row(GtkCellView
gint *minimum_size,
gint *natural_size);
-void gtk_cell_view_set_background_color (GtkCellView *cell_view,
- const GdkColor *color);
-void gtk_cell_view_set_background_rgba (GtkCellView *cell_view,
- const GdkRGBA *rgba);
-
G_END_DECLS
#endif /* __GTK_CELL_VIEW_H__ */