[gtk+] [gtk] GtkCellEditable::editing-cancelled should be writable



commit 702ee3b3504079ea22565409846cb8d225b7f054
Author: Hiroyuki Ikezoe <poincare ikezoe net>
Date:   Sat Dec 19 01:18:14 2009 +0100

    [gtk] GtkCellEditable::editing-cancelled should be writable
    
    Fixes https://bugzilla.gnome.org/show_bug.cgi?id=604881
    
    Signed-off-by: Javier Jardón <jjardon gnome org>

 gtk/gtkcelleditable.c |    2 +-
 gtk/gtkcombobox.c     |    4 ++++
 gtk/gtkentry.c        |    4 ++++
 3 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcelleditable.c b/gtk/gtkcelleditable.c
index 38457ca..08e31e5 100644
--- a/gtk/gtkcelleditable.c
+++ b/gtk/gtkcelleditable.c
@@ -76,7 +76,7 @@ gtk_cell_editable_base_init (GtkCellEditableIface *iface)
                                                                  P_("Editing Canceled"),
                                                                  P_("Indicates that editing has been canceled"),
                                                                  FALSE,
-                                                                 GTK_PARAM_READABLE));
+                                                                 GTK_PARAM_READWRITE));
 
       /**
        * GtkCellEditable::editing-done:
diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c
index 8df31ed..6d20b63 100644
--- a/gtk/gtkcombobox.c
+++ b/gtk/gtkcombobox.c
@@ -1014,6 +1014,10 @@ gtk_combo_box_set_property (GObject      *object,
                                             g_value_get_enum (value));
       break;
 
+    case PROP_EDITING_CANCELED:
+      combo_box->priv->editing_canceled = g_value_get_boolean (value);
+      break;
+
     default:
       G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
       break;
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index f66c1da..c5e3a6e 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -1990,6 +1990,10 @@ gtk_entry_set_property (GObject         *object,
         gtk_im_multicontext_set_context_id (GTK_IM_MULTICONTEXT (entry->im_context), priv->im_module);
       break;
 
+    case PROP_EDITING_CANCELED:
+      entry->editing_canceled = g_value_get_boolean (value);
+      break;
+
     case PROP_SCROLL_OFFSET:
     case PROP_CURSOR_POSITION:
     default:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]