[libgd] Don't use P_() for properties
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgd] Don't use P_() for properties
- Date: Wed, 20 Feb 2013 02:01:38 +0000 (UTC)
commit 3950ff6b49315b3c67b5f7b2ac0fbd1f7690883b
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Feb 19 20:56:49 2013 -0500
Don't use P_() for properties
We don't have the same translation infrastructure of GTK+, and using P_()
here just confuses intltool breaking distcheck.
libgd/gd-header-bar.c | 29 ++++++++++++++---------------
libgd/gd-header-button.c | 13 ++++++-------
libgd/gd-stack-switcher.c | 6 ++----
3 files changed, 22 insertions(+), 26 deletions(-)
---
diff --git a/libgd/gd-header-bar.c b/libgd/gd-header-bar.c
index b08fe0e..f8ea3a2 100644
--- a/libgd/gd-header-bar.c
+++ b/libgd/gd-header-bar.c
@@ -22,7 +22,6 @@
/* TODO
* - wm communication
*/
-#define P_(s) s
#define DEFAULT_SPACING 6
#define DEFAULT_HPADDING 6
@@ -1075,31 +1074,31 @@ gd_header_bar_class_init (GdHeaderBarClass *class)
gtk_container_class_install_child_property (container_class,
CHILD_PROP_PACK_TYPE,
g_param_spec_enum ("pack-type",
- P_("Pack type"),
- P_("A GtkPackType indicating whether the
child is packed with reference to the start or end of the parent"),
+ "Pack type",
+ "A GtkPackType indicating whether the child
is packed with reference to the start or end of the parent",
GTK_TYPE_PACK_TYPE, GTK_PACK_START,
G_PARAM_READWRITE));
gtk_container_class_install_child_property (container_class,
CHILD_PROP_POSITION,
g_param_spec_int ("position",
- P_("Position"),
- P_("The index of the child in the parent"),
+ "Position",
+ "The index of the child in the parent",
-1, G_MAXINT, 0,
G_PARAM_READABLE));
g_object_class_install_property (object_class,
PROP_TITLE,
g_param_spec_string ("title",
- P_("Title"),
- P_("The title to display"),
+ "Title",
+ "The title to display",
NULL,
G_PARAM_READWRITE));
g_object_class_install_property (object_class,
PROP_CUSTOM_TITLE,
g_param_spec_object ("custom-title",
- P_("Custom Title"),
- P_("Custom title widget to display"),
+ "Custom Title",
+ "Custom title widget to display",
GTK_TYPE_WIDGET,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT |
@@ -1108,8 +1107,8 @@ gd_header_bar_class_init (GdHeaderBarClass *class)
g_object_class_install_property (object_class,
PROP_SPACING,
g_param_spec_int ("spacing",
- P_("Spacing"),
- P_("The amount of space between children"),
+ "Spacing",
+ "The amount of space between children",
0, G_MAXINT,
DEFAULT_SPACING,
G_PARAM_READWRITE));
@@ -1117,8 +1116,8 @@ gd_header_bar_class_init (GdHeaderBarClass *class)
g_object_class_install_property (object_class,
PROP_HPADDING,
g_param_spec_int ("hpadding",
- P_("Horizontal padding"),
- P_("The amount of space to the left and right of
children"),
+ "Horizontal padding",
+ "The amount of space to the left and right of children",
0, G_MAXINT,
DEFAULT_HPADDING,
G_PARAM_READWRITE));
@@ -1126,8 +1125,8 @@ gd_header_bar_class_init (GdHeaderBarClass *class)
g_object_class_install_property (object_class,
PROP_VPADDING,
g_param_spec_int ("vpadding",
- P_("Vertical padding"),
- P_("The amount of space to the above and below
children"),
+ "Vertical padding",
+ "The amount of space to the above and below children",
0, G_MAXINT,
DEFAULT_VPADDING,
G_PARAM_READWRITE));
diff --git a/libgd/gd-header-button.c b/libgd/gd-header-button.c
index 8ed98df..67de741 100644
--- a/libgd/gd-header-button.c
+++ b/libgd/gd-header-button.c
@@ -25,7 +25,6 @@ typedef GdHeaderButtonIface GdHeaderButtonInterface;
G_DEFINE_INTERFACE (GdHeaderButton, gd_header_button, GTK_TYPE_BUTTON)
-#define P_(s) s
enum {
PROP_0,
PROP_LABEL,
@@ -44,8 +43,8 @@ gd_header_button_default_init (GdHeaderButtonIface *iface)
* The label of the #GdHeaderButton object.
*/
pspec = g_param_spec_string ("label",
- P_("Text label"),
- P_("Label displayed by the button"),
+ "Text label",
+ "Label displayed by the button",
NULL,
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS);
@@ -57,8 +56,8 @@ gd_header_button_default_init (GdHeaderButtonIface *iface)
* Whether the label of the #GdHeaderButton object should use markup.
*/
pspec = g_param_spec_boolean ("use-markup",
- P_("Use markup"),
- P_("Whether the label should use markup"),
+ "Use markup",
+ "Whether the label should use markup",
FALSE,
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS);
@@ -70,8 +69,8 @@ gd_header_button_default_init (GdHeaderButtonIface *iface)
* The symbolic icon name of the #GdHeaderButton object.
*/
pspec = g_param_spec_string ("symbolic-icon-name",
- P_("Symbolic icon name"),
- P_("The name of the symbolic icon displayed by the button"),
+ "Symbolic icon name",
+ "The name of the symbolic icon displayed by the button",
NULL,
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS);
diff --git a/libgd/gd-stack-switcher.c b/libgd/gd-stack-switcher.c
index d64832b..0c11f34 100644
--- a/libgd/gd-stack-switcher.c
+++ b/libgd/gd-stack-switcher.c
@@ -19,8 +19,6 @@
#include "gd-stack-switcher.h"
-#define P_(s) s
-
struct _GdStackSwitcherPrivate
{
GdStack *stack;
@@ -349,8 +347,8 @@ gd_stack_switcher_class_init (GdStackSwitcherClass *class)
g_object_class_install_property (object_class,
PROP_STACK,
g_param_spec_object ("stack",
- P_("Stack"),
- P_("Stack"),
+ "Stack",
+ "Stack",
GD_TYPE_STACK,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT |
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]