[ekiga] GmCellRendererBitext: added back the render method
- From: Julien Puydt <jpuydt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga] GmCellRendererBitext: added back the render method
- Date: Sun, 2 Mar 2014 13:28:29 +0000 (UTC)
commit 69e0de99533225f626edc8545f819eb381eeba25
Author: Julien Puydt <jpuydt free fr>
Date: Sun Mar 2 14:28:14 2014 +0100
GmCellRendererBitext: added back the render method
It fixes the problem where the same attributes are applied to all lines.
lib/gui/gm-cell-renderer-bitext.c | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/lib/gui/gm-cell-renderer-bitext.c b/lib/gui/gm-cell-renderer-bitext.c
index 8edfbc5..26ac7c4 100644
--- a/lib/gui/gm-cell-renderer-bitext.c
+++ b/lib/gui/gm-cell-renderer-bitext.c
@@ -129,6 +129,23 @@ gm_cell_renderer_bitext_get_preferred_height_for_width (GtkCellRenderer* cell,
parent->get_preferred_height_for_width (cell, widget, width, minimum_size, natural_size);
}
+static void
+gm_cell_renderer_bitext_render (GtkCellRenderer* cell,
+ cairo_t* cr,
+ GtkWidget* widget,
+ const GdkRectangle* background_area,
+ const GdkRectangle* cell_area,
+ GtkCellRendererState flags)
+{
+ GtkCellRendererClass* parent
+ = GTK_CELL_RENDERER_CLASS (gm_cell_renderer_bitext_parent_class);
+
+ gm_cell_renderer_bitext_update_style (GM_CELL_RENDERER_BITEXT (cell),
+ widget);
+
+ parent->render (cell, cr, widget, background_area, cell_area, flags);
+}
+
/* GObject code */
static void
@@ -231,6 +248,7 @@ gm_cell_renderer_bitext_class_init (GmCellRendererBitextClass* klass)
g_type_class_add_private (klass, sizeof (GmCellRendererBitextPrivate));
cell_class->get_preferred_height_for_width = gm_cell_renderer_bitext_get_preferred_height_for_width;
+ cell_class->render = gm_cell_renderer_bitext_render;
gobject_class->finalize = gm_cell_renderer_bitext_finalize;
gobject_class->get_property = gm_cell_renderer_bitext_get_property;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]