Commit 07d4d314 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

The first part of the fix for #114351 (see also gdk-pixbuf/ChangeLog and

Fri Jan 16 23:59:01 2004  Matthias Clasen  <maclas@gmx.de>

	The first part of the fix for #114351 (see also
	gdk-pixbuf/ChangeLog and po/ChangeLog):

	* gtk/gtkintl.h:
	* gdk-pixbuf/gdk-pixbuf-i18n.h:
	* gdk/gdkintl.h: Define P_() for property blurbs and nicks.

	* gdk/gdkdisplaymanager.c:
	* gdk-pixbuf/gdk-pixbuf.c:
	* modules/input/gtkimcontextxim.c:
	* gtk/*.c:  Mark property blurbs and nicks with P_().

	* po/Makefile.in.in: Add --keyword=P_ to the xgettext
	invocation, since property blurbs and nicks are
	now marked with P_().
parent fb526d23
Fri Jan 16 23:59:01 2004 Matthias Clasen <maclas@gmx.de>
The first part of the fix for #114351 (see also
gdk-pixbuf/ChangeLog and po/ChangeLog):
* gtk/gtkintl.h:
* gdk/gdkintl.h: Define P_() for property blurbs and nicks.
* gdk/gdkdisplaymanager.c:
* modules/input/gtkimcontextxim.c:
* gtk/*.c: Mark property blurbs and nicks with P_().
2004-01-16 Federico Mena Quintero <federico@ximian.com>
Fix #130969.
......
Fri Jan 16 23:59:01 2004 Matthias Clasen <maclas@gmx.de>
The first part of the fix for #114351 (see also
gdk-pixbuf/ChangeLog and po/ChangeLog):
* gtk/gtkintl.h:
* gdk/gdkintl.h: Define P_() for property blurbs and nicks.
* gdk/gdkdisplaymanager.c:
* modules/input/gtkimcontextxim.c:
* gtk/*.c: Mark property blurbs and nicks with P_().
2004-01-16 Federico Mena Quintero <federico@ximian.com>
Fix #130969.
......
Fri Jan 16 23:59:01 2004 Matthias Clasen <maclas@gmx.de>
The first part of the fix for #114351 (see also
gdk-pixbuf/ChangeLog and po/ChangeLog):
* gtk/gtkintl.h:
* gdk/gdkintl.h: Define P_() for property blurbs and nicks.
* gdk/gdkdisplaymanager.c:
* modules/input/gtkimcontextxim.c:
* gtk/*.c: Mark property blurbs and nicks with P_().
2004-01-16 Federico Mena Quintero <federico@ximian.com>
Fix #130969.
......
Fri Jan 16 23:59:01 2004 Matthias Clasen <maclas@gmx.de>
The first part of the fix for #114351 (see also
gdk-pixbuf/ChangeLog and po/ChangeLog):
* gtk/gtkintl.h:
* gdk/gdkintl.h: Define P_() for property blurbs and nicks.
* gdk/gdkdisplaymanager.c:
* modules/input/gtkimcontextxim.c:
* gtk/*.c: Mark property blurbs and nicks with P_().
2004-01-16 Federico Mena Quintero <federico@ximian.com>
Fix #130969.
......
Fri Jan 16 23:59:01 2004 Matthias Clasen <maclas@gmx.de>
The first part of the fix for #114351 (see also
gdk-pixbuf/ChangeLog and po/ChangeLog):
* gtk/gtkintl.h:
* gdk/gdkintl.h: Define P_() for property blurbs and nicks.
* gdk/gdkdisplaymanager.c:
* modules/input/gtkimcontextxim.c:
* gtk/*.c: Mark property blurbs and nicks with P_().
2004-01-16 Federico Mena Quintero <federico@ximian.com>
Fix #130969.
......
Sat Jan 17 00:01:51 2004 Matthias Clasen <maclas@gmx.de>
The first part of the fix for #114351 (see also
../ChangeLog):
* gdk-pixbuf-i18n.h: Define P_() for property blurbs and nicks.
* gdk-pixbuf.c: Mark property blurbs and nicks with P_().
Thu Jan 8 22:01:14 2004 Matthias Clasen <maclas@gmx.de>
* queryloaders.c (loader_sanity_check): Don't use bitwise operators
......
......@@ -6,6 +6,7 @@
#ifdef ENABLE_NLS
#include<libintl.h>
#define _(String) dgettext(GETTEXT_PACKAGE,String)
#define P_(String) dgettext(GETTEXT_PACKAGE,String)
#ifdef gettext_noop
#define N_(String) gettext_noop(String)
#else
......@@ -13,6 +14,7 @@
#endif
#else /* NLS is disabled */
#define _(String) (String)
#define P_(String) (String)
#define N_(String) (String)
#define textdomain(String) (String)
#define gettext(String) (String)
......
......@@ -97,8 +97,8 @@ gdk_pixbuf_class_init (GdkPixbufClass *klass)
g_object_class_install_property (object_class,
PROP_N_CHANNELS,
g_param_spec_int ("n_channels",
_("Number of Channels"),
_("The number of samples per pixel"),
P_("Number of Channels"),
P_("The number of samples per pixel"),
0,
G_MAXINT,
3,
......@@ -108,8 +108,8 @@ gdk_pixbuf_class_init (GdkPixbufClass *klass)
g_object_class_install_property (object_class,
PROP_COLORSPACE,
g_param_spec_enum ("colorspace",
_("Colorspace"),
_("The colorspace in which the samples are interpreted"),
P_("Colorspace"),
P_("The colorspace in which the samples are interpreted"),
GDK_TYPE_COLORSPACE,
GDK_COLORSPACE_RGB,
......@@ -119,8 +119,8 @@ gdk_pixbuf_class_init (GdkPixbufClass *klass)
g_object_class_install_property (object_class,
PROP_HAS_ALPHA,
g_param_spec_boolean ("has_alpha",
_("Has Alpha"),
_("Whether the pixbuf has an alpha channel"),
P_("Has Alpha"),
P_("Whether the pixbuf has an alpha channel"),
FALSE,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY));
......@@ -128,8 +128,8 @@ gdk_pixbuf_class_init (GdkPixbufClass *klass)
g_object_class_install_property (object_class,
PROP_BITS_PER_SAMPLE,
g_param_spec_int ("bits_per_sample",
_("Bits per Sample"),
_("The number of bits per sample"),
P_("Bits per Sample"),
P_("The number of bits per sample"),
1,
16,
8,
......@@ -139,8 +139,8 @@ gdk_pixbuf_class_init (GdkPixbufClass *klass)
g_object_class_install_property (object_class,
PROP_WIDTH,
g_param_spec_int ("width",
_("Width"),
_("The number of columns of the pixbuf"),
P_("Width"),
P_("The number of columns of the pixbuf"),
1,
G_MAXINT,
1,
......@@ -150,8 +150,8 @@ gdk_pixbuf_class_init (GdkPixbufClass *klass)
g_object_class_install_property (object_class,
PROP_HEIGHT,
g_param_spec_int ("height",
_("Height"),
_("The number of rows of the pixbuf"),
P_("Height"),
P_("The number of rows of the pixbuf"),
1,
G_MAXINT,
1,
......@@ -161,8 +161,8 @@ gdk_pixbuf_class_init (GdkPixbufClass *klass)
g_object_class_install_property (object_class,
PROP_ROWSTRIDE,
g_param_spec_int ("rowstride",
_("Rowstride"),
_("The number of bytes between the start of a row and the start of the next row"),
P_("Rowstride"),
P_("The number of bytes between the start of a row and the start of the next row"),
1,
G_MAXINT,
1,
......@@ -172,8 +172,8 @@ gdk_pixbuf_class_init (GdkPixbufClass *klass)
g_object_class_install_property (object_class,
PROP_PIXELS,
g_param_spec_pointer ("pixels",
_("Pixels"),
_("A pointer to the pixel data of the pixbuf"),
P_("Pixels"),
P_("A pointer to the pixel data of the pixbuf"),
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY));
}
......
......@@ -123,8 +123,8 @@ gdk_display_manager_class_init (GdkDisplayManagerClass *klass)
g_object_class_install_property (object_class,
PROP_DEFAULT_DISPLAY,
g_param_spec_object ("default-display",
_("Default Display"),
_("The default display for GDK"),
P_("Default Display"),
P_("The default display for GDK"),
GDK_TYPE_DISPLAY,
G_PARAM_READWRITE));
}
......
......@@ -6,6 +6,7 @@
#ifdef ENABLE_NLS
#include<libintl.h>
#define _(String) dgettext(GETTEXT_PACKAGE,String)
#define P_(String) dgettext(GETTEXT_PACKAGE,String)
#ifdef gettext_noop
#define N_(String) gettext_noop(String)
#else
......@@ -13,6 +14,7 @@
#endif
#else /* NLS is disabled */
#define _(String) (String)
#define P_(String) (String)
#define N_(String) (String)
#define textdomain(String) (String)
#define gettext(String) (String)
......
......@@ -134,15 +134,15 @@ gtk_accel_label_class_init (GtkAccelLabelClass *class)
g_object_class_install_property (gobject_class,
PROP_ACCEL_CLOSURE,
g_param_spec_boxed ("accel_closure",
_("Accelerator Closure"),
_("The closure to be monitored for accelerator changes"),
P_("Accelerator Closure"),
P_("The closure to be monitored for accelerator changes"),
G_TYPE_CLOSURE,
G_PARAM_READABLE | G_PARAM_WRITABLE));
g_object_class_install_property (gobject_class,
PROP_ACCEL_WIDGET,
g_param_spec_object ("accel_widget",
_("Accelerator Widget"),
_("The widget to be monitored for accelerator changes"),
P_("Accelerator Widget"),
P_("The widget to be monitored for accelerator changes"),
GTK_TYPE_WIDGET,
G_PARAM_READABLE | G_PARAM_WRITABLE));
}
......
......@@ -190,86 +190,86 @@ gtk_action_class_init (GtkActionClass *klass)
g_object_class_install_property (gobject_class,
PROP_NAME,
g_param_spec_string ("name",
_("Name"),
_("A unique name for the action."),
P_("Name"),
P_("A unique name for the action."),
NULL,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY));
g_object_class_install_property (gobject_class,
PROP_LABEL,
g_param_spec_string ("label",
_("Label"),
_("The label used for menu items and buttons that activate this action."),
P_("Label"),
P_("The label used for menu items and buttons that activate this action."),
NULL,
G_PARAM_READWRITE));
g_object_class_install_property (gobject_class,
PROP_SHORT_LABEL,
g_param_spec_string ("short_label",
_("Short label"),
_("A shorter label that may be used on toolbar buttons."),
P_("Short label"),
P_("A shorter label that may be used on toolbar buttons."),
NULL,
G_PARAM_READWRITE));
g_object_class_install_property (gobject_class,
PROP_TOOLTIP,
g_param_spec_string ("tooltip",
_("Tooltip"),
_("A tooltip for this action."),
P_("Tooltip"),
P_("A tooltip for this action."),
NULL,
G_PARAM_READWRITE));
g_object_class_install_property (gobject_class,
PROP_STOCK_ID,
g_param_spec_string ("stock_id",
_("Stock Icon"),
_("The stock icon displayed in widgets representing this action."),
P_("Stock Icon"),
P_("The stock icon displayed in widgets representing this action."),
NULL,
G_PARAM_READWRITE));
g_object_class_install_property (gobject_class,
PROP_VISIBLE_HORIZONTAL,
g_param_spec_boolean ("visible_horizontal",
_("Visible when horizontal"),
_("Whether the toolbar item is visible when the toolbar is in a horizontal orientation."),
P_("Visible when horizontal"),
P_("Whether the toolbar item is visible when the toolbar is in a horizontal orientation."),
TRUE,
G_PARAM_READWRITE));
g_object_class_install_property (gobject_class,
PROP_VISIBLE_VERTICAL,
g_param_spec_boolean ("visible_vertical",
_("Visible when vertical"),
_("Whether the toolbar item is visible when the toolbar is in a vertical orientation."),
P_("Visible when vertical"),
P_("Whether the toolbar item is visible when the toolbar is in a vertical orientation."),
TRUE,
G_PARAM_READWRITE));
g_object_class_install_property (gobject_class,
PROP_IS_IMPORTANT,
g_param_spec_boolean ("is_important",
_("Is important"),
_("Whether the action is considered important. When TRUE, toolitem proxies for this action show text in GTK_TOOLBAR_BOTH_HORIZ mode."),
P_("Is important"),
P_("Whether the action is considered important. When TRUE, toolitem proxies for this action show text in GTK_TOOLBAR_BOTH_HORIZ mode."),
FALSE,
G_PARAM_READWRITE));
g_object_class_install_property (gobject_class,
PROP_HIDE_IF_EMPTY,
g_param_spec_boolean ("hide_if_empty",
_("Hide if empty"),
_("When TRUE, empty menu proxies for this action are hidden."),
P_("Hide if empty"),
P_("When TRUE, empty menu proxies for this action are hidden."),
TRUE,
G_PARAM_READWRITE));
g_object_class_install_property (gobject_class,
PROP_SENSITIVE,
g_param_spec_boolean ("sensitive",
_("Sensitive"),
_("Whether the action is enabled."),
P_("Sensitive"),
P_("Whether the action is enabled."),
TRUE,
G_PARAM_READWRITE));
g_object_class_install_property (gobject_class,
PROP_VISIBLE,
g_param_spec_boolean ("visible",
_("Visible"),
_("Whether the action is visible."),
P_("Visible"),
P_("Whether the action is visible."),
TRUE,
G_PARAM_READWRITE));
g_object_class_install_property (gobject_class,
PROP_ACTION_GROUP,
g_param_spec_object ("action_group",
_("Action Group"),
_("The GtkActionGroup this GtkAction is associated with, or NULL (for internal use)."),
P_("Action Group"),
P_("The GtkActionGroup this GtkAction is associated with, or NULL (for internal use)."),
GTK_TYPE_ACTION_GROUP,
G_PARAM_READWRITE));
......
......@@ -130,23 +130,23 @@ gtk_action_group_class_init (GtkActionGroupClass *klass)
g_object_class_install_property (gobject_class,
PROP_NAME,
g_param_spec_string ("name",
_("Name"),
_("A name for the action group."),
P_("Name"),
P_("A name for the action group."),
NULL,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY));
g_object_class_install_property (gobject_class,
PROP_SENSITIVE,
g_param_spec_boolean ("sensitive",
_("Sensitive"),
_("Whether the action group is enabled."),
P_("Sensitive"),
P_("Whether the action group is enabled."),
TRUE,
G_PARAM_READWRITE));
g_object_class_install_property (gobject_class,
PROP_VISIBLE,
g_param_spec_boolean ("visible",
_("Visible"),
_("Whether the action group is visible."),
P_("Visible"),
P_("Whether the action group is visible."),
TRUE,
G_PARAM_READWRITE));
......
......@@ -113,8 +113,8 @@ gtk_alignment_class_init (GtkAlignmentClass *class)
g_object_class_install_property (gobject_class,
PROP_XALIGN,
g_param_spec_float("xalign",
_("Horizontal alignment"),
_("Horizontal position of child in available space. 0.0 is left aligned, 1.0 is right aligned"),
P_("Horizontal alignment"),
P_("Horizontal position of child in available space. 0.0 is left aligned, 1.0 is right aligned"),
0.0,
1.0,
0.5,
......@@ -123,8 +123,8 @@ gtk_alignment_class_init (GtkAlignmentClass *class)
g_object_class_install_property (gobject_class,
PROP_YALIGN,
g_param_spec_float("yalign",
_("Vertical alignment"),
_("Vertical position of child in available space. 0.0 is top aligned, 1.0 is bottom aligned"),
P_("Vertical alignment"),
P_("Vertical position of child in available space. 0.0 is top aligned, 1.0 is bottom aligned"),
0.0,
1.0,
0.5,
......@@ -132,8 +132,8 @@ gtk_alignment_class_init (GtkAlignmentClass *class)
g_object_class_install_property (gobject_class,
PROP_XSCALE,
g_param_spec_float("xscale",
_("Horizontal scale"),
_("If available horizontal space is bigger than needed for the child, how much of it to use for the child. 0.0 means none, 1.0 means all"),
P_("Horizontal scale"),
P_("If available horizontal space is bigger than needed for the child, how much of it to use for the child. 0.0 means none, 1.0 means all"),
0.0,
1.0,
1.0,
......@@ -141,8 +141,8 @@ gtk_alignment_class_init (GtkAlignmentClass *class)
g_object_class_install_property (gobject_class,
PROP_YSCALE,
g_param_spec_float("yscale",
_("Vertical scale"),
_("If available vertical space is bigger than needed for the child, how much of it to use for the child. 0.0 means none, 1.0 means all"),
P_("Vertical scale"),
P_("If available vertical space is bigger than needed for the child, how much of it to use for the child. 0.0 means none, 1.0 means all"),
0.0,
1.0,
1.0,
......@@ -159,8 +159,8 @@ gtk_alignment_class_init (GtkAlignmentClass *class)
g_object_class_install_property (gobject_class,
PROP_PADDING_TOP,
g_param_spec_uint("top_padding",
_("Top Padding"),
_("The padding to insert at the top of the widget."),
P_("Top Padding"),
P_("The padding to insert at the top of the widget."),
0,
G_MAXINT,
0,
......@@ -176,8 +176,8 @@ gtk_alignment_class_init (GtkAlignmentClass *class)
g_object_class_install_property (gobject_class,
PROP_PADDING_BOTTOM,
g_param_spec_uint("bottom_padding",
_("Bottom Padding"),
_("The padding to insert at the bottom of the widget."),
P_("Bottom Padding"),
P_("The padding to insert at the bottom of the widget."),
0,
G_MAXINT,
0,
......@@ -193,8 +193,8 @@ gtk_alignment_class_init (GtkAlignmentClass *class)
g_object_class_install_property (gobject_class,
PROP_PADDING_LEFT,
g_param_spec_uint("left_padding",
_("Left Padding"),
_("The padding to insert at the left of the widget."),
P_("Left Padding"),
P_("The padding to insert at the left of the widget."),
0,
G_MAXINT,
0,
......@@ -210,8 +210,8 @@ gtk_alignment_class_init (GtkAlignmentClass *class)
g_object_class_install_property (gobject_class,
PROP_PADDING_RIGHT,
g_param_spec_uint("right_padding",
_("Right Padding"),
_("The padding to insert at the right of the widget."),
P_("Right Padding"),
P_("The padding to insert at the right of the widget."),
0,
G_MAXINT,
0,
......
......@@ -95,16 +95,16 @@ gtk_arrow_class_init (GtkArrowClass *class)
g_object_class_install_property (gobject_class,
PROP_ARROW_TYPE,
g_param_spec_enum ("arrow_type",
_("Arrow direction"),
_("The direction the arrow should point"),
P_("Arrow direction"),
P_("The direction the arrow should point"),
GTK_TYPE_ARROW_TYPE,
GTK_ARROW_RIGHT,
G_PARAM_READABLE | G_PARAM_WRITABLE));
g_object_class_install_property (gobject_class,
PROP_SHADOW_TYPE,
g_param_spec_enum ("shadow_type",
_("Arrow shadow"),
_("Appearance of the shadow surrounding the arrow"),
P_("Arrow shadow"),
P_("Appearance of the shadow surrounding the arrow"),
GTK_TYPE_SHADOW_TYPE,
GTK_SHADOW_OUT,
G_PARAM_READABLE | G_PARAM_WRITABLE));
......
......@@ -105,29 +105,29 @@ gtk_aspect_frame_class_init (GtkAspectFrameClass *class)
g_object_class_install_property (gobject_class,
PROP_XALIGN,
g_param_spec_float ("xalign",
_("Horizontal Alignment"),
_("X alignment of the child"),
P_("Horizontal Alignment"),
P_("X alignment of the child"),
0.0, 1.0, 0.5,
G_PARAM_READABLE | G_PARAM_WRITABLE ));
g_object_class_install_property (gobject_class,
PROP_YALIGN,
g_param_spec_float ("yalign",
_("Vertical Alignment"),
_("Y alignment of the child"),
P_("Vertical Alignment"),
P_("Y alignment of the child"),
0.0, 1.0, 0.5,
G_PARAM_READABLE | G_PARAM_WRITABLE ));
g_object_class_install_property (gobject_class,
PROP_RATIO,
g_param_spec_float ("ratio",
_("Ratio"),
_("Aspect ratio if obey_child is FALSE"),
P_("Ratio"),
P_("Aspect ratio if obey_child is FALSE"),
MIN_RATIO, MAX_RATIO, 0.5,
G_PARAM_READABLE | G_PARAM_WRITABLE ));
g_object_class_install_property (gobject_class,
PROP_OBEY_CHILD,
g_param_spec_boolean ("obey_child",
_("Obey child"),
_("Force aspect ratio to match that of the frame's child"),
P_("Obey child"),
P_("Force aspect ratio to match that of the frame's child"),
TRUE,
G_PARAM_READABLE | G_PARAM_WRITABLE));
}
......
......@@ -116,8 +116,8 @@ gtk_button_box_class_init (GtkButtonBoxClass *class)
gtk_widget_class_install_style_property (widget_class,
g_param_spec_int ("child_min_width",
_("Minimum child width"),
_("Minimum width of buttons inside the box"),
P_("Minimum child width"),
P_("Minimum width of buttons inside the box"),
0,
G_MAXINT,
DEFAULT_CHILD_MIN_WIDTH,
......@@ -125,8 +125,8 @@ gtk_button_box_class_init (GtkButtonBoxClass *class)
gtk_widget_class_install_style_property (widget_class,
g_param_spec_int ("child_min_height",
_("Minimum child height"),
_("Minimum height of buttons inside the box"),
P_("Minimum child height"),
P_("Minimum height of buttons inside the box"),
0,
G_MAXINT,
DEFAULT_CHILD_MIN_HEIGHT,
......@@ -134,8 +134,8 @@ gtk_button_box_class_init (GtkButtonBoxClass *class)
gtk_widget_class_install_style_property (widget_class,
g_param_spec_int ("child_internal_pad_x",
_("Child internal width padding"),
_("Amount to increase child's size on either side"),
P_("Child internal width padding"),
P_("Amount to increase child's size on either side"),
0,
G_MAXINT,
DEFAULT_CHILD_IPAD_X,
......@@ -143,8 +143,8 @@ gtk_button_box_class_init (GtkButtonBoxClass *class)
gtk_widget_class_install_style_property (widget_class,
g_param_spec_int ("child_internal_pad_y",
_("Child internal height padding"),
_("Amount to increase child's size on the top and bottom"),
P_("Child internal height padding"),
P_("Amount to increase child's size on the top and bottom"),
0,
G_MAXINT,
DEFAULT_CHILD_IPAD_Y,
......@@ -152,8 +152,8 @@ gtk_button_box_class_init (GtkButtonBoxClass *class)
g_object_class_install_property (gobject_class,
PROP_LAYOUT_STYLE,
g_param_spec_enum ("layout_style",
_("Layout style"),
_("How to layout the buttons in the box. Possible values are default, spread, edge, start and end"),
P_("Layout style"),
P_("How to layout the buttons in the box. Possible values are default, spread, edge, start and end"),
GTK_TYPE_BUTTON_BOX_STYLE,
GTK_BUTTONBOX_DEFAULT_STYLE,
G_PARAM_READWRITE));
......@@ -161,8 +161,8 @@ gtk_button_box_class_init (GtkButtonBoxClass *class)
gtk_container_class_install_child_property (container_class,
CHILD_PROP_SECONDARY,
g_param_spec_boolean ("secondary",
_("Secondary"),
_("If TRUE, the child appears in a secondary group of children, suitable for, e.g., help buttons"),
P_("Secondary"),
P_("If TRUE, the child appears in a secondary group of children, suitable for, e.g., help buttons"),
FALSE,
G_PARAM_READWRITE));
}
......
......@@ -125,8 +125,8 @@ gtk_box_class_init (GtkBoxClass *class)
g_object_class_install_property (gobject_class,
PROP_SPACING,
g_param_spec_int ("spacing",
_("Spacing"),
_("The amount of space between children"),
P_("Spacing"),
P_("The amount of space between children"),
0,
G_MAXINT,
0,
......@@ -135,44 +135,44 @@ gtk_box_class_init (GtkBoxClass *class)
g_object_class_install_property (gobject_class,
PROP_HOMOGENEOUS,
g_param_spec_boolean ("homogeneous",
_("Homogeneous"),
_("Whether the children should all be the same size"),
P_("Homogeneous"),
P_("Whether the children should all be the same size"),
FALSE,
G_PARAM_READABLE | G_PARAM_WRITABLE));
gtk_container_class_install_child_property (container_class,
CHILD_PROP_EXPAND,
g_param_spec_boolean ("expand",
_("Expand"),
_("Whether the child should receive extra space when the parent grows"),
P_("Expand"),
P_("Whether the child should receive extra space when the parent grows"),
TRUE,
G_PARAM_READWRITE));
gtk_container_class_install_child_property (container_class,
CHILD_PROP_FILL,
g_param_spec_boolean ("fill",
_("Fill"),
_("Whether extra space given to the child should be allocated to the child or used as padding"),
P_("Fill"),
P_("Whether extra space given to the child should be allocated to the child or used as padding"),
TRUE,
G_PARAM_READWRITE));
gtk_container_class_install_child_property (container_class,
CHILD_PROP_PADDING,
g_param_spec_uint ("padding",
_("Padding"),
_("Extra space to put between the child and its neighbors, in pixels"),
P_("Padding"),
P_("Extra space to put between the child and its neighbors, in pixels"),
0, G_MAXINT, 0,
G_PARAM_READWRITE));
gtk_container_class_install_child_property (container_class,
CHILD_PROP_PACK_TYPE,
g_param_spec_enum ("pack_type",
_("Pack type"),
_("A GtkPackType indicating whether the child is packed with reference to the start or end of the parent"),
P_("Pack type"),
P_("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",
_("Position"),
_("The index of the child in the parent"),
P_("Position"),
P_("The index of the child in the parent"),
-1, G_MAXINT, 0,
G_PARAM_READWRITE));
}
......
......@@ -200,40 +200,40 @@ gtk_button_class_init (GtkButtonClass *klass)
g_object_class_install_property (gobject_class,
PROP_LABEL,
g_param_spec_string ("label",
_("Label"),
_("Text of the label widget inside the button, if the button contains a label widget"),
P_("Label"),
P_("Text of the label widget inside the button, if the button contains a label widget"),
NULL,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
g_object_class_install_property (gobject_class,
PROP_USE_UNDERLINE,
g_param_spec_boolean ("use_underline",
_("Use underline"),
_("If set, an underline in the text indicates the next character should be used for the mnemonic accelerator key"),
P_("Use underline"),
P_("If set, an underline in the text indicates the next character should be used for the mnemonic accelerator key"),
FALSE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
g_object_class_install_property (gobject_class,
PROP_USE_STOCK,
g_param_spec_boolean ("use_stock",
_("Use stock"),
_("If set, the label is used to pick a stock item instead of being displayed"),
P_("Use stock"),
P_("If set, the label is used to pick a stock item instead of being displayed"),
FALSE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
g_object_class_install_property (gobject_class,
PROP_FOCUS_ON_CLICK,
g_param_spec_boolean ("focus_on_click",
_("Focus on click"),
_("Whether the button grabs focus when it is clicked with the mouse"),
P_("Focus on click"),
P_("Whether the button grabs focus when it is clicked with the mouse"),