forked from AuroraMiddleware/gtk
API: gtk_cell_renderer_render_cairo() => gtk_cell_renderer_render()
This commit is contained in:
parent
ec6e97be4d
commit
1142c8bf18
@ -612,7 +612,7 @@ gtk_cell_renderer_get_size (GtkCellRenderer *cell,
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_cell_renderer_render_cairo:
|
||||
* gtk_cell_renderer_render:
|
||||
* @cell: a #GtkCellRenderer
|
||||
* @cr: a cairo context to draw to
|
||||
* @widget: the widget owning @window
|
||||
@ -630,12 +630,12 @@ gtk_cell_renderer_get_size (GtkCellRenderer *cell,
|
||||
* @window.
|
||||
**/
|
||||
void
|
||||
gtk_cell_renderer_render_cairo (GtkCellRenderer *cell,
|
||||
cairo_t *cr,
|
||||
GtkWidget *widget,
|
||||
const GdkRectangle *background_area,
|
||||
const GdkRectangle *cell_area,
|
||||
GtkCellRendererState flags)
|
||||
gtk_cell_renderer_render (GtkCellRenderer *cell,
|
||||
cairo_t *cr,
|
||||
GtkWidget *widget,
|
||||
const GdkRectangle *background_area,
|
||||
const GdkRectangle *cell_area,
|
||||
GtkCellRendererState flags)
|
||||
{
|
||||
gboolean selected = FALSE;
|
||||
GtkCellRendererPrivate *priv = cell->priv;
|
||||
|
@ -119,7 +119,7 @@ void gtk_cell_renderer_get_size (GtkCellRenderer *cell,
|
||||
gint *width,
|
||||
gint *height);
|
||||
#endif
|
||||
void gtk_cell_renderer_render_cairo (GtkCellRenderer *cell,
|
||||
void gtk_cell_renderer_render (GtkCellRenderer *cell,
|
||||
cairo_t *cr,
|
||||
GtkWidget *widget,
|
||||
const GdkRectangle *background_area,
|
||||
|
@ -489,11 +489,11 @@ gtk_cell_view_draw (GtkWidget *widget,
|
||||
(packing == GTK_PACK_END && !rtl))
|
||||
area.x -= area.width;
|
||||
|
||||
gtk_cell_renderer_render_cairo (info->cell,
|
||||
cr,
|
||||
widget,
|
||||
/* FIXME! */
|
||||
&area, &area, state);
|
||||
gtk_cell_renderer_render (info->cell,
|
||||
cr,
|
||||
widget,
|
||||
/* FIXME! */
|
||||
&area, &area, state);
|
||||
|
||||
if ((packing == GTK_PACK_START && !rtl) ||
|
||||
(packing == GTK_PACK_END && rtl))
|
||||
|
@ -3239,10 +3239,10 @@ gtk_icon_view_paint_item (GtkIconView *icon_view,
|
||||
cell_area.x = x - item->x + cell_area.x;
|
||||
cell_area.y = y - item->y + cell_area.y;
|
||||
|
||||
gtk_cell_renderer_render_cairo (info->cell,
|
||||
cr,
|
||||
widget,
|
||||
&cell_area, &cell_area, flags);
|
||||
gtk_cell_renderer_render (info->cell,
|
||||
cr,
|
||||
widget,
|
||||
&cell_area, &cell_area, flags);
|
||||
}
|
||||
|
||||
if (draw_focus &&
|
||||
|
@ -2825,12 +2825,12 @@ gtk_tree_view_column_cell_process_action (GtkTreeViewColumn *tree_column,
|
||||
/* RENDER */
|
||||
if (action == CELL_ACTION_RENDER)
|
||||
{
|
||||
gtk_cell_renderer_render_cairo (info->cell,
|
||||
cr,
|
||||
tree_column->tree_view,
|
||||
&rtl_background_area,
|
||||
&rtl_cell_area,
|
||||
flags);
|
||||
gtk_cell_renderer_render (info->cell,
|
||||
cr,
|
||||
tree_column->tree_view,
|
||||
&rtl_background_area,
|
||||
&rtl_cell_area,
|
||||
flags);
|
||||
}
|
||||
/* FOCUS */
|
||||
else if (action == CELL_ACTION_FOCUS)
|
||||
@ -2993,12 +2993,12 @@ gtk_tree_view_column_cell_process_action (GtkTreeViewColumn *tree_column,
|
||||
/* RENDER */
|
||||
if (action == CELL_ACTION_RENDER)
|
||||
{
|
||||
gtk_cell_renderer_render_cairo (info->cell,
|
||||
cr,
|
||||
tree_column->tree_view,
|
||||
&rtl_background_area,
|
||||
&rtl_cell_area,
|
||||
flags);
|
||||
gtk_cell_renderer_render (info->cell,
|
||||
cr,
|
||||
tree_column->tree_view,
|
||||
&rtl_background_area,
|
||||
&rtl_cell_area,
|
||||
flags);
|
||||
}
|
||||
/* FOCUS */
|
||||
else if (action == CELL_ACTION_FOCUS)
|
||||
|
Loading…
Reference in New Issue
Block a user