2 * Copyright (C) 2000 Red Hat, Inc., Jonathan Blandford <jrb@redhat.com>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
21 #include "gtkcelleditable.h"
22 #include "gtksignal.h"
24 static void gtk_cell_editable_base_init (gpointer g_class);
27 gtk_cell_editable_get_type (void)
29 static GtkType cell_editable_type = 0;
31 if (! cell_editable_type)
33 static const GTypeInfo cell_editable_info =
35 sizeof (GtkCellEditableIface), /* class_size */
36 gtk_cell_editable_base_init, /* base_init */
37 NULL, /* base_finalize */
39 NULL, /* class_finalize */
40 NULL, /* class_data */
45 cell_editable_type = g_type_register_static (G_TYPE_INTERFACE, "GtkCellEditable", &cell_editable_info, 0);
46 g_type_interface_add_prerequisite (cell_editable_type, GTK_TYPE_WIDGET);
49 return cell_editable_type;
53 gtk_cell_editable_base_init (gpointer g_class)
55 static gboolean initialized = FALSE;
59 g_signal_new ("editing_done",
60 GTK_TYPE_CELL_EDITABLE,
62 G_STRUCT_OFFSET (GtkCellEditableIface, editing_done),
64 gtk_marshal_VOID__VOID,
66 g_signal_new ("remove_widget",
67 GTK_TYPE_CELL_EDITABLE,
69 G_STRUCT_OFFSET (GtkCellEditableIface, remove_widget),
71 gtk_marshal_VOID__VOID,
78 gtk_cell_editable_start_editing (GtkCellEditable *cell_editable,
84 gtk_cell_editable_stop_editing (GtkCellEditable *cell_editable)
90 gtk_cell_editable_editing_done (GtkCellEditable *cell_editable)
95 gtk_cell_editable_remove_widget (GtkCellEditable *cell_editable)