diff options
author | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2010-11-06 15:29:27 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2010-11-08 11:31:03 +0900 |
commit | cbe1154e519a98877f40c67a9f2e686eb3f7bbef (patch) | |
tree | 01d8ff29edb29f9c4b0d6d336d252803b07e5468 /gtk/gtkcellarea.h | |
parent | 017f637a765781518397c098e9b734a933e8ddfe (diff) | |
download | gtk+-cbe1154e519a98877f40c67a9f2e686eb3f7bbef.tar.gz |
Added gtk_cell_area_activate_cell() and some cell editing management
Now:
- The current edit cell and editable widget in use can be fetched
with properties and accessors
- gtk_cell_area_activate_cell() handles bookkeeping of the currently
edited cell, starting the editing of a cell, activating a cell etc
- Exported signals are available on GtkCellArea: "editing-started",
"editing-canceled", "editing-done", "remove-editable".
- Upon receiving GDK_KEY_Escape current editing gets canceled.
Diffstat (limited to 'gtk/gtkcellarea.h')
-rw-r--r-- | gtk/gtkcellarea.h | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/gtk/gtkcellarea.h b/gtk/gtkcellarea.h index 0e806df688..7fc450d497 100644 --- a/gtk/gtkcellarea.h +++ b/gtk/gtkcellarea.h @@ -277,11 +277,21 @@ gboolean gtk_cell_area_get_can_focus (GtkCellArea void gtk_cell_area_set_focus_cell (GtkCellArea *area, GtkCellRenderer *renderer); GtkCellRenderer *gtk_cell_area_get_focus_cell (GtkCellArea *area); -void gtk_cell_area_set_edited_cell (GtkCellArea *area, - GtkCellRenderer *renderer); -GtkCellRenderer *gtk_cell_area_get_edited_cell (GtkCellArea *area); +/* Cell Activation/Editing */ +void gtk_cell_area_set_edited_cell (GtkCellArea *area, + GtkCellRenderer *renderer); +GtkCellRenderer *gtk_cell_area_get_edited_cell (GtkCellArea *area); +void gtk_cell_area_set_edit_widget (GtkCellArea *area, + GtkCellEditable *editable); +GtkCellEditable *gtk_cell_area_get_edit_widget (GtkCellArea *area); +gboolean gtk_cell_area_activate_cell (GtkCellArea *area, + GtkWidget *widget, + GtkCellRenderer *renderer, + GdkEvent *event, + const GdkRectangle *cell_area, + GtkCellRendererState flags); /* Margins */ gint gtk_cell_area_get_cell_margin_left (GtkCellArea *area); @@ -299,14 +309,9 @@ void gtk_cell_area_set_cell_margin_bottom (GtkCellArea /* Functions for area implementations */ -/* Signal that editing started on the area (fires the "editing-started" signal) */ -void gtk_cell_area_editing_started (GtkCellArea *area, - GtkCellRenderer *renderer, - GtkCellEditable *editable); - /* Distinguish the inner cell area from the whole requested area including margins */ void gtk_cell_area_inner_cell_area (GtkCellArea *area, - GdkRectangle *cell_area, + const GdkRectangle *cell_area, GdkRectangle *inner_cell_area); /* Request the size of a cell while respecting the cell margins (requests are margin inclusive) */ |