From b2e7e4fedd23cf8ecff28b43e77d0d1c8ff398d6 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Thu, 1 Apr 2010 21:40:19 +0200 Subject: Bug #325121 - Do not translate developer strings in g_param_spec_* --- .../gui/contact-editor/e-contact-editor-fullname.c | 8 +++--- addressbook/gui/contact-editor/e-contact-editor.c | 32 +++++++++++----------- addressbook/gui/contact-editor/eab-editor.c | 4 +-- .../contact-list-editor/e-contact-list-editor.c | 16 +++++------ addressbook/gui/widgets/e-addressbook-model.c | 6 ++-- .../gui/widgets/e-addressbook-reflow-adapter.c | 16 +++++------ addressbook/gui/widgets/e-addressbook-view.c | 6 ++-- addressbook/gui/widgets/e-minicard-label.c | 32 +++++++++++----------- addressbook/gui/widgets/e-minicard-view-widget.c | 16 +++++------ addressbook/gui/widgets/e-minicard-view.c | 16 +++++------ addressbook/gui/widgets/e-minicard.c | 28 +++++++++---------- 11 files changed, 90 insertions(+), 90 deletions(-) (limited to 'addressbook') diff --git a/addressbook/gui/contact-editor/e-contact-editor-fullname.c b/addressbook/gui/contact-editor/e-contact-editor-fullname.c index 79d665e6c7..3f80ec9f4b 100644 --- a/addressbook/gui/contact-editor/e-contact-editor-fullname.c +++ b/addressbook/gui/contact-editor/e-contact-editor-fullname.c @@ -85,14 +85,14 @@ e_contact_editor_fullname_class_init (EContactEditorFullnameClass *klass) g_object_class_install_property (object_class, PROP_NAME, g_param_spec_pointer ("name", - _("Name"), - /*_( */"XXX blurb" /*)*/, + "Name", + NULL, G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_EDITABLE, g_param_spec_boolean ("editable", - _("Editable"), - /*_( */"XXX blurb" /*)*/, + "Editable", + NULL, FALSE, G_PARAM_READWRITE)); } diff --git a/addressbook/gui/contact-editor/e-contact-editor.c b/addressbook/gui/contact-editor/e-contact-editor.c index b251552b35..95e9c34481 100644 --- a/addressbook/gui/contact-editor/e-contact-editor.c +++ b/addressbook/gui/contact-editor/e-contact-editor.c @@ -293,57 +293,57 @@ e_contact_editor_class_init (EContactEditorClass *klass) g_object_class_install_property (object_class, PROP_SOURCE_BOOK, g_param_spec_object ("source_book", - _("Source Book"), - /*_( */"XXX blurb" /*)*/, + "Source Book", + NULL, E_TYPE_BOOK, G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_TARGET_BOOK, g_param_spec_object ("target_book", - _("Target Book"), - /*_( */"XXX blurb" /*)*/, + "Target Book", + NULL, E_TYPE_BOOK, G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_CONTACT, g_param_spec_object ("contact", - _("Contact"), - /*_( */"XXX blurb" /*)*/, + "Contact", + NULL, E_TYPE_CONTACT, G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_IS_NEW_CONTACT, g_param_spec_boolean ("is_new_contact", - _("Is New Contact"), - /*_( */"XXX blurb" /*)*/, + "Is New Contact", + NULL, FALSE, G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_WRITABLE_FIELDS, g_param_spec_object ("writable_fields", - _("Writable Fields"), - /*_( */"XXX blurb" /*)*/, + "Writable Fields", + NULL, E_TYPE_LIST, G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_REQUIRED_FIELDS, g_param_spec_object ("required_fields", - _("Required Fields"), - /*_( */"XXX blurb" /*)*/, + "Required Fields", + NULL, E_TYPE_LIST, G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_EDITABLE, g_param_spec_boolean ("editable", - _("Editable"), - /*_( */"XXX blurb" /*)*/, + "Editable", + NULL, FALSE, G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_CHANGED, g_param_spec_boolean ("changed", - _("Changed"), - /*_( */"XXX blurb" /*)*/, + "Changed", + NULL, FALSE, G_PARAM_READWRITE)); } diff --git a/addressbook/gui/contact-editor/eab-editor.c b/addressbook/gui/contact-editor/eab-editor.c index d6946e8341..17ac1c391c 100644 --- a/addressbook/gui/contact-editor/eab-editor.c +++ b/addressbook/gui/contact-editor/eab-editor.c @@ -164,8 +164,8 @@ eab_editor_class_init (EABEditorClass *class) PROP_SHELL, g_param_spec_object ( "shell", - _("Shell"), - _("The EShell singleton"), + "Shell", + "The EShell singleton", E_TYPE_SHELL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); diff --git a/addressbook/gui/contact-list-editor/e-contact-list-editor.c b/addressbook/gui/contact-list-editor/e-contact-list-editor.c index 23da590e72..c15a03c70c 100644 --- a/addressbook/gui/contact-list-editor/e-contact-list-editor.c +++ b/addressbook/gui/contact-list-editor/e-contact-list-editor.c @@ -1234,8 +1234,8 @@ contact_list_editor_class_init (EContactListEditorClass *class) PROP_BOOK, g_param_spec_object ( "book", - _("Book"), - /*_( */"XXX blurb" /*)*/, + "Book", + NULL, E_TYPE_BOOK, G_PARAM_READWRITE)); @@ -1244,8 +1244,8 @@ contact_list_editor_class_init (EContactListEditorClass *class) PROP_CONTACT, g_param_spec_object ( "contact", - _("Contact"), - /*_( */"XXX blurb" /*)*/, + "Contact", + NULL, E_TYPE_CONTACT, G_PARAM_READWRITE)); @@ -1254,8 +1254,8 @@ contact_list_editor_class_init (EContactListEditorClass *class) PROP_IS_NEW_LIST, g_param_spec_boolean ( "is_new_list", - _("Is New List"), - /*_( */"XXX blurb" /*)*/, + "Is New List", + NULL, FALSE, G_PARAM_READWRITE)); @@ -1264,8 +1264,8 @@ contact_list_editor_class_init (EContactListEditorClass *class) PROP_EDITABLE, g_param_spec_boolean ( "editable", - _("Editable"), - /*_( */"XXX blurb" /*)*/, + "Editable", + NULL, FALSE, G_PARAM_READWRITE)); } diff --git a/addressbook/gui/widgets/e-addressbook-model.c b/addressbook/gui/widgets/e-addressbook-model.c index 4d40ced9e8..e323d3d8a5 100644 --- a/addressbook/gui/widgets/e-addressbook-model.c +++ b/addressbook/gui/widgets/e-addressbook-model.c @@ -509,7 +509,7 @@ addressbook_model_class_init (EAddressbookModelClass *class) PROP_BOOK, g_param_spec_object ( "book", - _("Book"), + "Book", NULL, E_TYPE_BOOK, G_PARAM_READWRITE)); @@ -519,7 +519,7 @@ addressbook_model_class_init (EAddressbookModelClass *class) PROP_EDITABLE, g_param_spec_boolean ( "editable", - _("Editable"), + "Editable", NULL, FALSE, G_PARAM_READWRITE)); @@ -529,7 +529,7 @@ addressbook_model_class_init (EAddressbookModelClass *class) PROP_QUERY, g_param_spec_string ( "query", - _("Query"), + "Query", NULL, NULL, G_PARAM_READWRITE | diff --git a/addressbook/gui/widgets/e-addressbook-reflow-adapter.c b/addressbook/gui/widgets/e-addressbook-reflow-adapter.c index 5928f51a74..127b63daa1 100644 --- a/addressbook/gui/widgets/e-addressbook-reflow-adapter.c +++ b/addressbook/gui/widgets/e-addressbook-reflow-adapter.c @@ -410,29 +410,29 @@ e_addressbook_reflow_adapter_class_init (GObjectClass *object_class) g_object_class_install_property (object_class, PROP_BOOK, g_param_spec_object ("book", - _("Book"), - /*_( */"XXX blurb" /*)*/, + "Book", + NULL, E_TYPE_BOOK, G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_QUERY, g_param_spec_string ("query", - _("Query"), - /*_( */"XXX blurb" /*)*/, + "Query", + NULL, NULL, G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_EDITABLE, g_param_spec_boolean ("editable", - _("Editable"), - /*_( */"XXX blurb" /*)*/, + "Editable", + NULL, FALSE, G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_MODEL, g_param_spec_object ("model", - _("Model"), - /*_( */"XXX blurb" /*)*/, + "Model", + NULL, E_TYPE_ADDRESSBOOK_MODEL, G_PARAM_READABLE)); diff --git a/addressbook/gui/widgets/e-addressbook-view.c b/addressbook/gui/widgets/e-addressbook-view.c index 6ffeee56a0..c27bb74d8d 100644 --- a/addressbook/gui/widgets/e-addressbook-view.c +++ b/addressbook/gui/widgets/e-addressbook-view.c @@ -755,7 +755,7 @@ addressbook_view_class_init (EAddressbookViewClass *class) PROP_MODEL, g_param_spec_object ( "model", - _("Model"), + "Model", NULL, E_TYPE_ADDRESSBOOK_MODEL, G_PARAM_READABLE)); @@ -771,7 +771,7 @@ addressbook_view_class_init (EAddressbookViewClass *class) PROP_SHELL_VIEW, g_param_spec_object ( "shell-view", - _("Shell View"), + "Shell View", NULL, E_TYPE_SHELL_VIEW, G_PARAM_READWRITE | @@ -782,7 +782,7 @@ addressbook_view_class_init (EAddressbookViewClass *class) PROP_SOURCE, g_param_spec_object ( "source", - _("Source"), + "Source", NULL, E_TYPE_SOURCE, G_PARAM_READWRITE | diff --git a/addressbook/gui/widgets/e-minicard-label.c b/addressbook/gui/widgets/e-minicard-label.c index 4107bb9be8..3b0edc8854 100644 --- a/addressbook/gui/widgets/e-minicard-label.c +++ b/addressbook/gui/widgets/e-minicard-label.c @@ -112,57 +112,57 @@ e_minicard_label_class_init (EMinicardLabelClass *klass) g_object_class_install_property (object_class, PROP_WIDTH, g_param_spec_double ("width", - _("Width"), - /*_( */"XXX blurb" /*)*/, + "Width", + NULL, 0.0, G_MAXDOUBLE, 10.0, G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_HEIGHT, g_param_spec_double ("height", - _("Height"), - /*_( */"XXX blurb" /*)*/, + "Height", + NULL, 0.0, G_MAXDOUBLE, 10.0, G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_HAS_FOCUS, g_param_spec_boolean ("has_focus", - _("Has Focus"), - /*_( */"XXX blurb" /*)*/, + "Has Focus", + NULL, FALSE, G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_FIELD, g_param_spec_string ("field", - _("Field"), - /*_( */"XXX blurb" /*)*/, + "Field", + NULL, NULL, G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_FIELDNAME, g_param_spec_string ("fieldname", - _("Field Name"), - /*_( */"XXX blurb" /*)*/, + "Field Name", + NULL, NULL, G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_TEXT_MODEL, g_param_spec_object ("text_model", - _("Text Model"), - /*_( */"XXX blurb" /*)*/, + "Text Model", + NULL, E_TYPE_TEXT_MODEL, G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_MAX_FIELD_NAME_WIDTH, g_param_spec_double ("max_field_name_length", - _("Max field name length"), - /*_( */"XXX blurb" /*)*/, + "Max field name length", + NULL, -1.0, G_MAXDOUBLE, -1.0, G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_EDITABLE, g_param_spec_boolean ("editable", - _("Editable"), - /*_( */"XXX blurb" /*)*/, + "Editable", + NULL, FALSE, G_PARAM_READWRITE)); diff --git a/addressbook/gui/widgets/e-minicard-view-widget.c b/addressbook/gui/widgets/e-minicard-view-widget.c index e6f9791731..0244d13d34 100644 --- a/addressbook/gui/widgets/e-minicard-view-widget.c +++ b/addressbook/gui/widgets/e-minicard-view-widget.c @@ -116,29 +116,29 @@ e_minicard_view_widget_class_init (EMinicardViewWidgetClass *class) g_object_class_install_property (object_class, PROP_BOOK, g_param_spec_object ("book", - _("Book"), - /*_( */"XXX blurb" /*)*/, + "Book", + NULL, E_TYPE_BOOK, G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_QUERY, g_param_spec_string ("query", - _("Query"), - /*_( */"XXX blurb" /*)*/, + "Query", + NULL, NULL, G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_EDITABLE, g_param_spec_boolean ("editable", - _("Editable"), - /*_( */"XXX blurb" /*)*/, + "Editable", + NULL, FALSE, G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_COLUMN_WIDTH, g_param_spec_double ("column_width", - _("Column Width"), - /*_( */"XXX blurb" /*)*/, + "Column Width", + NULL, 0.0, G_MAXDOUBLE, 150.0, G_PARAM_READWRITE)); diff --git a/addressbook/gui/widgets/e-minicard-view.c b/addressbook/gui/widgets/e-minicard-view.c index ed8954adcd..04121207e7 100644 --- a/addressbook/gui/widgets/e-minicard-view.c +++ b/addressbook/gui/widgets/e-minicard-view.c @@ -524,29 +524,29 @@ e_minicard_view_class_init (EMinicardViewClass *klass) g_object_class_install_property (object_class, PROP_ADAPTER, g_param_spec_object ("adapter", - _("Adapter"), - /*_( */"XXX blurb" /*)*/, + "Adapter", + NULL, E_TYPE_ADDRESSBOOK_REFLOW_ADAPTER, G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_BOOK, g_param_spec_object ("book", - _("Book"), - /*_( */"XXX blurb" /*)*/, + "Book", + NULL, E_TYPE_BOOK, G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_QUERY, g_param_spec_string ("query", - _("Query"), - /*_( */"XXX blurb" /*)*/, + "Query", + NULL, NULL, G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_EDITABLE, g_param_spec_boolean ("editable", - _("Editable"), - /*_( */"XXX blurb" /*)*/, + "Editable", + NULL, FALSE, G_PARAM_READWRITE)); diff --git a/addressbook/gui/widgets/e-minicard.c b/addressbook/gui/widgets/e-minicard.c index 09a09730f5..8a5783f3ed 100644 --- a/addressbook/gui/widgets/e-minicard.c +++ b/addressbook/gui/widgets/e-minicard.c @@ -151,52 +151,52 @@ e_minicard_class_init (EMinicardClass *class) g_object_class_install_property (object_class, PROP_WIDTH, g_param_spec_double ("width", - _("Width"), - /*_( */"XXX blurb" /*)*/, + "Width", + NULL, 0.0, G_MAXDOUBLE, 10.0, G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_HEIGHT, g_param_spec_double ("height", - _("Height"), - /*_( */"XXX blurb" /*)*/, + "Height", + NULL, 0.0, G_MAXDOUBLE, 10.0, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_HAS_FOCUS, /* XXX should be _enum */ g_param_spec_int ("has_focus", - _("Has Focus"), - /*_( */"XXX blurb" /*)*/, + "Has Focus", + NULL, E_MINICARD_FOCUS_TYPE_START, E_MINICARD_FOCUS_TYPE_END, E_MINICARD_FOCUS_TYPE_START, G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_SELECTED, g_param_spec_boolean ("selected", - _("Selected"), - /*_( */"XXX blurb" /*)*/, + "Selected", + NULL, FALSE, G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_HAS_CURSOR, g_param_spec_boolean ("has_cursor", - _("Has Cursor"), - /*_( */"XXX blurb" /*)*/, + "Has Cursor", + NULL, FALSE, G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_EDITABLE, g_param_spec_boolean ("editable", - _("Editable"), - /*_( */"XXX blurb" /*)*/, + "Editable", + NULL, FALSE, G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_CONTACT, g_param_spec_object ("contact", - _("Contact"), - /*_( */"XXX blurb" /*)*/, + "Contact", + NULL, E_TYPE_CONTACT, G_PARAM_READWRITE)); -- cgit v1.2.3