[gtk+/treeview-refactor] Make editable widget fill the entire inner area of the edited cell instead of just the aligned focus



commit 87892261e0637040714239cd2298d289a1a28ddb
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Mon Nov 29 16:03:53 2010 +0900

    Make editable widget fill the entire inner area of the edited cell
    instead of just the aligned focus area to match previous behaviour

 gtk/gtkcellarea.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkcellarea.c b/gtk/gtkcellarea.c
index fa9bf20..2b07e87 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)))



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]