Correct property types

This commit is contained in:
Matthias Clasen
2009-07-17 15:16:38 -04:00
parent 20dc8509f8
commit c28d6b84fa

View File

@ -347,10 +347,13 @@ gtk_entry_buffer_class_init (GtkEntryBufferClass *klass)
* *
* Since: 2.18 * Since: 2.18
*/ */
g_object_class_install_property (gobject_class, PROP_TEXT, g_object_class_install_property (gobject_class,
g_param_spec_string ("text", P_("Text"), PROP_TEXT,
P_("The contents of the buffer"), g_param_spec_string ("text",
"", GTK_PARAM_READWRITE)); P_("Text"),
P_("The contents of the buffer"),
"",
GTK_PARAM_READWRITE));
/** /**
* GtkEntryBuffer:length: * GtkEntryBuffer:length:
@ -359,10 +362,13 @@ gtk_entry_buffer_class_init (GtkEntryBufferClass *klass)
* *
* Since: 2.18 * Since: 2.18
*/ */
g_object_class_install_property (gobject_class, PROP_LENGTH, g_object_class_install_property (gobject_class,
g_param_spec_uint ("length", P_("Text length"), PROP_LENGTH,
P_("Length of the text currently in the buffer"), g_param_spec_uint ("length",
0, GTK_ENTRY_BUFFER_MAX_SIZE, 0, GTK_PARAM_READABLE)); P_("Text length"),
P_("Length of the text currently in the buffer"),
0, GTK_ENTRY_BUFFER_MAX_SIZE, 0,
GTK_PARAM_READABLE));
/** /**
* GtkEntryBuffer:max-length: * GtkEntryBuffer:max-length:
@ -371,10 +377,13 @@ gtk_entry_buffer_class_init (GtkEntryBufferClass *klass)
* *
* Since: 2.18 * Since: 2.18
*/ */
g_object_class_install_property (gobject_class, PROP_MAX_LENGTH, g_object_class_install_property (gobject_class,
g_param_spec_uint ("max-length", P_("Maximum length"), PROP_MAX_LENGTH,
P_("Maximum number of characters for this entry. Zero if no maximum"), g_param_spec_int ("max-length",
0, GTK_ENTRY_BUFFER_MAX_SIZE, 0, GTK_PARAM_READWRITE)); P_("Maximum length"),
P_("Maximum number of characters for this entry. Zero if no maximum"),
0, GTK_ENTRY_BUFFER_MAX_SIZE, 0,
GTK_PARAM_READWRITE));
/** /**
* GtkEntry::inserted-text: * GtkEntry::inserted-text: