diff options
author | Cody Russell <bratsche@gnome.org> | 2009-10-21 18:40:19 +0200 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2009-10-21 18:55:24 +0200 |
commit | 0f33ad4ee1211fcaac13ca74ed372b74116d98d5 (patch) | |
tree | 1c1036b770a1a84eb6408cd172178f644042664b /gtk/gtkcelleditable.c | |
parent | 272e0b5b763a5deefe8138fb053fe72ef1ac0d4c (diff) | |
download | gtk+-0f33ad4ee1211fcaac13ca74ed372b74116d98d5.tar.gz |
Added editing_canceled property to GtkCellEditable
GTK_ENTRY()->editing_canceled should really have been a parameter of the
GtkCellEditable::editing-done signal, it should be a property on the cell
editable interface
https://bugzilla.gnome.org/show_bug.cgi?id=594962
Diffstat (limited to 'gtk/gtkcelleditable.c')
-rw-r--r-- | gtk/gtkcelleditable.c | 29 |
1 files changed, 22 insertions, 7 deletions
diff --git a/gtk/gtkcelleditable.c b/gtk/gtkcelleditable.c index 933622410e..38457cae9f 100644 --- a/gtk/gtkcelleditable.c +++ b/gtk/gtkcelleditable.c @@ -21,10 +21,11 @@ #include "config.h" #include "gtkcelleditable.h" #include "gtkmarshalers.h" +#include "gtkprivate.h" #include "gtkintl.h" #include "gtkalias.h" -static void gtk_cell_editable_base_init (gpointer g_class); +static void gtk_cell_editable_base_init (GtkCellEditableIface *iface); GType gtk_cell_editable_get_type (void) @@ -35,12 +36,12 @@ gtk_cell_editable_get_type (void) { const GTypeInfo cell_editable_info = { - sizeof (GtkCellEditableIface), /* class_size */ - gtk_cell_editable_base_init, /* base_init */ - NULL, /* base_finalize */ + sizeof (GtkCellEditableIface), /* class_size */ + (GBaseInitFunc) gtk_cell_editable_base_init, /* base_init */ + NULL, /* base_finalize */ NULL, - NULL, /* class_finalize */ - NULL, /* class_data */ + NULL, /* class_finalize */ + NULL, /* class_data */ 0, 0, NULL @@ -57,13 +58,27 @@ gtk_cell_editable_get_type (void) } static void -gtk_cell_editable_base_init (gpointer g_class) +gtk_cell_editable_base_init (GtkCellEditableIface *iface) { static gboolean initialized = FALSE; if (! initialized) { /** + * GtkCellEditable:editing-canceled: + * + * Indicates whether editing on the cell has been canceled. + * + * Since: 2.20 + **/ + g_object_interface_install_property (iface, + g_param_spec_boolean ("editing-canceled", + P_("Editing Canceled"), + P_("Indicates that editing has been canceled"), + FALSE, + GTK_PARAM_READABLE)); + + /** * GtkCellEditable::editing-done: * @cell_editable: the object on which the signal was emitted * |