From c8ce95ab5290f5d7706b62cc36c2bb960554fb45 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 9 Mar 2005 02:49:27 +0000 Subject: [PATCH] Use canonical form of the name when registering properties. 2005-03-08 Matthias Clasen * gdk-pixbuf.c (gdk_pixbuf_class_init): Use canonical form of the name when registering properties. --- gdk-pixbuf/ChangeLog | 3 +++ gdk-pixbuf/gdk-pixbuf.c | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index 667e903d45..0fcba0727d 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -1,5 +1,8 @@ 2005-03-08 Matthias Clasen + * gdk-pixbuf.c (gdk_pixbuf_class_init): Use canonical + form of the name when registering properties. + * gdk-pixbuf.symbols: Add the new attributes here, too. * gdk-pixbuf-core.h: Use G_GNUC_NULL_TERMINATED where diff --git a/gdk-pixbuf/gdk-pixbuf.c b/gdk-pixbuf/gdk-pixbuf.c index 49da10782c..765c495869 100644 --- a/gdk-pixbuf/gdk-pixbuf.c +++ b/gdk-pixbuf/gdk-pixbuf.c @@ -104,7 +104,7 @@ gdk_pixbuf_class_init (GdkPixbufClass *klass) */ g_object_class_install_property (object_class, PROP_N_CHANNELS, - g_param_spec_int ("n_channels", + g_param_spec_int ("n-channels", P_("Number of Channels"), P_("The number of samples per pixel"), 0, @@ -126,7 +126,7 @@ gdk_pixbuf_class_init (GdkPixbufClass *klass) g_object_class_install_property (object_class, PROP_HAS_ALPHA, - g_param_spec_boolean ("has_alpha", + g_param_spec_boolean ("has-alpha", P_("Has Alpha"), P_("Whether the pixbuf has an alpha channel"), FALSE, @@ -141,7 +141,7 @@ gdk_pixbuf_class_init (GdkPixbufClass *klass) */ g_object_class_install_property (object_class, PROP_BITS_PER_SAMPLE, - g_param_spec_int ("bits_per_sample", + g_param_spec_int ("bits-per-sample", P_("Bits per Sample"), P_("The number of bits per sample"), 1,