[gtk+] cell-renderer: add the CELL style class to the editing widget
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] cell-renderer: add the CELL style class to the editing widget
- Date: Tue, 31 Jan 2012 15:25:19 +0000 (UTC)
commit a5b189093b253657ffad766eeff65da8ec2b178d
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Jan 30 17:52:44 2012 -0500
cell-renderer: add the CELL style class to the editing widget
When we create an editing widget, add the CELL style class to it, for
identification by the themes.
gtk/gtkcellrenderer.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkcellrenderer.c b/gtk/gtkcellrenderer.c
index d701b74..3e95294 100644
--- a/gtk/gtkcellrenderer.c
+++ b/gtk/gtkcellrenderer.c
@@ -865,6 +865,8 @@ gtk_cell_renderer_start_editing (GtkCellRenderer *cell,
(GdkRectangle *) background_area,
(GdkRectangle *) cell_area,
flags);
+ gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (editable)),
+ GTK_STYLE_CLASS_CELL);
g_signal_emit (cell,
cell_renderer_signals[EDITING_STARTED], 0,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]