diff options
author | Jonathan Blandford <jrb@redhat.com> | 2001-09-18 22:49:02 +0000 |
---|---|---|
committer | Jonathan Blandford <jrb@src.gnome.org> | 2001-09-18 22:49:02 +0000 |
commit | fa6e6928f6e3095ea795625d4791b1734896f8c0 (patch) | |
tree | 1fc768a78490f150db8778b318bba26301fcbfb7 /gtk/gtkcelleditable.c | |
parent | a15d5c36f6e100ff512ca3fc2ff034d3cbd5f572 (diff) | |
download | gtk+-fa6e6928f6e3095ea795625d4791b1734896f8c0.tar.gz |
centralize all the editing code
Tue Sep 18 18:46:54 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_start_editing): centralize all
the editing code
* gtk/gtkcelleditable.c: Got rid of stop_editing, as there was no
reason to call it beyond emiting the two signals.
* gtk/gtkentry.c (gtk_entry_class_init): add "has_frame" property
to GtkEntry.
Diffstat (limited to 'gtk/gtkcelleditable.c')
-rw-r--r-- | gtk/gtkcelleditable.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/gtk/gtkcelleditable.c b/gtk/gtkcelleditable.c index 8bbd5777cf..cab88e8aa3 100644 --- a/gtk/gtkcelleditable.c +++ b/gtk/gtkcelleditable.c @@ -78,21 +78,24 @@ void gtk_cell_editable_start_editing (GtkCellEditable *cell_editable, GdkEvent *event) { -} + g_return_if_fail (GTK_IS_CELL_EDITABLE (cell_editable)); + g_return_if_fail (GTK_CELL_EDITABLE_GET_IFACE (cell_editable)->start_editing != NULL); -void -gtk_cell_editable_stop_editing (GtkCellEditable *cell_editable) -{ + (* GTK_CELL_EDITABLE_GET_IFACE (cell_editable)->start_editing) (cell_editable, event); } - void gtk_cell_editable_editing_done (GtkCellEditable *cell_editable) { + g_return_if_fail (GTK_IS_CELL_EDITABLE (cell_editable)); + + g_signal_emit_by_name (cell_editable, "editing_done"); } void gtk_cell_editable_remove_widget (GtkCellEditable *cell_editable) { + g_return_if_fail (GTK_IS_CELL_EDITABLE (cell_editable)); + g_signal_emit_by_name (cell_editable, "remove_widget"); } |