GTK+ 2 Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Prerequisites | Known Implementations | Properties | Signals |
#include <gtk/gtk.h> GtkCellEditable; struct GtkCellEditableIface; void gtk_cell_editable_start_editing (GtkCellEditable *cell_editable
,GdkEvent *event
); void gtk_cell_editable_editing_done (GtkCellEditable *cell_editable
); void gtk_cell_editable_remove_widget (GtkCellEditable *cell_editable
);
GtkCellEditable is implemented by GtkComboBox, GtkComboBoxEntry, GtkComboBoxText, GtkEntry and GtkSpinButton.
The GtkCellEditable interface must be implemented for widgets to be usable when editing the contents of a GtkTreeView cell.
struct GtkCellEditableIface { GTypeInterface g_iface; /* signals */ void (* editing_done) (GtkCellEditable *cell_editable); void (* remove_widget) (GtkCellEditable *cell_editable); /* virtual table */ void (* start_editing) (GtkCellEditable *cell_editable, GdkEvent *event); };
void gtk_cell_editable_start_editing (GtkCellEditable *cell_editable
,GdkEvent *event
);
Begins editing on a cell_editable
. event
is the GdkEvent that began
the editing process. It may be NULL
, in the instance that editing was
initiated through programatic means.
|
A GtkCellEditable |
|
A GdkEvent, or NULL . [allow-none]
|
void gtk_cell_editable_editing_done (GtkCellEditable *cell_editable
);
Emits the "editing-done" signal.
|
A GtkTreeEditable |
void gtk_cell_editable_remove_widget (GtkCellEditable *cell_editable
);
Emits the "remove-widget" signal.
|
A GtkTreeEditable |
"editing-canceled"
property"editing-canceled" gboolean : Read / Write
Indicates whether editing on the cell has been canceled.
Default value: FALSE
Since 2.20
"editing-done"
signalvoid user_function (GtkCellEditable *cell_editable,
gpointer user_data) : Run Last
This signal is a sign for the cell renderer to update its
value from the cell_editable
.
Implementations of GtkCellEditable are responsible for emitting this signal when they are done editing, e.g. GtkEntry is emitting it when the user presses Enter.
gtk_cell_editable_editing_done()
is a convenience method
for emitting GtkCellEditable::editing-done.
|
the object on which the signal was emitted |
|
user data set when the signal handler was connected. |
"remove-widget"
signalvoid user_function (GtkCellEditable *cell_editable,
gpointer user_data) : Run Last
This signal is meant to indicate that the cell is finished editing, and the widget may now be destroyed.
Implementations of GtkCellEditable are responsible for emitting this signal when they are done editing. It must be emitted after the "editing-done" signal, to give the cell renderer a chance to update the cell's value before the widget is removed.
gtk_cell_editable_remove_widget()
is a convenience method
for emitting GtkCellEditable::remove-widget.
|
the object on which the signal was emitted |
|
user data set when the signal handler was connected. |