psppire-button-editable.c: Added stub for "editing-canceled" property
authorJohn Darrington <john@darrington.wattle.id.au>
Fri, 13 Jul 2012 07:10:42 +0000 (09:10 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Fri, 13 Jul 2012 07:10:42 +0000 (09:10 +0200)
We don't use this, but it avoids a GtkCritical saying that we haven't
implemented it.

src/ui/gui/psppire-button-editable.c

index 2e6335053fb06279750273b86dd678fa45ab1843..8d695a05351f95b1ffa7f8ea1e8704166257ab04 100644 (file)
@@ -41,7 +41,8 @@ enum
   {
     PROP_0,
     PROP_PATH,
-    PROP_SLASH
+    PROP_SLASH,
+    PROP_EDITING_CANCELED
   };
 
 static void
@@ -63,6 +64,9 @@ psppire_button_editable_set_property (GObject      *object,
       psppire_button_editable_set_slash (obj, g_value_get_boolean (value));
       break;
 
+    case PROP_EDITING_CANCELED:
+      break;
+
     default:
       G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
       break;
@@ -87,6 +91,10 @@ psppire_button_editable_get_property (GObject      *object,
       g_value_set_boolean (value, psppire_button_editable_get_slash (obj));
       break;
 
+    case PROP_EDITING_CANCELED:
+      g_value_set_boolean (value, FALSE);
+      break;
+
     default:
       G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
       break;
@@ -173,6 +181,9 @@ psppire_button_editable_class_init (PsppireButtonEditableClass *class)
                                                          FALSE,
                                                          G_PARAM_READWRITE));
 
+  g_object_class_override_property (gobject_class,
+                                   PROP_EDITING_CANCELED,
+                                    "editing-canceled");
 }
 
 static void