From: John Darrington Date: Fri, 13 Jul 2012 07:10:42 +0000 (+0200) Subject: psppire-button-editable.c: Added stub for "editing-canceled" property X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=016244d48cb9dbb7cea41a79ac5f0b8fc7b7a449;p=pspp psppire-button-editable.c: Added stub for "editing-canceled" property We don't use this, but it avoids a GtkCritical saying that we haven't implemented it. --- diff --git a/src/ui/gui/psppire-button-editable.c b/src/ui/gui/psppire-button-editable.c index 2e6335053f..8d695a0535 100644 --- a/src/ui/gui/psppire-button-editable.c +++ b/src/ui/gui/psppire-button-editable.c @@ -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