]> Pileus Git - ~andy/gtk/commitdiff
cell-renderer: add the CELL style class to the editing widget
authorCosimo Cecchi <cosimoc@gnome.org>
Mon, 30 Jan 2012 22:52:44 +0000 (17:52 -0500)
committerCosimo Cecchi <cosimoc@gnome.org>
Tue, 31 Jan 2012 15:04:26 +0000 (10:04 -0500)
When we create an editing widget, add the CELL style class to it, for
identification by the themes.

gtk/gtkcellrenderer.c

index d701b74c4fbc096cb838039ba0adc885e4f2fe7b..3e9529489a9fcfd7d9430cf1701b6ee6bb337fb8 100644 (file)
@@ -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,