summaryrefslogtreecommitdiff
path: root/gtk/gtkcellrenderer.c
diff options
context:
space:
mode:
authorManish Singh <yosh@gimp.org>2002-10-07 01:38:40 +0000
committerManish Singh <yosh@src.gnome.org>2002-10-07 01:38:40 +0000
commit28def5e4ad3ad4998e222f4975fc0e63e89aad65 (patch)
treecaf4ab4725b659bec940dca3f6955860621dc066 /gtk/gtkcellrenderer.c
parent8b6a832f26a644999ed965ebbb23d0a8d5d8dc3f (diff)
downloadgtk+-28def5e4ad3ad4998e222f4975fc0e63e89aad65.tar.gz
deprecation cleanup
Sun Oct 6 18:32:11 2002 Manish Singh <yosh@gimp.org> * gtk/gtkcelleditable.c gtk/gtkcellrenderer.[ch] gtk/gtkcellrendererpixbuf.[ch] gtk/gtkcellrenderertext.[ch] gtk/gtkcellrenderertoggle.[ch]: deprecation cleanup
Diffstat (limited to 'gtk/gtkcellrenderer.c')
-rw-r--r--gtk/gtkcellrenderer.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/gtk/gtkcellrenderer.c b/gtk/gtkcellrenderer.c
index 470dfd583f..0efcef43a6 100644
--- a/gtk/gtkcellrenderer.c
+++ b/gtk/gtkcellrenderer.c
@@ -59,10 +59,10 @@ struct _GtkCellRendererInfo
GdkColor cell_background;
};
-GtkType
+GType
gtk_cell_renderer_get_type (void)
{
- static GtkType cell_type = 0;
+ static GType cell_type = 0;
if (!cell_type)
{
@@ -75,9 +75,9 @@ gtk_cell_renderer_get_type (void)
NULL, /* class_finalize */
NULL, /* class_data */
sizeof (GtkCellRenderer),
- 0, /* n_preallocs */
+ 0, /* n_preallocs */
(GInstanceInitFunc) gtk_cell_renderer_init,
- NULL, /* value_table */
+ NULL, /* value_table */
};
cell_type = g_type_register_static (GTK_TYPE_OBJECT, "GtkCellRenderer",
@@ -444,7 +444,13 @@ gtk_cell_renderer_get_size (GtkCellRenderer *cell,
*height = cell->height;
}
- GTK_CELL_RENDERER_GET_CLASS (cell)->get_size (cell, widget, cell_area, x_offset, y_offset, real_width, real_height);
+ GTK_CELL_RENDERER_GET_CLASS (cell)->get_size (cell,
+ widget,
+ cell_area,
+ x_offset,
+ y_offset,
+ real_width,
+ real_height);
}
/**
@@ -497,7 +503,7 @@ gtk_cell_renderer_render (GtkCellRenderer *cell,
gdk_draw_rectangle (window, gc, TRUE,
background_area->x, background_area->y,
background_area->width, background_area->height);
- g_object_unref (G_OBJECT (gc));
+ g_object_unref (gc);
}
GTK_CELL_RENDERER_GET_CLASS (cell)->render (cell,