diff options
author | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2010-11-29 16:03:53 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2010-11-29 16:03:53 +0900 |
commit | 87892261e0637040714239cd2298d289a1a28ddb (patch) | |
tree | 18528dd2eaab15c51bae90f943172280d68f580d /gtk/gtkcellarea.c | |
parent | 865eb60d2177d7847e8f32b2da6192825a24b5c9 (diff) | |
download | gtk+-87892261e0637040714239cd2298d289a1a28ddb.tar.gz |
Make editable widget fill the entire inner area of the edited cell
instead of just the aligned focus area to match previous behaviour
Diffstat (limited to 'gtk/gtkcellarea.c')
-rw-r--r-- | gtk/gtkcellarea.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/gtk/gtkcellarea.c b/gtk/gtkcellarea.c index fa9bf2031b..2b07e87048 100644 --- a/gtk/gtkcellarea.c +++ b/gtk/gtkcellarea.c @@ -2869,18 +2869,14 @@ gtk_cell_area_activate_cell (GtkCellArea *area, if (editable_widget != NULL) { - GdkRectangle edit_area; - g_return_val_if_fail (GTK_IS_CELL_EDITABLE (editable_widget), FALSE); gtk_cell_area_set_edited_cell (area, renderer); gtk_cell_area_set_edit_widget (area, editable_widget); - - gtk_cell_renderer_get_aligned_area (renderer, widget, flags, &inner_area, &edit_area); /* Signal that editing started so that callers can get * a handle on the editable_widget */ - gtk_cell_area_add_editable (area, priv->focus_cell, editable_widget, &edit_area); + gtk_cell_area_add_editable (area, priv->focus_cell, editable_widget, &inner_area); /* If the signal was successfully handled start the editing */ if (gtk_widget_get_parent (GTK_WIDGET (editable_widget))) |