summaryrefslogtreecommitdiff
path: root/gtk/gtkcellareabox.c
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.van.berkom@gmail.com>2010-11-29 16:49:34 +0900
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2010-11-29 16:49:34 +0900
commit5729d2552b685bde855993d46216da89daa23763 (patch)
tree72d452d1dc32c726f5bf171e161ffcd631811736 /gtk/gtkcellareabox.c
parent626f27f7ed90bef4280ee0248a4fb565b7d0012f (diff)
downloadgtk+-5729d2552b685bde855993d46216da89daa23763.tar.gz
Fix GtkCellAreaBox to not paint a focus rectangle while a cell is currently being edited.
Diffstat (limited to 'gtk/gtkcellareabox.c')
-rw-r--r--gtk/gtkcellareabox.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/gtkcellareabox.c b/gtk/gtkcellareabox.c
index 9d4bcbdae6..0ded281858 100644
--- a/gtk/gtkcellareabox.c
+++ b/gtk/gtkcellareabox.c
@@ -1131,6 +1131,12 @@ gtk_cell_area_box_render (GtkCellArea *area,
gboolean first_focus_cell = TRUE;
gboolean focus_all = FALSE;
+ /* Make sure we dont paint a focus rectangle while there
+ * is an editable widget in play
+ */
+ if (gtk_cell_area_get_edited_cell (area))
+ paint_focus = FALSE;
+
if (flags & GTK_CELL_RENDERER_FOCUSED)
{
focus_cell = gtk_cell_area_get_focus_cell (area);