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_().
This commit is contained in:
committed by
Matthias Clasen
parent
fb526d239a
commit
07d4d314b6
100
gtk/gtkwidget.c
100
gtk/gtkwidget.c
@ -403,23 +403,23 @@ gtk_widget_class_init (GtkWidgetClass *klass)
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_NAME,
|
||||
g_param_spec_string ("name",
|
||||
_("Widget name"),
|
||||
_("The name of the widget"),
|
||||
P_("Widget name"),
|
||||
P_("The name of the widget"),
|
||||
NULL,
|
||||
G_PARAM_READWRITE));
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_PARENT,
|
||||
g_param_spec_object ("parent",
|
||||
_("Parent widget"),
|
||||
_("The parent widget of this widget. Must be a Container widget"),
|
||||
P_("Parent widget"),
|
||||
P_("The parent widget of this widget. Must be a Container widget"),
|
||||
GTK_TYPE_CONTAINER,
|
||||
G_PARAM_READWRITE));
|
||||
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_WIDTH_REQUEST,
|
||||
g_param_spec_int ("width_request",
|
||||
_("Width request"),
|
||||
_("Override for width request of the widget, or -1 if natural request should be used"),
|
||||
P_("Width request"),
|
||||
P_("Override for width request of the widget, or -1 if natural request should be used"),
|
||||
-1,
|
||||
G_MAXINT,
|
||||
-1,
|
||||
@ -427,8 +427,8 @@ gtk_widget_class_init (GtkWidgetClass *klass)
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_HEIGHT_REQUEST,
|
||||
g_param_spec_int ("height_request",
|
||||
_("Height request"),
|
||||
_("Override for height request of the widget, or -1 if natural request should be used"),
|
||||
P_("Height request"),
|
||||
P_("Override for height request of the widget, or -1 if natural request should be used"),
|
||||
-1,
|
||||
G_MAXINT,
|
||||
-1,
|
||||
@ -436,101 +436,101 @@ gtk_widget_class_init (GtkWidgetClass *klass)
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_VISIBLE,
|
||||
g_param_spec_boolean ("visible",
|
||||
_("Visible"),
|
||||
_("Whether the widget is visible"),
|
||||
P_("Visible"),
|
||||
P_("Whether the widget is visible"),
|
||||
FALSE,
|
||||
G_PARAM_READWRITE));
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_SENSITIVE,
|
||||
g_param_spec_boolean ("sensitive",
|
||||
_("Sensitive"),
|
||||
_("Whether the widget responds to input"),
|
||||
P_("Sensitive"),
|
||||
P_("Whether the widget responds to input"),
|
||||
TRUE,
|
||||
G_PARAM_READWRITE));
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_APP_PAINTABLE,
|
||||
g_param_spec_boolean ("app_paintable",
|
||||
_("Application paintable"),
|
||||
_("Whether the application will paint directly on the widget"),
|
||||
P_("Application paintable"),
|
||||
P_("Whether the application will paint directly on the widget"),
|
||||
FALSE,
|
||||
G_PARAM_READWRITE));
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_CAN_FOCUS,
|
||||
g_param_spec_boolean ("can_focus",
|
||||
_("Can focus"),
|
||||
_("Whether the widget can accept the input focus"),
|
||||
P_("Can focus"),
|
||||
P_("Whether the widget can accept the input focus"),
|
||||
FALSE,
|
||||
G_PARAM_READWRITE));
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_HAS_FOCUS,
|
||||
g_param_spec_boolean ("has_focus",
|
||||
_("Has focus"),
|
||||
_("Whether the widget has the input focus"),
|
||||
P_("Has focus"),
|
||||
P_("Whether the widget has the input focus"),
|
||||
FALSE,
|
||||
G_PARAM_READWRITE));
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_IS_FOCUS,
|
||||
g_param_spec_boolean ("is_focus",
|
||||
_("Is focus"),
|
||||
_("Whether the widget is the focus widget within the toplevel"),
|
||||
P_("Is focus"),
|
||||
P_("Whether the widget is the focus widget within the toplevel"),
|
||||
FALSE,
|
||||
G_PARAM_READWRITE));
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_CAN_DEFAULT,
|
||||
g_param_spec_boolean ("can_default",
|
||||
_("Can default"),
|
||||
_("Whether the widget can be the default widget"),
|
||||
P_("Can default"),
|
||||
P_("Whether the widget can be the default widget"),
|
||||
FALSE,
|
||||
G_PARAM_READWRITE));
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_HAS_DEFAULT,
|
||||
g_param_spec_boolean ("has_default",
|
||||
_("Has default"),
|
||||
_("Whether the widget is the default widget"),
|
||||
P_("Has default"),
|
||||
P_("Whether the widget is the default widget"),
|
||||
FALSE,
|
||||
G_PARAM_READWRITE));
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_RECEIVES_DEFAULT,
|
||||
g_param_spec_boolean ("receives_default",
|
||||
_("Receives default"),
|
||||
_("If TRUE, the widget will receive the default action when it is focused"),
|
||||
P_("Receives default"),
|
||||
P_("If TRUE, the widget will receive the default action when it is focused"),
|
||||
FALSE,
|
||||
G_PARAM_READWRITE));
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_COMPOSITE_CHILD,
|
||||
g_param_spec_boolean ("composite_child",
|
||||
_("Composite child"),
|
||||
_("Whether the widget is part of a composite widget"),
|
||||
P_("Composite child"),
|
||||
P_("Whether the widget is part of a composite widget"),
|
||||
FALSE,
|
||||
G_PARAM_READABLE));
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_STYLE,
|
||||
g_param_spec_object ("style",
|
||||
_("Style"),
|
||||
_("The style of the widget, which contains information about how it will look (colors etc)"),
|
||||
P_("Style"),
|
||||
P_("The style of the widget, which contains information about how it will look (colors etc)"),
|
||||
GTK_TYPE_STYLE,
|
||||
G_PARAM_READWRITE));
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_EVENTS,
|
||||
g_param_spec_flags ("events",
|
||||
_("Events"),
|
||||
_("The event mask that decides what kind of GdkEvents this widget gets"),
|
||||
P_("Events"),
|
||||
P_("The event mask that decides what kind of GdkEvents this widget gets"),
|
||||
GDK_TYPE_EVENT_MASK,
|
||||
GDK_STRUCTURE_MASK,
|
||||
G_PARAM_READWRITE));
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_EXTENSION_EVENTS,
|
||||
g_param_spec_enum ("extension_events",
|
||||
_("Extension events"),
|
||||
_("The mask that decides what kind of extension events this widget gets"),
|
||||
P_("Extension events"),
|
||||
P_("The mask that decides what kind of extension events this widget gets"),
|
||||
GDK_TYPE_EXTENSION_MODE,
|
||||
GDK_EXTENSION_EVENTS_NONE,
|
||||
G_PARAM_READWRITE));
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_NO_SHOW_ALL,
|
||||
g_param_spec_boolean ("no_show_all",
|
||||
_("No show all"),
|
||||
_("Whether gtk_widget_show_all() should not affect this widget"),
|
||||
P_("No show all"),
|
||||
P_("Whether gtk_widget_show_all() should not affect this widget"),
|
||||
FALSE,
|
||||
G_PARAM_READWRITE));
|
||||
widget_signals[SHOW] =
|
||||
@ -1359,46 +1359,46 @@ gtk_widget_class_init (GtkWidgetClass *klass)
|
||||
|
||||
gtk_widget_class_install_style_property (klass,
|
||||
g_param_spec_boolean ("interior_focus",
|
||||
_("Interior Focus"),
|
||||
_("Whether to draw the focus indicator inside widgets"),
|
||||
P_("Interior Focus"),
|
||||
P_("Whether to draw the focus indicator inside widgets"),
|
||||
TRUE,
|
||||
G_PARAM_READABLE));
|
||||
|
||||
gtk_widget_class_install_style_property (klass,
|
||||
g_param_spec_int ("focus-line-width",
|
||||
_("Focus linewidth"),
|
||||
_("Width, in pixels, of the focus indicator line"),
|
||||
P_("Focus linewidth"),
|
||||
P_("Width, in pixels, of the focus indicator line"),
|
||||
0, G_MAXINT, 1,
|
||||
G_PARAM_READWRITE));
|
||||
|
||||
gtk_widget_class_install_style_property (klass,
|
||||
g_param_spec_string ("focus-line-pattern",
|
||||
_("Focus line dash pattern"),
|
||||
_("Dash pattern used to draw the focus indicator"),
|
||||
P_("Focus line dash pattern"),
|
||||
P_("Dash pattern used to draw the focus indicator"),
|
||||
"\1\1",
|
||||
G_PARAM_READWRITE));
|
||||
gtk_widget_class_install_style_property (klass,
|
||||
g_param_spec_int ("focus-padding",
|
||||
_("Focus padding"),
|
||||
_("Width, in pixels, between focus indicator and the widget 'box'"),
|
||||
P_("Focus padding"),
|
||||
P_("Width, in pixels, between focus indicator and the widget 'box'"),
|
||||
0, G_MAXINT, 1,
|
||||
G_PARAM_READWRITE));
|
||||
gtk_widget_class_install_style_property (klass,
|
||||
g_param_spec_boxed ("cursor-color",
|
||||
_("Cursor color"),
|
||||
_("Color with which to draw insertion cursor"),
|
||||
P_("Cursor color"),
|
||||
P_("Color with which to draw insertion cursor"),
|
||||
GDK_TYPE_COLOR,
|
||||
G_PARAM_READABLE));
|
||||
gtk_widget_class_install_style_property (klass,
|
||||
g_param_spec_boxed ("secondary-cursor-color",
|
||||
_("Secondary cursor color"),
|
||||
_("Color with which to draw the secondary insertion cursor when editing mixed right-to-left and left-to-right text"),
|
||||
P_("Secondary cursor color"),
|
||||
P_("Color with which to draw the secondary insertion cursor when editing mixed right-to-left and left-to-right text"),
|
||||
GDK_TYPE_COLOR,
|
||||
G_PARAM_READABLE));
|
||||
gtk_widget_class_install_style_property (klass,
|
||||
g_param_spec_float ("cursor-aspect-ratio",
|
||||
_("Cursor line aspect ratio"),
|
||||
_("Aspect ratio with which to draw insertion cursor"),
|
||||
P_("Cursor line aspect ratio"),
|
||||
P_("Aspect ratio with which to draw insertion cursor"),
|
||||
0.0, 1.0, 0.04,
|
||||
G_PARAM_READABLE));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user