Added tests to reflect proper treatment of background area.

CellAreaScaffold now also reflects how cell_area should be
passed to gtk_cell_area_activate() and gtk_cell_area_event()
and how the background area for gtk_cell_area_renderer() should
be created.
This commit is contained in:
Tristan Van Berkom
2010-11-12 21:55:28 +09:00
parent 47d55c4a4b
commit 51b75ef44b
4 changed files with 368 additions and 30 deletions

View File

@ -56,13 +56,23 @@ struct _CellAreaScaffoldClass
};
GType cell_area_scaffold_get_type (void) G_GNUC_CONST;
GtkWidget *cell_area_scaffold_new (void);
GType cell_area_scaffold_get_type (void) G_GNUC_CONST;
GtkWidget *cell_area_scaffold_new (void);
GtkCellArea *cell_area_scaffold_get_area (CellAreaScaffold *scaffold);
void cell_area_scaffold_set_model (CellAreaScaffold *scaffold,
GtkTreeModel *model);
GtkTreeModel *cell_area_scaffold_get_model (CellAreaScaffold *scaffold);
void cell_area_scaffold_set_row_spacing (CellAreaScaffold *scaffold,
gint spacing);
gint cell_area_scaffold_get_row_spacing (CellAreaScaffold *scaffold);
void cell_area_scaffold_set_indentation (CellAreaScaffold *scaffold,
gint indent);
gint cell_area_scaffold_get_indentation (CellAreaScaffold *scaffold);
GtkCellArea *cell_area_scaffold_get_area (CellAreaScaffold *scaffold);
void cell_area_scaffold_set_model (CellAreaScaffold *scaffold,
GtkTreeModel *model);
GtkTreeModel *cell_area_scaffold_get_model (CellAreaScaffold *scaffold);
G_END_DECLS