diff options
author | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2010-11-06 16:14:38 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2010-11-08 11:31:03 +0900 |
commit | 0336838366389dd22d185324f827538638b1b37f (patch) | |
tree | a5cbb77f33c7accdacdb0629bc818a6d354d1efe /gtk/gtkcellarea.c | |
parent | 09e3d9d3aaafa1b756120afcd5d2a80f4ae13439 (diff) | |
download | gtk+-0336838366389dd22d185324f827538638b1b37f.tar.gz |
Implemented focus handling in GtkCellAreaBox
Now when the GtkCellAreaBox receives key events it cycles
the currently focused cell to the next focusable cell in the box
while observing the navigation direction, it then emits "focus-leave"
when hitting the boundries of the area.
Diffstat (limited to 'gtk/gtkcellarea.c')
-rw-r--r-- | gtk/gtkcellarea.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gtk/gtkcellarea.c b/gtk/gtkcellarea.c index d997af06a3..4032369131 100644 --- a/gtk/gtkcellarea.c +++ b/gtk/gtkcellarea.c @@ -1725,8 +1725,6 @@ gtk_cell_area_grab_focus (GtkCellArea *area, * @area: a #GtkCellArea * @direction: the #GtkDirectionType in which focus * is to leave @area - * @path: the current #GtkTreePath string for the - * event which was handled by @area * * Notifies that focus is to leave @area in the * given @direction. @@ -1740,12 +1738,15 @@ gtk_cell_area_grab_focus (GtkCellArea *area, */ void gtk_cell_area_focus_leave (GtkCellArea *area, - GtkDirectionType direction, - const gchar *path) + GtkDirectionType direction) { + GtkCellAreaPrivate *priv; + g_return_if_fail (GTK_IS_CELL_AREA (area)); - g_signal_emit (area, cell_area_signals[SIGNAL_FOCUS_LEAVE], 0, direction, path); + priv = area->priv; + + g_signal_emit (area, cell_area_signals[SIGNAL_FOCUS_LEAVE], 0, direction, priv->current_path); } /** |