summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdk/gdkapplaunchcontext.c2
-rw-r--r--gdk/gdkclipboard.c16
-rw-r--r--gdk/gdkcontentprovider.c8
-rw-r--r--gdk/gdkcursor.c20
-rw-r--r--gdk/gdkdevice.c64
-rw-r--r--gdk/gdkdevicetool.c16
-rw-r--r--gdk/gdkdisplay.c12
-rw-r--r--gdk/gdkdisplaymanager.c4
-rw-r--r--gdk/gdkdrag.c28
-rw-r--r--gdk/gdkdrawcontext.c8
-rw-r--r--gdk/gdkdrop.c24
-rw-r--r--gdk/gdkglcontext.c12
-rw-r--r--gdk/gdkintl.h2
-rw-r--r--gdk/gdkkeys.c4
-rw-r--r--gdk/gdkmonitor.c44
-rw-r--r--gdk/gdkpopup.c8
-rw-r--r--gdk/gdkseat.c4
-rw-r--r--gdk/gdksurface.c28
-rw-r--r--gdk/gdktexture.c8
-rw-r--r--gdk/gdktoplevel.c40
-rw-r--r--gdk/macos/gdkmacosdrag.c4
-rw-r--r--gdk/macos/gdkmacossurface.c4
-rw-r--r--gdk/win32/gdkcursor-win32.c12
-rw-r--r--gdk/x11/gdkdevice-xi2.c4
-rw-r--r--gdk/x11/gdkdevicemanager-xi2.c16
-rw-r--r--gsk/gl/gskglprofiler.c4
-rw-r--r--gsk/gl/gskglshadowlibrary.c4
-rw-r--r--gsk/gl/gskgltexturelibrary.c4
-rw-r--r--gsk/gskglshader.c8
-rw-r--r--gsk/gskrenderer.c8
-rw-r--r--gtk/gtkaboutdialog.c64
-rw-r--r--gtk/gtkaccessible.c4
-rw-r--r--gtk/gtkactionable.c6
-rw-r--r--gtk/gtkactionbar.c4
-rw-r--r--gtk/gtkactionhelper.c6
-rw-r--r--gtk/gtkactionmuxer.c6
-rw-r--r--gtk/gtkadjustment.c24
-rw-r--r--gtk/gtkappchooser.c4
-rw-r--r--gtk/gtkappchooserbutton.c16
-rw-r--r--gtk/gtkappchooserdialog.c8
-rw-r--r--gtk/gtkappchooserwidget.c24
-rw-r--r--gtk/gtkapplication.c16
-rw-r--r--gtk/gtkapplicationwindow.c5
-rw-r--r--gtk/gtkaspectframe.c20
-rw-r--r--gtk/gtkassistant.c24
-rw-r--r--gtk/gtkatcontext.c12
-rw-r--r--gtk/gtkbookmarklist.c16
-rw-r--r--gtk/gtkboolfilter.c8
-rw-r--r--gtk/gtkbox.c12
-rw-r--r--gtk/gtkboxlayout.c12
-rw-r--r--gtk/gtkbuilder.c12
-rw-r--r--gtk/gtkbuilderlistitemfactory.c12
-rw-r--r--gtk/gtkbutton.c20
-rw-r--r--gtk/gtkcalendar.c24
-rw-r--r--gtk/gtkcellarea.c12
-rw-r--r--gtk/gtkcellareabox.c21
-rw-r--r--gtk/gtkcellareacontext.c20
-rw-r--r--gtk/gtkcelleditable.c4
-rw-r--r--gtk/gtkcellrenderer.c60
-rw-r--r--gtk/gtkcellrendereraccel.c16
-rw-r--r--gtk/gtkcellrenderercombo.c12
-rw-r--r--gtk/gtkcellrendererpixbuf.c28
-rw-r--r--gtk/gtkcellrendererprogress.c24
-rw-r--r--gtk/gtkcellrendererspin.c12
-rw-r--r--gtk/gtkcellrendererspinner.c12
-rw-r--r--gtk/gtkcellrenderertext.c190
-rw-r--r--gtk/gtkcellrenderertoggle.c16
-rw-r--r--gtk/gtkcellview.c23
-rw-r--r--gtk/gtkcenterbox.c4
-rw-r--r--gtk/gtkcheckbutton.c24
-rw-r--r--gtk/gtkcolorbutton.c10
-rw-r--r--gtk/gtkcolorchooser.c8
-rw-r--r--gtk/gtkcolorchooserdialog.c2
-rw-r--r--gtk/gtkcolorchooserwidget.c2
-rw-r--r--gtk/gtkcolorplane.c12
-rw-r--r--gtk/gtkcolorscale.c2
-rw-r--r--gtk/gtkcolorswatch.c10
-rw-r--r--gtk/gtkcolumnview.c32
-rw-r--r--gtk/gtkcolumnviewcolumn.c36
-rw-r--r--gtk/gtkcombobox.c50
-rw-r--r--gtk/gtkconstraint.c32
-rw-r--r--gtk/gtkconstraintguide.c32
-rw-r--r--gtk/gtkcssnode.c10
-rw-r--r--gtk/gtkcssshorthandproperty.c4
-rw-r--r--gtk/gtkcssstyleproperty.c20
-rw-r--r--gtk/gtkdialog.c4
-rw-r--r--gtk/gtkdirectorylist.c24
-rw-r--r--gtk/gtkdragicon.c4
-rw-r--r--gtk/gtkdragsource.c8
-rw-r--r--gtk/gtkdrawingarea.c8
-rw-r--r--gtk/gtkdropcontrollermotion.c12
-rw-r--r--gtk/gtkdropdown.c32
-rw-r--r--gtk/gtkdroptarget.c24
-rw-r--r--gtk/gtkdroptargetasync.c4
-rw-r--r--gtk/gtkeditable.c32
-rw-r--r--gtk/gtkeditablelabel.c4
-rw-r--r--gtk/gtkentry.c156
-rw-r--r--gtk/gtkentrybuffer.c12
-rw-r--r--gtk/gtkentrycompletion.c36
-rw-r--r--gtk/gtkeventcontroller.c16
-rw-r--r--gtk/gtkeventcontrollerfocus.c8
-rw-r--r--gtk/gtkeventcontrollermotion.c8
-rw-r--r--gtk/gtkeventcontrollerscroll.c4
-rw-r--r--gtk/gtkexpander.c28
-rw-r--r--gtk/gtkfilechooser.c25
-rw-r--r--gtk/gtkfilechoosernative.c8
-rw-r--r--gtk/gtkfilechooserwidget.c8
-rw-r--r--gtk/gtkfilefilter.c4
-rw-r--r--gtk/gtkfilterlistmodel.c16
-rw-r--r--gtk/gtkfixedlayout.c4
-rw-r--r--gtk/gtkflattenlistmodel.c4
-rw-r--r--gtk/gtkflowbox.c38
-rw-r--r--gtk/gtkfontbutton.c16
-rw-r--r--gtk/gtkfontchooser.c28
-rw-r--r--gtk/gtkfontchooserwidget.c4
-rw-r--r--gtk/gtkframe.c16
-rw-r--r--gtk/gtkgesture.c5
-rw-r--r--gtk/gtkgesturelongpress.c4
-rw-r--r--gtk/gtkgesturepan.c4
-rw-r--r--gtk/gtkgesturesingle.c12
-rw-r--r--gtk/gtkglarea.c20
-rw-r--r--gtk/gtkgrid.c20
-rw-r--r--gtk/gtkgridlayout.c36
-rw-r--r--gtk/gtkgridview.c24
-rw-r--r--gtk/gtkheaderbar.c12
-rw-r--r--gtk/gtkicontheme.c32
-rw-r--r--gtk/gtkiconview.c68
-rw-r--r--gtk/gtkimage.c36
-rw-r--r--gtk/gtkimcontext.c8
-rw-r--r--gtk/gtkinfobar.c12
-rw-r--r--gtk/gtkintl.h2
-rw-r--r--gtk/gtklabel.c76
-rw-r--r--gtk/gtklayoutchild.c8
-rw-r--r--gtk/gtklevelbar.c20
-rw-r--r--gtk/gtklinkbutton.c8
-rw-r--r--gtk/gtklistbase.c4
-rw-r--r--gtk/gtklistbox.c28
-rw-r--r--gtk/gtklistitem.c24
-rw-r--r--gtk/gtklistitemwidget.c8
-rw-r--r--gtk/gtklistview.c20
-rw-r--r--gtk/gtklockbutton.c24
-rw-r--r--gtk/gtkmagnifier.c12
-rw-r--r--gtk/gtkmaplistmodel.c8
-rw-r--r--gtk/gtkmediacontrols.c4
-rw-r--r--gtk/gtkmediafile.c8
-rw-r--r--gtk/gtkmediastream.c52
-rw-r--r--gtk/gtkmenubutton.c40
-rw-r--r--gtk/gtkmenutrackeritem.c22
-rw-r--r--gtk/gtkmessagedialog.c28
-rw-r--r--gtk/gtkmodelbutton.c40
-rw-r--r--gtk/gtkmountoperation.c12
-rw-r--r--gtk/gtkmultiselection.c4
-rw-r--r--gtk/gtknativedialog.c16
-rw-r--r--gtk/gtknoselection.c4
-rw-r--r--gtk/gtknotebook.c72
-rw-r--r--gtk/gtknumericsorter.c8
-rw-r--r--gtk/gtkorientable.c4
-rw-r--r--gtk/gtkoverlay.c4
-rw-r--r--gtk/gtkoverlaylayout.c8
-rw-r--r--gtk/gtkpadcontroller.c8
-rw-r--r--gtk/gtkpaned.c44
-rw-r--r--gtk/gtkpasswordentry.c16
-rw-r--r--gtk/gtkpicture.c20
-rw-r--r--gtk/gtkplacessidebar.c32
-rw-r--r--gtk/gtkplacesview.c12
-rw-r--r--gtk/gtkplacesviewrow.c28
-rw-r--r--gtk/gtkpopover.c32
-rw-r--r--gtk/gtkpopovermenu.c8
-rw-r--r--gtk/gtkpopovermenubar.c4
-rw-r--r--gtk/gtkprintbackend.c4
-rw-r--r--gtk/gtkprinter.c44
-rw-r--r--gtk/gtkprinteroption.c4
-rw-r--r--gtk/gtkprinteroptionwidget.c8
-rw-r--r--gtk/gtkprintjob.c22
-rw-r--r--gtk/gtkprintoperation.c72
-rw-r--r--gtk/gtkprintunixdialog.c32
-rw-r--r--gtk/gtkprogressbar.c25
-rw-r--r--gtk/gtkpropertylookuplistmodel.c12
-rw-r--r--gtk/gtkrange.c24
-rw-r--r--gtk/gtkrecentmanager.c8
-rw-r--r--gtk/gtkrevealer.c20
-rw-r--r--gtk/gtkscale.c16
-rw-r--r--gtk/gtkscalebutton.c12
-rw-r--r--gtk/gtkscrollable.c20
-rw-r--r--gtk/gtkscrollbar.c4
-rw-r--r--gtk/gtkscrolledwindow.c60
-rw-r--r--gtk/gtksearchbar.c16
-rw-r--r--gtk/gtksearchentry.c12
-rw-r--r--gtk/gtkselectionfiltermodel.c4
-rw-r--r--gtk/gtksettings.c207
-rw-r--r--gtk/gtkshortcut.c12
-rw-r--r--gtk/gtkshortcutaction.c8
-rw-r--r--gtk/gtkshortcutcontroller.c12
-rw-r--r--gtk/gtkshortcutlabel.c4
-rw-r--r--gtk/gtkshortcutsgroup.c14
-rw-r--r--gtk/gtkshortcutssection.c8
-rw-r--r--gtk/gtkshortcutsshortcut.c44
-rw-r--r--gtk/gtkshortcutswindow.c4
-rw-r--r--gtk/gtkshortcuttrigger.c20
-rw-r--r--gtk/gtksidebarrow.c60
-rw-r--r--gtk/gtksingleselection.c20
-rw-r--r--gtk/gtksizegroup.c5
-rw-r--r--gtk/gtkslicelistmodel.c12
-rw-r--r--gtk/gtksortlistmodel.c16
-rw-r--r--gtk/gtkspinbutton.c32
-rw-r--r--gtk/gtkspinner.c4
-rw-r--r--gtk/gtkstack.c46
-rw-r--r--gtk/gtkstacksidebar.c3
-rw-r--r--gtk/gtkstackswitcher.c4
-rw-r--r--gtk/gtkstringfilter.c16
-rw-r--r--gtk/gtkstringlist.c2
-rw-r--r--gtk/gtkstringsorter.c8
-rw-r--r--gtk/gtkstylecontext.c4
-rw-r--r--gtk/gtkstyleproperty.c4
-rw-r--r--gtk/gtkswitch.c8
-rw-r--r--gtk/gtktext.c72
-rw-r--r--gtk/gtktextbuffer.c28
-rw-r--r--gtk/gtktextmark.c8
-rw-r--r--gtk/gtktexttag.c356
-rw-r--r--gtk/gtktextview.c84
-rw-r--r--gtk/gtktextviewchild.c4
-rw-r--r--gtk/gtktogglebutton.c8
-rw-r--r--gtk/gtktreeexpander.c16
-rw-r--r--gtk/gtktreelistmodel.c32
-rw-r--r--gtk/gtktreelistrowsorter.c4
-rw-r--r--gtk/gtktreemodelfilter.c8
-rw-r--r--gtk/gtktreemodelsort.c4
-rw-r--r--gtk/gtktreepopover.c8
-rw-r--r--gtk/gtktreeselection.c4
-rw-r--r--gtk/gtktreeview.c68
-rw-r--r--gtk/gtktreeviewcolumn.c76
-rw-r--r--gtk/gtkvideo.c16
-rw-r--r--gtk/gtkviewport.c8
-rw-r--r--gtk/gtkvolumebutton.c4
-rw-r--r--gtk/gtkwidget.c136
-rw-r--r--gtk/gtkwidgetpaintable.c4
-rw-r--r--gtk/gtkwindow.c96
-rw-r--r--gtk/gtkwindowcontrols.c12
-rw-r--r--gtk/gtkwindowhandle.c4
-rw-r--r--gtk/inspector/a11y.c10
-rw-r--r--gtk/inspector/action-editor.c4
-rw-r--r--gtk/inspector/cellrenderergraph.c12
-rw-r--r--gtk/inspector/css-node-tree.c4
-rw-r--r--gtk/inspector/graphdata.c4
-rw-r--r--gtk/inspector/gtkdataviewer.c4
-rw-r--r--gtk/inspector/prop-editor.c6
-rw-r--r--gtk/inspector/prop-holder.c6
-rw-r--r--gtk/inspector/prop-list.c2
-rw-r--r--gtk/inspector/recorder.c12
-rw-r--r--gtk/inspector/recorderrow.c4
-rw-r--r--gtk/inspector/recording.c4
-rw-r--r--gtk/inspector/size-groups.c2
-rw-r--r--gtk/inspector/type-info.c2
-rw-r--r--gtk/inspector/window.c2
-rw-r--r--modules/media/gtkgstsink.c8
-rw-r--r--modules/printbackends/gtkprintercups.c4
256 files changed, 1360 insertions, 3965 deletions
diff --git a/gdk/gdkapplaunchcontext.c b/gdk/gdkapplaunchcontext.c
index 6ce9536b0f..17e5acc4f7 100644
--- a/gdk/gdkapplaunchcontext.c
+++ b/gdk/gdkapplaunchcontext.c
@@ -125,7 +125,7 @@ gdk_app_launch_context_class_init (GdkAppLaunchContextClass *klass)
* The display that the `GdkAppLaunchContext` is on.
*/
g_object_class_install_property (gobject_class, PROP_DISPLAY,
- g_param_spec_object ("display", P_("Display"), P_("Display"),
+ g_param_spec_object ("display", NULL, NULL,
GDK_TYPE_DISPLAY,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
}
diff --git a/gdk/gdkclipboard.c b/gdk/gdkclipboard.c
index 3daf2dcb04..95e0fda40e 100644
--- a/gdk/gdkclipboard.c
+++ b/gdk/gdkclipboard.c
@@ -357,9 +357,7 @@ gdk_clipboard_class_init (GdkClipboardClass *class)
* The `GdkDisplay` that the clipboard belongs to.
*/
properties[PROP_DISPLAY] =
- g_param_spec_object ("display",
- "Display",
- "Display owning this clipboard",
+ g_param_spec_object ("display", NULL, NULL,
GDK_TYPE_DISPLAY,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |
@@ -372,9 +370,7 @@ gdk_clipboard_class_init (GdkClipboardClass *class)
* The possible formats that the clipboard can provide its data in.
*/
properties[PROP_FORMATS] =
- g_param_spec_boxed ("formats",
- "Formats",
- "The possible formats for data",
+ g_param_spec_boxed ("formats", NULL, NULL,
GDK_TYPE_CONTENT_FORMATS,
G_PARAM_READABLE |
G_PARAM_STATIC_STRINGS |
@@ -386,9 +382,7 @@ gdk_clipboard_class_init (GdkClipboardClass *class)
* %TRUE if the contents of the clipboard are owned by this process.
*/
properties[PROP_LOCAL] =
- g_param_spec_boolean ("local",
- "Local",
- "If the contents are owned by this process",
+ g_param_spec_boolean ("local", NULL, NULL,
TRUE,
G_PARAM_READABLE |
G_PARAM_STATIC_STRINGS |
@@ -401,9 +395,7 @@ gdk_clipboard_class_init (GdkClipboardClass *class)
* provided otherwise.
*/
properties[PROP_CONTENT] =
- g_param_spec_object ("content",
- "Content",
- "Provider of the clipboard's content",
+ g_param_spec_object ("content", NULL, NULL,
GDK_TYPE_CONTENT_PROVIDER,
G_PARAM_READABLE |
G_PARAM_STATIC_STRINGS |
diff --git a/gdk/gdkcontentprovider.c b/gdk/gdkcontentprovider.c
index 0e9a497bd4..043e165d59 100644
--- a/gdk/gdkcontentprovider.c
+++ b/gdk/gdkcontentprovider.c
@@ -173,9 +173,7 @@ gdk_content_provider_class_init (GdkContentProviderClass *class)
* The possible formats that the provider can provide its data in.
*/
properties[PROP_FORMATS] =
- g_param_spec_boxed ("formats",
- "Formats",
- "The possible formats for data",
+ g_param_spec_boxed ("formats", NULL, NULL,
GDK_TYPE_CONTENT_FORMATS,
G_PARAM_READABLE |
G_PARAM_STATIC_STRINGS |
@@ -187,9 +185,7 @@ gdk_content_provider_class_init (GdkContentProviderClass *class)
* The subset of formats that clipboard managers should store this provider's data in.
*/
properties[PROP_STORABLE_FORMATS] =
- g_param_spec_boxed ("storable-formats",
- "Storable formats",
- "The formats that data should be stored in",
+ g_param_spec_boxed ("storable-formats", NULL, NULL,
GDK_TYPE_CONTENT_FORMATS,
G_PARAM_READABLE |
G_PARAM_STATIC_STRINGS |
diff --git a/gdk/gdkcursor.c b/gdk/gdkcursor.c
index ccb7e39b77..43f6dad5db 100644
--- a/gdk/gdkcursor.c
+++ b/gdk/gdkcursor.c
@@ -174,9 +174,7 @@ gdk_cursor_class_init (GdkCursorClass *cursor_class)
*/
g_object_class_install_property (object_class,
PROP_FALLBACK,
- g_param_spec_object ("fallback",
- P_("Fallback"),
- P_("Cursor image to fall back to if this cursor cannot be displayed"),
+ g_param_spec_object ("fallback", NULL, NULL,
GDK_TYPE_CURSOR,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS));
@@ -188,9 +186,7 @@ gdk_cursor_class_init (GdkCursorClass *cursor_class)
*/
g_object_class_install_property (object_class,
PROP_HOTSPOT_X,
- g_param_spec_int ("hotspot-x",
- P_("Hotspot X"),
- P_("Horizontal offset of the cursor hotspot"),
+ g_param_spec_int ("hotspot-x", NULL, NULL,
0, G_MAXINT, 0,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS));
@@ -202,9 +198,7 @@ gdk_cursor_class_init (GdkCursorClass *cursor_class)
*/
g_object_class_install_property (object_class,
PROP_HOTSPOT_Y,
- g_param_spec_int ("hotspot-y",
- P_("Hotspot Y"),
- P_("Vertical offset of the cursor hotspot"),
+ g_param_spec_int ("hotspot-y", NULL, NULL,
0, G_MAXINT, 0,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS));
@@ -218,9 +212,7 @@ gdk_cursor_class_init (GdkCursorClass *cursor_class)
*/
g_object_class_install_property (object_class,
PROP_NAME,
- g_param_spec_string ("name",
- P_("Name"),
- P_("Name of this cursor"),
+ g_param_spec_string ("name", NULL, NULL,
NULL,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS));
@@ -234,9 +226,7 @@ gdk_cursor_class_init (GdkCursorClass *cursor_class)
*/
g_object_class_install_property (object_class,
PROP_TEXTURE,
- g_param_spec_object ("texture",
- P_("Texture"),
- P_("The texture displayed by this cursor"),
+ g_param_spec_object ("texture", NULL, NULL,
GDK_TYPE_TEXTURE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS));
diff --git a/gdk/gdkdevice.c b/gdk/gdkdevice.c
index 2c622b993a..c4473852c4 100644
--- a/gdk/gdkdevice.c
+++ b/gdk/gdkdevice.c
@@ -109,9 +109,7 @@ gdk_device_class_init (GdkDeviceClass *klass)
* The `GdkDisplay` the `GdkDevice` pertains to.
*/
device_props[PROP_DISPLAY] =
- g_param_spec_object ("display",
- P_("Device Display"),
- P_("Display which the device belongs to"),
+ g_param_spec_object ("display", NULL, NULL,
GDK_TYPE_DISPLAY,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
@@ -121,9 +119,7 @@ gdk_device_class_init (GdkDeviceClass *klass)
* The device name.
*/
device_props[PROP_NAME] =
- g_param_spec_string ("name",
- P_("Device name"),
- P_("Device name"),
+ g_param_spec_string ("name", NULL, NULL,
NULL,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS);
@@ -134,9 +130,7 @@ gdk_device_class_init (GdkDeviceClass *klass)
* Source type for the device.
*/
device_props[PROP_SOURCE] =
- g_param_spec_enum ("source",
- P_("Input source"),
- P_("Source type for the device"),
+ g_param_spec_enum ("source", NULL, NULL,
GDK_TYPE_INPUT_SOURCE,
GDK_SOURCE_MOUSE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY |
@@ -148,9 +142,7 @@ gdk_device_class_init (GdkDeviceClass *klass)
* Whether the device is represented by a cursor on the screen.
*/
device_props[PROP_HAS_CURSOR] =
- g_param_spec_boolean ("has-cursor",
- P_("Whether the device has a cursor"),
- P_("Whether there is a visible cursor following device motion"),
+ g_param_spec_boolean ("has-cursor", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS);
@@ -161,9 +153,7 @@ gdk_device_class_init (GdkDeviceClass *klass)
* Number of axes in the device.
*/
device_props[PROP_N_AXES] =
- g_param_spec_uint ("n-axes",
- P_("Number of axes in the device"),
- P_("Number of axes in the device"),
+ g_param_spec_uint ("n-axes", NULL, NULL,
0, G_MAXUINT,
0,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
@@ -176,9 +166,7 @@ gdk_device_class_init (GdkDeviceClass *klass)
* See [method@Gdk.Device.get_vendor_id].
*/
device_props[PROP_VENDOR_ID] =
- g_param_spec_string ("vendor-id",
- P_("Vendor ID"),
- P_("Vendor ID"),
+ g_param_spec_string ("vendor-id", NULL, NULL,
NULL,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS);
@@ -191,9 +179,7 @@ gdk_device_class_init (GdkDeviceClass *klass)
* See [method@Gdk.Device.get_product_id].
*/
device_props[PROP_PRODUCT_ID] =
- g_param_spec_string ("product-id",
- P_("Product ID"),
- P_("Product ID"),
+ g_param_spec_string ("product-id", NULL, NULL,
NULL,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS);
@@ -204,9 +190,7 @@ gdk_device_class_init (GdkDeviceClass *klass)
* `GdkSeat` of this device.
*/
device_props[PROP_SEAT] =
- g_param_spec_object ("seat",
- P_("Seat"),
- P_("Seat"),
+ g_param_spec_object ("seat", NULL, NULL,
GDK_TYPE_SEAT,
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS);
@@ -220,9 +204,7 @@ gdk_device_class_init (GdkDeviceClass *klass)
* of touches is unknown.
*/
device_props[PROP_NUM_TOUCHES] =
- g_param_spec_uint ("num-touches",
- P_("Number of concurrent touches"),
- P_("Number of concurrent touches"),
+ g_param_spec_uint ("num-touches", NULL, NULL,
0, G_MAXUINT,
0,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY |
@@ -234,9 +216,7 @@ gdk_device_class_init (GdkDeviceClass *klass)
* The `GdkDeviceTool` that is currently used with this device.
*/
device_props[PROP_TOOL] =
- g_param_spec_object ("tool",
- P_("Tool"),
- P_("The tool that is currently used with this device"),
+ g_param_spec_object ("tool", NULL, NULL,
GDK_TYPE_DEVICE_TOOL,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
@@ -248,9 +228,7 @@ gdk_device_class_init (GdkDeviceClass *klass)
* This is only relevant for keyboard devices.
*/
device_props[PROP_DIRECTION] =
- g_param_spec_enum ("direction",
- P_("Direction"),
- P_("The direction of the current layout of the keyboard"),
+ g_param_spec_enum ("direction", NULL, NULL,
PANGO_TYPE_DIRECTION, PANGO_DIRECTION_NEUTRAL,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
@@ -262,9 +240,7 @@ gdk_device_class_init (GdkDeviceClass *klass)
* This is only relevant for keyboard devices.
*/
device_props[PROP_HAS_BIDI_LAYOUTS] =
- g_param_spec_boolean ("has-bidi-layouts",
- P_("Has bidi layouts"),
- P_("Whether the keyboard has bidi layouts"),
+ g_param_spec_boolean ("has-bidi-layouts", NULL, NULL,
FALSE,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
@@ -276,9 +252,7 @@ gdk_device_class_init (GdkDeviceClass *klass)
* This is only relevant for keyboard devices.
*/
device_props[PROP_CAPS_LOCK_STATE] =
- g_param_spec_boolean ("caps-lock-state",
- P_("Caps lock state"),
- P_("Whether the keyboard caps lock is on"),
+ g_param_spec_boolean ("caps-lock-state", NULL, NULL,
FALSE,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
@@ -290,9 +264,7 @@ gdk_device_class_init (GdkDeviceClass *klass)
* This is only relevant for keyboard devices.
*/
device_props[PROP_NUM_LOCK_STATE] =
- g_param_spec_boolean ("num-lock-state",
- P_("Num lock state"),
- P_("Whether the keyboard num lock is on"),
+ g_param_spec_boolean ("num-lock-state", NULL, NULL,
FALSE,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
@@ -304,9 +276,7 @@ gdk_device_class_init (GdkDeviceClass *klass)
* This is only relevant for keyboard devices.
*/
device_props[PROP_SCROLL_LOCK_STATE] =
- g_param_spec_boolean ("scroll-lock-state",
- P_("Scroll lock state"),
- P_("Whether the keyboard scroll lock is on"),
+ g_param_spec_boolean ("scroll-lock-state", NULL, NULL,
FALSE,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
@@ -318,9 +288,7 @@ gdk_device_class_init (GdkDeviceClass *klass)
* This is only relevant for keyboard devices.
*/
device_props[PROP_MODIFIER_STATE] =
- g_param_spec_flags ("modifier-state",
- P_("Modifier state"),
- P_("The modifier state of the keyboard"),
+ g_param_spec_flags ("modifier-state", NULL, NULL,
GDK_TYPE_MODIFIER_TYPE, 0,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
diff --git a/gdk/gdkdevicetool.c b/gdk/gdkdevicetool.c
index 1a75e5cdfa..97993122a8 100644
--- a/gdk/gdkdevicetool.c
+++ b/gdk/gdkdevicetool.c
@@ -111,9 +111,7 @@ gdk_device_tool_class_init (GdkDeviceToolClass *klass)
*
* The serial number of the tool.
*/
- tool_props[TOOL_PROP_SERIAL] = g_param_spec_uint64 ("serial",
- "Serial",
- "Serial number",
+ tool_props[TOOL_PROP_SERIAL] = g_param_spec_uint64 ("serial", NULL, NULL,
0, G_MAXUINT64, 0,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |
@@ -124,9 +122,7 @@ gdk_device_tool_class_init (GdkDeviceToolClass *klass)
*
* The type of the tool.
*/
- tool_props[TOOL_PROP_TOOL_TYPE] = g_param_spec_enum ("tool-type",
- "Tool type",
- "Tool type",
+ tool_props[TOOL_PROP_TOOL_TYPE] = g_param_spec_enum ("tool-type", NULL, NULL,
GDK_TYPE_DEVICE_TOOL_TYPE,
GDK_DEVICE_TOOL_TYPE_UNKNOWN,
G_PARAM_READWRITE |
@@ -138,9 +134,7 @@ gdk_device_tool_class_init (GdkDeviceToolClass *klass)
*
* The axes of the tool.
*/
- tool_props[TOOL_PROP_AXES] = g_param_spec_flags ("axes",
- "Axes",
- "Tool axes",
+ tool_props[TOOL_PROP_AXES] = g_param_spec_flags ("axes", NULL, NULL,
GDK_TYPE_AXIS_FLAGS, 0,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY);
@@ -150,9 +144,7 @@ gdk_device_tool_class_init (GdkDeviceToolClass *klass)
*
* The hardware ID of the tool.
*/
- tool_props[TOOL_PROP_HARDWARE_ID] = g_param_spec_uint64 ("hardware-id",
- "Hardware ID",
- "Hardware ID",
+ tool_props[TOOL_PROP_HARDWARE_ID] = g_param_spec_uint64 ("hardware-id", NULL, NULL,
0, G_MAXUINT64, 0,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |
diff --git a/gdk/gdkdisplay.c b/gdk/gdkdisplay.c
index 31f039d749..38205f2a9b 100644
--- a/gdk/gdkdisplay.c
+++ b/gdk/gdkdisplay.c
@@ -213,9 +213,7 @@ gdk_display_class_init (GdkDisplayClass *class)
* %TRUE if the display properly composites the alpha channel.
*/
props[PROP_COMPOSITED] =
- g_param_spec_boolean ("composited",
- P_("Composited"),
- P_("Composited"),
+ g_param_spec_boolean ("composited", NULL, NULL,
TRUE,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
@@ -225,9 +223,7 @@ gdk_display_class_init (GdkDisplayClass *class)
* %TRUE if the display supports an alpha channel.
*/
props[PROP_RGBA] =
- g_param_spec_boolean ("rgba",
- P_("RGBA"),
- P_("RGBA"),
+ g_param_spec_boolean ("rgba", NULL, NULL,
TRUE,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
@@ -237,9 +233,7 @@ gdk_display_class_init (GdkDisplayClass *class)
* %TRUE if the display supports input shapes.
*/
props[PROP_INPUT_SHAPES] =
- g_param_spec_boolean ("input-shapes",
- P_("Input shapes"),
- P_("Input shapes"),
+ g_param_spec_boolean ("input-shapes", NULL, NULL,
TRUE,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
diff --git a/gdk/gdkdisplaymanager.c b/gdk/gdkdisplaymanager.c
index cbd03b7768..040e6b3124 100644
--- a/gdk/gdkdisplaymanager.c
+++ b/gdk/gdkdisplaymanager.c
@@ -155,9 +155,7 @@ gdk_display_manager_class_init (GdkDisplayManagerClass *klass)
*/
g_object_class_install_property (object_class,
PROP_DEFAULT_DISPLAY,
- g_param_spec_object ("default-display",
- P_("Default Display"),
- P_("The default display for GDK"),
+ g_param_spec_object ("default-display", NULL, NULL,
GDK_TYPE_DISPLAY,
G_PARAM_READWRITE|G_PARAM_STATIC_STRINGS));
}
diff --git a/gdk/gdkdrag.c b/gdk/gdkdrag.c
index 1f8abf8749..62bd7455f5 100644
--- a/gdk/gdkdrag.c
+++ b/gdk/gdkdrag.c
@@ -379,9 +379,7 @@ gdk_drag_class_init (GdkDragClass *klass)
* The `GdkContentProvider`.
*/
properties[PROP_CONTENT] =
- g_param_spec_object ("content",
- "Content",
- "The content being dragged",
+ g_param_spec_object ("content", NULL, NULL,
GDK_TYPE_CONTENT_PROVIDER,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |
@@ -394,9 +392,7 @@ gdk_drag_class_init (GdkDragClass *klass)
* The `GdkDevice` that is performing the drag.
*/
properties[PROP_DEVICE] =
- g_param_spec_object ("device",
- "Device",
- "The device performing the drag",
+ g_param_spec_object ("device", NULL, NULL,
GDK_TYPE_DEVICE,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |
@@ -409,9 +405,7 @@ gdk_drag_class_init (GdkDragClass *klass)
* The `GdkDisplay` that the drag belongs to.
*/
properties[PROP_DISPLAY] =
- g_param_spec_object ("display",
- "Display",
- "Display this drag belongs to",
+ g_param_spec_object ("display", NULL, NULL,
GDK_TYPE_DISPLAY,
G_PARAM_READABLE |
G_PARAM_STATIC_STRINGS |
@@ -423,9 +417,7 @@ gdk_drag_class_init (GdkDragClass *klass)
* The possible formats that the drag can provide its data in.
*/
properties[PROP_FORMATS] =
- g_param_spec_boxed ("formats",
- "Formats",
- "The possible formats for data",
+ g_param_spec_boxed ("formats", NULL, NULL,
GDK_TYPE_CONTENT_FORMATS,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |
@@ -438,9 +430,7 @@ gdk_drag_class_init (GdkDragClass *klass)
* The currently selected action of the drag.
*/
properties[PROP_SELECTED_ACTION] =
- g_param_spec_flags ("selected-action",
- "Selected action",
- "The currently selected action",
+ g_param_spec_flags ("selected-action", NULL, NULL,
GDK_TYPE_DRAG_ACTION,
0,
G_PARAM_READWRITE |
@@ -453,9 +443,7 @@ gdk_drag_class_init (GdkDragClass *klass)
* The possible actions of this drag.
*/
properties[PROP_ACTIONS] =
- g_param_spec_flags ("actions",
- "Actions",
- "The possible actions",
+ g_param_spec_flags ("actions", NULL, NULL,
GDK_TYPE_DRAG_ACTION,
0,
G_PARAM_READWRITE |
@@ -468,9 +456,7 @@ gdk_drag_class_init (GdkDragClass *klass)
* The surface where the drag originates.
*/
properties[PROP_SURFACE] =
- g_param_spec_object ("surface",
- "Surface",
- "The surface where the drag originates",
+ g_param_spec_object ("surface", NULL, NULL,
GDK_TYPE_SURFACE,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |
diff --git a/gdk/gdkdrawcontext.c b/gdk/gdkdrawcontext.c
index 8ab405e25b..5e64ec32f9 100644
--- a/gdk/gdkdrawcontext.c
+++ b/gdk/gdkdrawcontext.c
@@ -168,9 +168,7 @@ gdk_draw_context_class_init (GdkDrawContextClass *klass)
* The `GdkDisplay` used to create the `GdkDrawContext`.
*/
pspecs[PROP_DISPLAY] =
- g_param_spec_object ("display",
- P_("Display"),
- P_("The GDK display used to create the context"),
+ g_param_spec_object ("display", NULL, NULL,
GDK_TYPE_DISPLAY,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |
@@ -182,9 +180,7 @@ gdk_draw_context_class_init (GdkDrawContextClass *klass)
* The `GdkSurface` the context is bound to.
*/
pspecs[PROP_SURFACE] =
- g_param_spec_object ("surface",
- P_("Surface"),
- P_("The GDK surface bound to the context"),
+ g_param_spec_object ("surface", NULL, NULL,
GDK_TYPE_SURFACE,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |
diff --git a/gdk/gdkdrop.c b/gdk/gdkdrop.c
index ff3efbaa4e..f1c7c0f598 100644
--- a/gdk/gdkdrop.c
+++ b/gdk/gdkdrop.c
@@ -325,9 +325,7 @@ gdk_drop_class_init (GdkDropClass *klass)
* The possible actions for this drop
*/
properties[PROP_ACTIONS] =
- g_param_spec_flags ("actions",
- "Actions",
- "The possible actions for this drop",
+ g_param_spec_flags ("actions", NULL, NULL,
GDK_TYPE_DRAG_ACTION,
GDK_ACTION_ALL,
G_PARAM_READWRITE |
@@ -341,9 +339,7 @@ gdk_drop_class_init (GdkDropClass *klass)
* The `GdkDevice` performing the drop
*/
properties[PROP_DEVICE] =
- g_param_spec_object ("device",
- "Device",
- "The device performing the drop",
+ g_param_spec_object ("device", NULL, NULL,
GDK_TYPE_DEVICE,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |
@@ -356,9 +352,7 @@ gdk_drop_class_init (GdkDropClass *klass)
* The `GdkDisplay` that the drop belongs to.
*/
properties[PROP_DISPLAY] =
- g_param_spec_object ("display",
- "Display",
- "Display this drag belongs to",
+ g_param_spec_object ("display", NULL, NULL,
GDK_TYPE_DISPLAY,
G_PARAM_READABLE |
G_PARAM_STATIC_STRINGS |
@@ -370,9 +364,7 @@ gdk_drop_class_init (GdkDropClass *klass)
* The `GdkDrag` that initiated this drop
*/
properties[PROP_DRAG] =
- g_param_spec_object ("drag",
- "Drag",
- "The drag that initiated this drop",
+ g_param_spec_object ("drag", NULL, NULL,
GDK_TYPE_DRAG,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |
@@ -385,9 +377,7 @@ gdk_drop_class_init (GdkDropClass *klass)
* The possible formats that the drop can provide its data in.
*/
properties[PROP_FORMATS] =
- g_param_spec_boxed ("formats",
- "Formats",
- "The possible formats for data",
+ g_param_spec_boxed ("formats", NULL, NULL,
GDK_TYPE_CONTENT_FORMATS,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |
@@ -400,9 +390,7 @@ gdk_drop_class_init (GdkDropClass *klass)
* The `GdkSurface` the drop happens on
*/
properties[PROP_SURFACE] =
- g_param_spec_object ("surface",
- "Surface",
- "The surface the drop is happening on",
+ g_param_spec_object ("surface", NULL, NULL,
GDK_TYPE_SURFACE,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |
diff --git a/gdk/gdkglcontext.c b/gdk/gdkglcontext.c
index 1591cbd3ad..e58c0e57dc 100644
--- a/gdk/gdkglcontext.c
+++ b/gdk/gdkglcontext.c
@@ -690,9 +690,7 @@ gdk_gl_context_class_init (GdkGLContextClass *klass)
* can be shared.
*/
properties[PROP_SHARED_CONTEXT] =
- g_param_spec_object ("shared-context",
- P_("Shared context"),
- P_("The GL context this context shares data with"),
+ g_param_spec_object ("shared-context", NULL, NULL,
GDK_TYPE_GL_CONTEXT,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |
@@ -707,9 +705,7 @@ gdk_gl_context_class_init (GdkGLContextClass *klass)
* Since: 4.6
*/
properties[PROP_ALLOWED_APIS] =
- g_param_spec_flags ("allowed-apis",
- P_("Allowed APIs"),
- P_("The list of allowed APIs for this context"),
+ g_param_spec_flags ("allowed-apis", NULL, NULL,
GDK_TYPE_GL_API,
DEFAULT_ALLOWED_APIS,
G_PARAM_READWRITE |
@@ -724,9 +720,7 @@ gdk_gl_context_class_init (GdkGLContextClass *klass)
* Since: 4.6
*/
properties[PROP_API] =
- g_param_spec_flags ("api",
- P_("API"),
- P_("The API currently in use"),
+ g_param_spec_flags ("api", NULL, NULL,
GDK_TYPE_GL_API,
0,
G_PARAM_READABLE |
diff --git a/gdk/gdkintl.h b/gdk/gdkintl.h
index 0202c95443..69a9fd9d24 100644
--- a/gdk/gdkintl.h
+++ b/gdk/gdkintl.h
@@ -27,6 +27,4 @@
#include <glib/gi18n-lib.h>
-#define P_(String) dgettext (GETTEXT_PACKAGE "-properties", String)
-
#endif
diff --git a/gdk/gdkkeys.c b/gdk/gdkkeys.c
index b8e925a46e..b06fec2dc6 100644
--- a/gdk/gdkkeys.c
+++ b/gdk/gdkkeys.c
@@ -123,9 +123,7 @@ gdk_keymap_class_init (GdkKeymapClass *klass)
klass->keys_changed = gdk_keymap_keys_changed;
props[PROP_DISPLAY] =
- g_param_spec_object ("display",
- "Display",
- "The display of the keymap",
+ g_param_spec_object ("display", NULL, NULL,
GDK_TYPE_DISPLAY,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
diff --git a/gdk/gdkmonitor.c b/gdk/gdkmonitor.c
index 47ebb3c519..ccf1d4b8bc 100644
--- a/gdk/gdkmonitor.c
+++ b/gdk/gdkmonitor.c
@@ -176,9 +176,7 @@ gdk_monitor_class_init (GdkMonitorClass *class)
* The `GdkDisplay` of the monitor.
*/
props[PROP_DISPLAY] =
- g_param_spec_object ("display",
- "Display",
- "The display of the monitor",
+ g_param_spec_object ("display", NULL, NULL,
GDK_TYPE_DISPLAY,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
@@ -188,9 +186,7 @@ gdk_monitor_class_init (GdkMonitorClass *class)
* The manufacturer name.
*/
props[PROP_MANUFACTURER] =
- g_param_spec_string ("manufacturer",
- "Manufacturer",
- "The manufacturer name",
+ g_param_spec_string ("manufacturer", NULL, NULL,
NULL,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
@@ -200,9 +196,7 @@ gdk_monitor_class_init (GdkMonitorClass *class)
* The model name.
*/
props[PROP_MODEL] =
- g_param_spec_string ("model",
- "Model",
- "The model name",
+ g_param_spec_string ("model", NULL, NULL,
NULL,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
@@ -212,9 +206,7 @@ gdk_monitor_class_init (GdkMonitorClass *class)
* The connector name.
*/
props[PROP_CONNECTOR] =
- g_param_spec_string ("connector",
- "Connector",
- "The connector name",
+ g_param_spec_string ("connector", NULL, NULL,
NULL,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
@@ -224,9 +216,7 @@ gdk_monitor_class_init (GdkMonitorClass *class)
* The scale factor.
*/
props[PROP_SCALE_FACTOR] =
- g_param_spec_int ("scale-factor",
- "Scale factor",
- "The scale factor",
+ g_param_spec_int ("scale-factor", NULL, NULL,
0, G_MAXINT,
1,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
@@ -237,9 +227,7 @@ gdk_monitor_class_init (GdkMonitorClass *class)
* The geometry of the monitor.
*/
props[PROP_GEOMETRY] =
- g_param_spec_boxed ("geometry",
- "Geometry",
- "The geometry of the monitor",
+ g_param_spec_boxed ("geometry", NULL, NULL,
GDK_TYPE_RECTANGLE,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
@@ -249,9 +237,7 @@ gdk_monitor_class_init (GdkMonitorClass *class)
* The width of the monitor, in millimeters.
*/
props[PROP_WIDTH_MM] =
- g_param_spec_int ("width-mm",
- "Physical width",
- "The width of the monitor, in millimeters",
+ g_param_spec_int ("width-mm", NULL, NULL,
0, G_MAXINT,
0,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
@@ -262,9 +248,7 @@ gdk_monitor_class_init (GdkMonitorClass *class)
* The height of the monitor, in millimeters.
*/
props[PROP_HEIGHT_MM] =
- g_param_spec_int ("height-mm",
- "Physical height",
- "The height of the monitor, in millimeters",
+ g_param_spec_int ("height-mm", NULL, NULL,
0, G_MAXINT,
0,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
@@ -275,9 +259,7 @@ gdk_monitor_class_init (GdkMonitorClass *class)
* The refresh rate, in milli-Hertz.
*/
props[PROP_REFRESH_RATE] =
- g_param_spec_int ("refresh-rate",
- "Refresh rate",
- "The refresh rate, in millihertz",
+ g_param_spec_int ("refresh-rate", NULL, NULL,
0, G_MAXINT,
0,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
@@ -288,9 +270,7 @@ gdk_monitor_class_init (GdkMonitorClass *class)
* The subpixel layout.
*/
props[PROP_SUBPIXEL_LAYOUT] =
- g_param_spec_enum ("subpixel-layout",
- "Subpixel layout",
- "The subpixel layout",
+ g_param_spec_enum ("subpixel-layout", NULL, NULL,
GDK_TYPE_SUBPIXEL_LAYOUT,
GDK_SUBPIXEL_LAYOUT_UNKNOWN,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
@@ -301,9 +281,7 @@ gdk_monitor_class_init (GdkMonitorClass *class)
* Whether the object is still valid.
*/
props[PROP_VALID] =
- g_param_spec_boolean ("valid",
- "Valid",
- "Whether the monitor is still valid",
+ g_param_spec_boolean ("valid", NULL, NULL,
TRUE,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
diff --git a/gdk/gdkpopup.c b/gdk/gdkpopup.c
index 4dd97ac7ad..9c69325175 100644
--- a/gdk/gdkpopup.c
+++ b/gdk/gdkpopup.c
@@ -85,9 +85,7 @@ gdk_popup_default_init (GdkPopupInterface *iface)
* The parent surface.
*/
g_object_interface_install_property (iface,
- g_param_spec_object ("parent",
- P_("Parent"),
- P_("The parent surface"),
+ g_param_spec_object ("parent", NULL, NULL,
GDK_TYPE_SURFACE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
@@ -97,9 +95,7 @@ gdk_popup_default_init (GdkPopupInterface *iface)
* Whether to hide on outside clicks.
*/
g_object_interface_install_property (iface,
- g_param_spec_boolean ("autohide",
- P_("Autohide"),
- P_("Whether to hide on outside clicks"),
+ g_param_spec_boolean ("autohide", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
}
diff --git a/gdk/gdkseat.c b/gdk/gdkseat.c
index cb09602eaa..fd9385f535 100644
--- a/gdk/gdkseat.c
+++ b/gdk/gdkseat.c
@@ -184,9 +184,7 @@ gdk_seat_class_init (GdkSeatClass *klass)
* `GdkDisplay` of this seat.
*/
props[PROP_DISPLAY] =
- g_param_spec_object ("display",
- P_("Display"),
- P_("Display"),
+ g_param_spec_object ("display", NULL, NULL,
GDK_TYPE_DISPLAY,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |
diff --git a/gdk/gdksurface.c b/gdk/gdksurface.c
index 16d668a931..067267fb1a 100644
--- a/gdk/gdksurface.c
+++ b/gdk/gdksurface.c
@@ -506,9 +506,7 @@ gdk_surface_class_init (GdkSurfaceClass *klass)
* The mouse pointer for the `GdkSurface`.
*/
properties[PROP_CURSOR] =
- g_param_spec_object ("cursor",
- P_("Cursor"),
- P_("Cursor"),
+ g_param_spec_object ("cursor", NULL, NULL,
GDK_TYPE_CURSOR,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
@@ -518,9 +516,7 @@ gdk_surface_class_init (GdkSurfaceClass *klass)
* The `GdkDisplay` connection of the surface.
*/
properties[PROP_DISPLAY] =
- g_param_spec_object ("display",
- P_("Display"),
- P_("Display"),
+ g_param_spec_object ("display", NULL, NULL,
GDK_TYPE_DISPLAY,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
@@ -530,9 +526,7 @@ gdk_surface_class_init (GdkSurfaceClass *klass)
* The `GdkFrameClock` of the surface.
*/
properties[PROP_FRAME_CLOCK] =
- g_param_spec_object ("frame-clock",
- P_("Frame Clock"),
- P_("Frame Clock"),
+ g_param_spec_object ("frame-clock", NULL, NULL,
GDK_TYPE_FRAME_CLOCK,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
@@ -542,9 +536,7 @@ gdk_surface_class_init (GdkSurfaceClass *klass)
* Whether the surface is mapped.
*/
properties[PROP_MAPPED] =
- g_param_spec_boolean ("mapped",
- P_("Mapped"),
- P_("Mapped"),
+ g_param_spec_boolean ("mapped", NULL, NULL,
FALSE,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
@@ -554,9 +546,7 @@ gdk_surface_class_init (GdkSurfaceClass *klass)
* The width of the surface in pixels.
*/
properties[PROP_WIDTH] =
- g_param_spec_int ("width",
- P_("Width"),
- P_("Width"),
+ g_param_spec_int ("width", NULL, NULL,
0, G_MAXINT, 0,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
@@ -566,9 +556,7 @@ gdk_surface_class_init (GdkSurfaceClass *klass)
* The height of the surface, in pixels.
*/
properties[PROP_HEIGHT] =
- g_param_spec_int ("height",
- P_("Height"),
- P_("Height"),
+ g_param_spec_int ("height", NULL, NULL,
0, G_MAXINT, 0,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
@@ -578,9 +566,7 @@ gdk_surface_class_init (GdkSurfaceClass *klass)
* The scale factor of the surface.
*/
properties[PROP_SCALE_FACTOR] =
- g_param_spec_int ("scale-factor",
- P_("Scale factor"),
- P_("Scale factor"),
+ g_param_spec_int ("scale-factor", NULL, NULL,
1, G_MAXINT, 1,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
diff --git a/gdk/gdktexture.c b/gdk/gdktexture.c
index c8d7730c6d..ef7123c94a 100644
--- a/gdk/gdktexture.c
+++ b/gdk/gdktexture.c
@@ -304,9 +304,7 @@ gdk_texture_class_init (GdkTextureClass *klass)
* The width of the texture, in pixels.
*/
properties[PROP_WIDTH] =
- g_param_spec_int ("width",
- "Width",
- "The width of the texture",
+ g_param_spec_int ("width", NULL, NULL,
1,
G_MAXINT,
1,
@@ -321,9 +319,7 @@ gdk_texture_class_init (GdkTextureClass *klass)
* The height of the texture, in pixels.
*/
properties[PROP_HEIGHT] =
- g_param_spec_int ("height",
- "Height",
- "The height of the texture",
+ g_param_spec_int ("height", NULL, NULL,
1,
G_MAXINT,
1,
diff --git a/gdk/gdktoplevel.c b/gdk/gdktoplevel.c
index 7536b9d8a8..8c92cd9c97 100644
--- a/gdk/gdktoplevel.c
+++ b/gdk/gdktoplevel.c
@@ -131,9 +131,7 @@ gdk_toplevel_default_init (GdkToplevelInterface *iface)
* The state of the toplevel.
*/
g_object_interface_install_property (iface,
- g_param_spec_flags ("state",
- P_("State"),
- P_("State"),
+ g_param_spec_flags ("state", NULL, NULL,
GDK_TYPE_TOPLEVEL_STATE, 0,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
@@ -143,9 +141,7 @@ gdk_toplevel_default_init (GdkToplevelInterface *iface)
* The title of the surface.
*/
g_object_interface_install_property (iface,
- g_param_spec_string ("title",
- "Title",
- "The title of the surface",
+ g_param_spec_string ("title", NULL, NULL,
NULL,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY));
@@ -158,9 +154,7 @@ gdk_toplevel_default_init (GdkToplevelInterface *iface)
* startup feedback.
*/
g_object_interface_install_property (iface,
- g_param_spec_string ("startup-id",
- "Startup ID",
- "The startup ID of the surface",
+ g_param_spec_string ("startup-id", NULL, NULL,
NULL,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY));
@@ -170,9 +164,7 @@ gdk_toplevel_default_init (GdkToplevelInterface *iface)
* The transient parent of the surface.
*/
g_object_interface_install_property (iface,
- g_param_spec_object ("transient-for",
- "Transient For",
- "The transient parent of the surface",
+ g_param_spec_object ("transient-for", NULL, NULL,
GDK_TYPE_SURFACE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY));
@@ -182,9 +174,7 @@ gdk_toplevel_default_init (GdkToplevelInterface *iface)
* Whether the surface is modal.
*/
g_object_interface_install_property (iface,
- g_param_spec_boolean ("modal",
- "Modal",
- "Whether the surface is modal",
+ g_param_spec_boolean ("modal", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY));
@@ -194,9 +184,7 @@ gdk_toplevel_default_init (GdkToplevelInterface *iface)
* A list of textures to use as icon.
*/
g_object_interface_install_property (iface,
- g_param_spec_pointer ("icon-list",
- "Icon List",
- "The list of icon textures",
+ g_param_spec_pointer ("icon-list", NULL, NULL,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY));
/**
@@ -205,9 +193,7 @@ gdk_toplevel_default_init (GdkToplevelInterface *iface)
* Whether the window manager should add decorations.
*/
g_object_interface_install_property (iface,
- g_param_spec_boolean ("decorated",
- "Decorated",
- "Decorated",
+ g_param_spec_boolean ("decorated", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY));
@@ -217,9 +203,7 @@ gdk_toplevel_default_init (GdkToplevelInterface *iface)
* Whether the window manager should allow to close the surface.
*/
g_object_interface_install_property (iface,
- g_param_spec_boolean ("deletable",
- "Deletable",
- "Deletable",
+ g_param_spec_boolean ("deletable", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY));
@@ -229,9 +213,7 @@ gdk_toplevel_default_init (GdkToplevelInterface *iface)
* The fullscreen mode of the surface.
*/
g_object_interface_install_property (iface,
- g_param_spec_enum ("fullscreen-mode",
- "Fullscreen mode",
- "Fullscreen mode",
+ g_param_spec_enum ("fullscreen-mode", NULL, NULL,
GDK_TYPE_FULLSCREEN_MODE,
GDK_FULLSCREEN_ON_CURRENT_MONITOR,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY));
@@ -242,9 +224,7 @@ gdk_toplevel_default_init (GdkToplevelInterface *iface)
* Whether the surface should inhibit keyboard shortcuts.
*/
g_object_interface_install_property (iface,
- g_param_spec_boolean ("shortcuts-inhibited",
- "Shortcuts inhibited",
- "Whether keyboard shortcuts are inhibited",
+ g_param_spec_boolean ("shortcuts-inhibited", NULL, NULL,
FALSE,
G_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY));
diff --git a/gdk/macos/gdkmacosdrag.c b/gdk/macos/gdkmacosdrag.c
index cd61c44e1a..c9e2dd19a6 100644
--- a/gdk/macos/gdkmacosdrag.c
+++ b/gdk/macos/gdkmacosdrag.c
@@ -601,9 +601,7 @@ gdk_macos_drag_class_init (GdkMacosDragClass *klass)
drag_class->handle_event = gdk_macos_drag_handle_event;
properties [PROP_DRAG_SURFACE] =
- g_param_spec_object ("drag-surface",
- P_("Drag Surface"),
- P_("Drag Surface"),
+ g_param_spec_object ("drag-surface", NULL, NULL,
GDK_TYPE_MACOS_DRAG_SURFACE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
diff --git a/gdk/macos/gdkmacossurface.c b/gdk/macos/gdkmacossurface.c
index 168cdc4e67..d10992ffd4 100644
--- a/gdk/macos/gdkmacossurface.c
+++ b/gdk/macos/gdkmacossurface.c
@@ -602,9 +602,7 @@ gdk_macos_surface_class_init (GdkMacosSurfaceClass *klass)
* The "native" property contains the underlying NSWindow.
*/
properties [PROP_NATIVE] =
- g_param_spec_pointer ("native",
- "Native",
- "The native NSWindow",
+ g_param_spec_pointer ("native", NULL, NULL,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
g_object_class_install_properties (object_class, LAST_PROP, properties);
diff --git a/gdk/win32/gdkcursor-win32.c b/gdk/win32/gdkcursor-win32.c
index 39397d3eee..80d3c67f3e 100644
--- a/gdk/win32/gdkcursor-win32.c
+++ b/gdk/win32/gdkcursor-win32.c
@@ -231,22 +231,16 @@ gdk_win32_hcursor_class_init (GdkWin32HCursorClass *klass)
object_class->set_property = gdk_win32_hcursor_set_property;
hcursor_props[PROP_DISPLAY] =
- g_param_spec_object ("display",
- P_("Display"),
- P_("The display that will use this cursor"),
+ g_param_spec_object ("display", NULL, NULL,
GDK_TYPE_DISPLAY,
G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE);
hcursor_props[PROP_HANDLE] =
- g_param_spec_pointer ("handle",
- P_("Handle"),
- P_("The HCURSOR handle for this cursor"),
+ g_param_spec_pointer ("handle", NULL, NULL,
G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE);
hcursor_props[PROP_DESTROYABLE] =
- g_param_spec_boolean ("destroyable",
- P_("Destroyable"),
- P_("Whether calling DestroyCursor() is allowed on this cursor"),
+ g_param_spec_boolean ("destroyable", NULL, NULL,
TRUE,
G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE);
diff --git a/gdk/x11/gdkdevice-xi2.c b/gdk/x11/gdkdevice-xi2.c
index 7062a7330a..a8a0461e20 100644
--- a/gdk/x11/gdkdevice-xi2.c
+++ b/gdk/x11/gdkdevice-xi2.c
@@ -116,9 +116,7 @@ gdk_x11_device_xi2_class_init (GdkX11DeviceXI2Class *klass)
g_object_class_install_property (object_class,
PROP_DEVICE_ID,
- g_param_spec_int ("device-id",
- P_("Device ID"),
- P_("Device identifier"),
+ g_param_spec_int ("device-id", NULL, NULL,
0, G_MAXINT, 0,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS));
diff --git a/gdk/x11/gdkdevicemanager-xi2.c b/gdk/x11/gdkdevicemanager-xi2.c
index 214f6b1ea2..be5598ed25 100644
--- a/gdk/x11/gdkdevicemanager-xi2.c
+++ b/gdk/x11/gdkdevicemanager-xi2.c
@@ -145,33 +145,25 @@ gdk_x11_device_manager_xi2_class_init (GdkX11DeviceManagerXI2Class *klass)
g_object_class_install_property (object_class,
PROP_DISPLAY,
- g_param_spec_object ("display",
- "Display",
- "Display for the device manager",
+ g_param_spec_object ("display", NULL, NULL,
GDK_TYPE_DISPLAY,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS));
g_object_class_install_property (object_class,
PROP_OPCODE,
- g_param_spec_int ("opcode",
- P_("Opcode"),
- P_("Opcode for XInput2 requests"),
+ g_param_spec_int ("opcode", NULL, NULL,
0, G_MAXINT, 0,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS));
g_object_class_install_property (object_class,
PROP_MAJOR,
- g_param_spec_int ("major",
- P_("Major"),
- P_("Major version number"),
+ g_param_spec_int ("major", NULL, NULL,
0, G_MAXINT, 0,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS));
g_object_class_install_property (object_class,
PROP_MINOR,
- g_param_spec_int ("minor",
- P_("Minor"),
- P_("Minor version number"),
+ g_param_spec_int ("minor", NULL, NULL,
0, G_MAXINT, 0,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS));
diff --git a/gsk/gl/gskglprofiler.c b/gsk/gl/gskglprofiler.c
index 9b834e5fc8..2721641858 100644
--- a/gsk/gl/gskglprofiler.c
+++ b/gsk/gl/gskglprofiler.c
@@ -94,9 +94,7 @@ gsk_gl_profiler_class_init (GskGLProfilerClass *klass)
gobject_class->finalize = gsk_gl_profiler_finalize;
gsk_gl_profiler_properties[PROP_GL_CONTEXT] =
- g_param_spec_object ("gl-context",
- "GL Context",
- "The GdkGLContext used by the GL profiler",
+ g_param_spec_object ("gl-context", NULL, NULL,
GDK_TYPE_GL_CONTEXT,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |
diff --git a/gsk/gl/gskglshadowlibrary.c b/gsk/gl/gskglshadowlibrary.c
index 119ba8145b..d7c22c2588 100644
--- a/gsk/gl/gskglshadowlibrary.c
+++ b/gsk/gl/gskglshadowlibrary.c
@@ -127,9 +127,7 @@ gsk_gl_shadow_library_class_init (GskGLShadowLibraryClass *klass)
object_class->set_property = gsk_gl_shadow_library_set_property;
properties [PROP_DRIVER] =
- g_param_spec_object ("driver",
- "Driver",
- "Driver",
+ g_param_spec_object ("driver", NULL, NULL,
GSK_TYPE_GL_DRIVER,
(G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
diff --git a/gsk/gl/gskgltexturelibrary.c b/gsk/gl/gskgltexturelibrary.c
index 9960985814..24d3c5ab12 100644
--- a/gsk/gl/gskgltexturelibrary.c
+++ b/gsk/gl/gskgltexturelibrary.c
@@ -256,9 +256,7 @@ gsk_gl_texture_library_class_init (GskGLTextureLibraryClass *klass)
klass->allocate = gsk_gl_texture_library_real_allocate;
properties [PROP_DRIVER] =
- g_param_spec_object ("driver",
- "Driver",
- "Driver",
+ g_param_spec_object ("driver", NULL, NULL,
GSK_TYPE_GL_DRIVER,
(G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
diff --git a/gsk/gskglshader.c b/gsk/gskglshader.c
index 9c3d728c67..7823651b8b 100644
--- a/gsk/gskglshader.c
+++ b/gsk/gskglshader.c
@@ -444,9 +444,7 @@ gsk_gl_shader_class_init (GskGLShaderClass *klass)
* The source code for the shader, as a `GBytes`.
*/
gsk_gl_shader_properties[GLSHADER_PROP_SOURCE] =
- g_param_spec_boxed ("source",
- "Source",
- "The sourcecode for the shader",
+ g_param_spec_boxed ("source", NULL, NULL,
G_TYPE_BYTES,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |
@@ -461,9 +459,7 @@ gsk_gl_shader_class_init (GskGLShaderClass *klass)
* will be %NULL.
*/
gsk_gl_shader_properties[GLSHADER_PROP_RESOURCE] =
- g_param_spec_string ("resource",
- "Resources",
- "Resource path to the source code",
+ g_param_spec_string ("resource", NULL, NULL,
NULL,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |
diff --git a/gsk/gskrenderer.c b/gsk/gskrenderer.c
index 03aa87f512..a3ceb0172b 100644
--- a/gsk/gskrenderer.c
+++ b/gsk/gskrenderer.c
@@ -192,9 +192,7 @@ gsk_renderer_class_init (GskRendererClass *klass)
* Whether the renderer has been associated with a surface or draw context.
*/
gsk_renderer_properties[PROP_REALIZED] =
- g_param_spec_boolean ("realized",
- "Realized",
- "The renderer has been associated with a surface or draw context",
+ g_param_spec_boolean ("realized", NULL, NULL,
FALSE,
G_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -204,9 +202,7 @@ gsk_renderer_class_init (GskRendererClass *klass)
* The surface associated with renderer.
*/
gsk_renderer_properties[PROP_SURFACE] =
- g_param_spec_object ("surface",
- "Surface",
- "The surface associated to the renderer",
+ g_param_spec_object ("surface", NULL, NULL,
GDK_TYPE_SURFACE,
G_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
diff --git a/gtk/gtkaboutdialog.c b/gtk/gtkaboutdialog.c
index cf9d1934b4..a5a980402b 100644
--- a/gtk/gtkaboutdialog.c
+++ b/gtk/gtkaboutdialog.c
@@ -378,9 +378,7 @@ gtk_about_dialog_class_init (GtkAboutDialogClass *klass)
* `g_get_application_name()`.
*/
props[PROP_NAME] =
- g_param_spec_string ("program-name",
- P_("Program name"),
- P_("The name of the program. If this is not set, it defaults to g_get_application_name()"),
+ g_param_spec_string ("program-name", NULL, NULL,
NULL,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -390,9 +388,7 @@ gtk_about_dialog_class_init (GtkAboutDialogClass *klass)
* The version of the program.
*/
props[PROP_VERSION] =
- g_param_spec_string ("version",
- P_("Program version"),
- P_("The version of the program"),
+ g_param_spec_string ("version", NULL, NULL,
NULL,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -402,9 +398,7 @@ gtk_about_dialog_class_init (GtkAboutDialogClass *klass)
* Copyright information for the program.
*/
props[PROP_COPYRIGHT] =
- g_param_spec_string ("copyright",
- P_("Copyright string"),
- P_("Copyright information for the program"),
+ g_param_spec_string ("copyright", NULL, NULL,
NULL,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -418,9 +412,7 @@ gtk_about_dialog_class_init (GtkAboutDialogClass *klass)
* not a detailed list of features.
*/
props[PROP_COMMENTS] =
- g_param_spec_string ("comments",
- P_("Comments string"),
- P_("Comments about the program"),
+ g_param_spec_string ("comments", NULL, NULL,
NULL,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -443,9 +435,7 @@ gtk_about_dialog_class_init (GtkAboutDialogClass *klass)
* be converted into clickable links.
*/
props[PROP_LICENSE] =
- g_param_spec_string ("license",
- P_("License"),
- P_("The license of the program"),
+ g_param_spec_string ("license", NULL, NULL,
NULL,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -463,9 +453,7 @@ gtk_about_dialog_class_init (GtkAboutDialogClass *klass)
* be converted into clickable links.
*/
props[PROP_SYSTEM_INFORMATION] =
- g_param_spec_string ("system-information",
- P_("System Information"),
- P_("Information about the system on which the program is running"),
+ g_param_spec_string ("system-information", NULL, NULL,
NULL,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -489,9 +477,7 @@ gtk_about_dialog_class_init (GtkAboutDialogClass *klass)
* a side effect.
*/
props[PROP_LICENSE_TYPE] =
- g_param_spec_enum ("license-type",
- P_("License Type"),
- P_("The license type of the program"),
+ g_param_spec_enum ("license-type", NULL, NULL,
GTK_TYPE_LICENSE,
GTK_LICENSE_UNKNOWN,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -504,9 +490,7 @@ gtk_about_dialog_class_init (GtkAboutDialogClass *klass)
* This should be a string starting with `http://` or `https://`.
*/
props[PROP_WEBSITE] =
- g_param_spec_string ("website",
- P_("Website URL"),
- P_("The URL for the link to the website of the program"),
+ g_param_spec_string ("website", NULL, NULL,
NULL,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -516,9 +500,7 @@ gtk_about_dialog_class_init (GtkAboutDialogClass *klass)
* The label for the link to the website of the program.
*/
props[PROP_WEBSITE_LABEL] =
- g_param_spec_string ("website-label",
- P_("Website label"),
- P_("The label for the link to the website of the program"),
+ g_param_spec_string ("website-label", NULL, NULL,
NULL,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -531,9 +513,7 @@ gtk_about_dialog_class_init (GtkAboutDialogClass *klass)
* as links, see the introduction for more details.
*/
props[PROP_AUTHORS] =
- g_param_spec_boxed ("authors",
- P_("Authors"),
- P_("List of authors of the program"),
+ g_param_spec_boxed ("authors", NULL, NULL,
G_TYPE_STRV,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -546,9 +526,7 @@ gtk_about_dialog_class_init (GtkAboutDialogClass *klass)
* as links, see the introduction for more details.
*/
props[PROP_DOCUMENTERS] =
- g_param_spec_boxed ("documenters",
- P_("Documenters"),
- P_("List of people documenting the program"),
+ g_param_spec_boxed ("documenters", NULL, NULL,
G_TYPE_STRV,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -562,9 +540,7 @@ gtk_about_dialog_class_init (GtkAboutDialogClass *klass)
* as links.
*/
props[PROP_ARTISTS] =
- g_param_spec_boxed ("artists",
- P_("Artists"),
- P_("List of people who have contributed artwork to the program"),
+ g_param_spec_boxed ("artists", NULL, NULL,
G_TYPE_STRV,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -579,9 +555,7 @@ gtk_about_dialog_class_init (GtkAboutDialogClass *klass)
* as links, see the introduction for more details.
*/
props[PROP_TRANSLATOR_CREDITS] =
- g_param_spec_string ("translator-credits",
- P_("Translator credits"),
- P_("Credits to the translators. This string should be marked as translatable"),
+ g_param_spec_string ("translator-credits", NULL, NULL,
NULL,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -594,9 +568,7 @@ gtk_about_dialog_class_init (GtkAboutDialogClass *klass)
* [id@gtk_window_set_default_icon_name] will be used.
*/
props[PROP_LOGO] =
- g_param_spec_object ("logo",
- P_("Logo"),
- P_("A logo for the about box."),
+ g_param_spec_object ("logo", NULL, NULL,
GDK_TYPE_PAINTABLE,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -608,9 +580,7 @@ gtk_about_dialog_class_init (GtkAboutDialogClass *klass)
* This property overrides the [property@Gtk.AboutDialog:logo] property.
*/
props[PROP_LOGO_ICON_NAME] =
- g_param_spec_string ("logo-icon-name",
- P_("Logo Icon Name"),
- P_("A named icon to use as the logo for the about box."),
+ g_param_spec_string ("logo-icon-name", NULL, NULL,
NULL,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -620,9 +590,7 @@ gtk_about_dialog_class_init (GtkAboutDialogClass *klass)
* Whether to wrap the text in the license dialog.
*/
props[PROP_WRAP_LICENSE] =
- g_param_spec_boolean ("wrap-license",
- P_("Wrap license"),
- P_("Whether to wrap the license text."),
+ g_param_spec_boolean ("wrap-license", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtkaccessible.c b/gtk/gtkaccessible.c
index ce4fdb07bf..1daab9b0c3 100644
--- a/gtk/gtkaccessible.c
+++ b/gtk/gtkaccessible.c
@@ -65,9 +65,7 @@ gtk_accessible_default_init (GtkAccessibleInterface *iface)
* The accessible role cannot be changed once set.
*/
GParamSpec *pspec =
- g_param_spec_enum ("accessible-role",
- "Accessible Role",
- "The role of the accessible object",
+ g_param_spec_enum ("accessible-role", NULL, NULL,
GTK_TYPE_ACCESSIBLE_ROLE,
GTK_ACCESSIBLE_ROLE_NONE,
G_PARAM_READWRITE |
diff --git a/gtk/gtkactionable.c b/gtk/gtkactionable.c
index a37792ab4c..e27ed4b638 100644
--- a/gtk/gtkactionable.c
+++ b/gtk/gtkactionable.c
@@ -58,13 +58,11 @@ static void
gtk_actionable_default_init (GtkActionableInterface *iface)
{
g_object_interface_install_property (iface,
- g_param_spec_string ("action-name", P_("Action name"),
- P_("The name of the associated action, like “app.quit”"),
+ g_param_spec_string ("action-name", NULL, NULL,
NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_interface_install_property (iface,
- g_param_spec_variant ("action-target", P_("Action target value"),
- P_("The parameter for action invocations"),
+ g_param_spec_variant ("action-target", NULL, NULL,
G_VARIANT_TYPE_ANY, NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
}
diff --git a/gtk/gtkactionbar.c b/gtk/gtkactionbar.c
index bf646c94bc..9d7b312683 100644
--- a/gtk/gtkactionbar.c
+++ b/gtk/gtkactionbar.c
@@ -171,9 +171,7 @@ gtk_action_bar_class_init (GtkActionBarClass *klass)
* Controls whether the action bar shows its contents.
*/
props[PROP_REVEALED] =
- g_param_spec_boolean ("revealed",
- P_("Reveal"),
- P_("Controls whether the action bar shows its contents or not"),
+ g_param_spec_boolean ("revealed", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtkactionhelper.c b/gtk/gtkactionhelper.c
index 9f0573eca1..59da82a5dc 100644
--- a/gtk/gtkactionhelper.c
+++ b/gtk/gtkactionhelper.c
@@ -346,11 +346,11 @@ gtk_action_helper_class_init (GtkActionHelperClass *class)
class->get_property = gtk_action_helper_get_property;
class->finalize = gtk_action_helper_finalize;
- gtk_action_helper_pspecs[PROP_ENABLED] = g_param_spec_boolean ("enabled", "enabled", "enabled", FALSE,
+ gtk_action_helper_pspecs[PROP_ENABLED] = g_param_spec_boolean ("enabled", NULL, NULL, FALSE,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
- gtk_action_helper_pspecs[PROP_ACTIVE] = g_param_spec_boolean ("active", "active", "active", FALSE,
+ gtk_action_helper_pspecs[PROP_ACTIVE] = g_param_spec_boolean ("active", NULL, NULL, FALSE,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
- gtk_action_helper_pspecs[PROP_ROLE] = g_param_spec_enum ("role", "role", "role",
+ gtk_action_helper_pspecs[PROP_ROLE] = g_param_spec_enum ("role", NULL, NULL,
GTK_TYPE_BUTTON_ROLE,
GTK_BUTTON_ROLE_NORMAL,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
diff --git a/gtk/gtkactionmuxer.c b/gtk/gtkactionmuxer.c
index 06660ddf89..014274bc29 100644
--- a/gtk/gtkactionmuxer.c
+++ b/gtk/gtkactionmuxer.c
@@ -1218,14 +1218,12 @@ gtk_action_muxer_class_init (GObjectClass *class)
class->finalize = gtk_action_muxer_finalize;
class->dispose = gtk_action_muxer_dispose;
- properties[PROP_PARENT] = g_param_spec_object ("parent", "Parent",
- "The parent muxer",
+ properties[PROP_PARENT] = g_param_spec_object ("parent", NULL, NULL,
GTK_TYPE_ACTION_MUXER,
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS);
- properties[PROP_WIDGET] = g_param_spec_object ("widget", "Widget",
- "The widget that owns the muxer",
+ properties[PROP_WIDGET] = g_param_spec_object ("widget", NULL, NULL,
GTK_TYPE_WIDGET,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |
diff --git a/gtk/gtkadjustment.c b/gtk/gtkadjustment.c
index 4adc25142c..9737ef21b5 100644
--- a/gtk/gtkadjustment.c
+++ b/gtk/gtkadjustment.c
@@ -137,9 +137,7 @@ gtk_adjustment_class_init (GtkAdjustmentClass *class)
* The value of the adjustment.
*/
adjustment_props[PROP_VALUE] =
- g_param_spec_double ("value",
- P_("Value"),
- P_("The value of the adjustment"),
+ g_param_spec_double ("value", NULL, NULL,
-G_MAXDOUBLE, G_MAXDOUBLE,
0.0,
GTK_PARAM_READWRITE);
@@ -150,9 +148,7 @@ gtk_adjustment_class_init (GtkAdjustmentClass *class)
* The minimum value of the adjustment.
*/
adjustment_props[PROP_LOWER] =
- g_param_spec_double ("lower",
- P_("Minimum Value"),
- P_("The minimum value of the adjustment"),
+ g_param_spec_double ("lower", NULL, NULL,
-G_MAXDOUBLE, G_MAXDOUBLE,
0.0,
GTK_PARAM_READWRITE);
@@ -166,9 +162,7 @@ gtk_adjustment_class_init (GtkAdjustmentClass *class)
* property is nonzero.
*/
adjustment_props[PROP_UPPER] =
- g_param_spec_double ("upper",
- P_("Maximum Value"),
- P_("The maximum value of the adjustment"),
+ g_param_spec_double ("upper", NULL, NULL,
-G_MAXDOUBLE, G_MAXDOUBLE,
0.0,
GTK_PARAM_READWRITE);
@@ -179,9 +173,7 @@ gtk_adjustment_class_init (GtkAdjustmentClass *class)
* The step increment of the adjustment.
*/
adjustment_props[PROP_STEP_INCREMENT] =
- g_param_spec_double ("step-increment",
- P_("Step Increment"),
- P_("The step increment of the adjustment"),
+ g_param_spec_double ("step-increment", NULL, NULL,
-G_MAXDOUBLE, G_MAXDOUBLE,
0.0,
GTK_PARAM_READWRITE);
@@ -192,9 +184,7 @@ gtk_adjustment_class_init (GtkAdjustmentClass *class)
* The page increment of the adjustment.
*/
adjustment_props[PROP_PAGE_INCREMENT] =
- g_param_spec_double ("page-increment",
- P_("Page Increment"),
- P_("The page increment of the adjustment"),
+ g_param_spec_double ("page-increment", NULL, NULL,
-G_MAXDOUBLE, G_MAXDOUBLE,
0.0,
GTK_PARAM_READWRITE);
@@ -209,9 +199,7 @@ gtk_adjustment_class_init (GtkAdjustmentClass *class)
* `GtkSpinButton`.
*/
adjustment_props[PROP_PAGE_SIZE] =
- g_param_spec_double ("page-size",
- P_("Page Size"),
- P_("The page size of the adjustment"),
+ g_param_spec_double ("page-size", NULL, NULL,
-G_MAXDOUBLE, G_MAXDOUBLE,
0.0,
GTK_PARAM_READWRITE);
diff --git a/gtk/gtkappchooser.c b/gtk/gtkappchooser.c
index 1d1ba7da26..be55124894 100644
--- a/gtk/gtkappchooser.c
+++ b/gtk/gtkappchooser.c
@@ -67,9 +67,7 @@ gtk_app_chooser_default_init (GtkAppChooserIface *iface)
*
* See `GContentType` for more information about content types.
*/
- pspec = g_param_spec_string ("content-type",
- P_("Content type"),
- P_("The content type used by the open with object"),
+ pspec = g_param_spec_string ("content-type", NULL, NULL,
NULL,
G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS);
diff --git a/gtk/gtkappchooserbutton.c b/gtk/gtkappchooserbutton.c
index 0878a9f81b..bec256da6c 100644
--- a/gtk/gtkappchooserbutton.c
+++ b/gtk/gtkappchooserbutton.c
@@ -682,9 +682,7 @@ gtk_app_chooser_button_class_init (GtkAppChooserButtonClass *klass)
* a `GtkAppChooserDialog`.
*/
properties[PROP_SHOW_DIALOG_ITEM] =
- g_param_spec_boolean ("show-dialog-item",
- P_("Include an “Other…” item"),
- P_("Whether the combobox should include an item that triggers a GtkAppChooserDialog"),
+ g_param_spec_boolean ("show-dialog-item", NULL, NULL,
FALSE,
G_PARAM_READWRITE|G_PARAM_CONSTRUCT|G_PARAM_STATIC_STRINGS|G_PARAM_EXPLICIT_NOTIFY);
@@ -695,9 +693,7 @@ gtk_app_chooser_button_class_init (GtkAppChooserButtonClass *klass)
* on top for the provided content type.
*/
properties[PROP_SHOW_DEFAULT_ITEM] =
- g_param_spec_boolean ("show-default-item",
- P_("Show default item"),
- P_("Whether the combobox should show the default application on top"),
+ g_param_spec_boolean ("show-default-item", NULL, NULL,
FALSE,
G_PARAM_READWRITE|G_PARAM_CONSTRUCT|G_PARAM_STATIC_STRINGS|G_PARAM_EXPLICIT_NOTIFY);
@@ -710,9 +706,7 @@ gtk_app_chooser_button_class_init (GtkAppChooserButtonClass *klass)
* The string may contain Pango markup.
*/
properties[PROP_HEADING] =
- g_param_spec_string ("heading",
- P_("Heading"),
- P_("The text to show at the top of the dialog"),
+ g_param_spec_string ("heading", NULL, NULL,
NULL,
G_PARAM_READWRITE|G_PARAM_STATIC_STRINGS|G_PARAM_EXPLICIT_NOTIFY);
@@ -722,9 +716,7 @@ gtk_app_chooser_button_class_init (GtkAppChooserButtonClass *klass)
* Whether the app chooser dialog should be modal.
*/
properties[PROP_MODAL] =
- g_param_spec_boolean ("modal",
- P_("Modal"),
- P_("Whether the dialog should be modal"),
+ g_param_spec_boolean ("modal", NULL, NULL,
TRUE,
G_PARAM_READWRITE|G_PARAM_CONSTRUCT|G_PARAM_STATIC_STRINGS|G_PARAM_EXPLICIT_NOTIFY);
g_object_class_install_properties (oclass, NUM_PROPERTIES, properties);
diff --git a/gtk/gtkappchooserdialog.c b/gtk/gtkappchooserdialog.c
index b770b554dc..62b4d858bc 100644
--- a/gtk/gtkappchooserdialog.c
+++ b/gtk/gtkappchooserdialog.c
@@ -598,9 +598,7 @@ gtk_app_chooser_dialog_class_init (GtkAppChooserDialogClass *klass)
* The dialog's `GtkAppChooserWidget` content type will
* be guessed from the file, if present.
*/
- pspec = g_param_spec_object ("gfile",
- P_("GFile"),
- P_("The GFile used by the app chooser dialog"),
+ pspec = g_param_spec_object ("gfile", NULL, NULL,
G_TYPE_FILE,
G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS);
@@ -613,9 +611,7 @@ gtk_app_chooser_dialog_class_init (GtkAppChooserDialogClass *klass)
*
* The string may contain Pango markup.
*/
- pspec = g_param_spec_string ("heading",
- P_("Heading"),
- P_("The text to show at the top of the dialog"),
+ pspec = g_param_spec_string ("heading", NULL, NULL,
NULL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS |
G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtkappchooserwidget.c b/gtk/gtkappchooserwidget.c
index b8a5f829da..7769f30ba9 100644
--- a/gtk/gtkappchooserwidget.c
+++ b/gtk/gtkappchooserwidget.c
@@ -906,9 +906,7 @@ gtk_app_chooser_widget_class_init (GtkAppChooserWidgetClass *klass)
* If %FALSE, the default handler is listed among the recommended
* applications.
*/
- pspec = g_param_spec_boolean ("show-default",
- P_("Show default app"),
- P_("Whether the widget should show the default application"),
+ pspec = g_param_spec_boolean ("show-default", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
g_object_class_install_property (gobject_class, PROP_SHOW_DEFAULT, pspec);
@@ -922,9 +920,7 @@ gtk_app_chooser_widget_class_init (GtkAppChooserWidgetClass *klass)
* If %FALSE, the recommended applications are listed
* among the other applications.
*/
- pspec = g_param_spec_boolean ("show-recommended",
- P_("Show recommended apps"),
- P_("Whether the widget should show recommended applications"),
+ pspec = g_param_spec_boolean ("show-recommended", NULL, NULL,
TRUE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
g_object_class_install_property (gobject_class, PROP_SHOW_RECOMMENDED, pspec);
@@ -938,9 +934,7 @@ gtk_app_chooser_widget_class_init (GtkAppChooserWidgetClass *klass)
* If %FALSE, the fallback applications are listed among the
* other applications.
*/
- pspec = g_param_spec_boolean ("show-fallback",
- P_("Show fallback apps"),
- P_("Whether the widget should show fallback applications"),
+ pspec = g_param_spec_boolean ("show-fallback", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
g_object_class_install_property (gobject_class, PROP_SHOW_FALLBACK, pspec);
@@ -951,9 +945,7 @@ gtk_app_chooser_widget_class_init (GtkAppChooserWidgetClass *klass)
* Determines whether the app chooser should show a section
* for other applications.
*/
- pspec = g_param_spec_boolean ("show-other",
- P_("Show other apps"),
- P_("Whether the widget should show other applications"),
+ pspec = g_param_spec_boolean ("show-other", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
g_object_class_install_property (gobject_class, PROP_SHOW_OTHER, pspec);
@@ -965,9 +957,7 @@ gtk_app_chooser_widget_class_init (GtkAppChooserWidgetClass *klass)
* in a single list, without subsections for default,
* recommended or related applications.
*/
- pspec = g_param_spec_boolean ("show-all",
- P_("Show all apps"),
- P_("Whether the widget should show all applications"),
+ pspec = g_param_spec_boolean ("show-all", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
g_object_class_install_property (gobject_class, PROP_SHOW_ALL, pspec);
@@ -978,9 +968,7 @@ gtk_app_chooser_widget_class_init (GtkAppChooserWidgetClass *klass)
* The text that appears in the widget when there are no applications
* for the given content type.
*/
- pspec = g_param_spec_string ("default-text",
- P_("Widget’s default text"),
- P_("The default text appearing when there are no applications"),
+ pspec = g_param_spec_string ("default-text", NULL, NULL,
NULL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
g_object_class_install_property (gobject_class, PROP_DEFAULT_TEXT, pspec);
diff --git a/gtk/gtkapplication.c b/gtk/gtkapplication.c
index 363de28a86..11cf333db1 100644
--- a/gtk/gtkapplication.c
+++ b/gtk/gtkapplication.c
@@ -598,9 +598,7 @@ gtk_application_class_init (GtkApplicationClass *class)
* [property@Gtk.Application:screensaver-active] property).
*/
gtk_application_props[PROP_REGISTER_SESSION] =
- g_param_spec_boolean ("register-session",
- P_("Register session"),
- P_("Register with the session manager"),
+ g_param_spec_boolean ("register-session", NULL, NULL,
FALSE,
G_PARAM_READWRITE|G_PARAM_STATIC_STRINGS);
@@ -617,9 +615,7 @@ gtk_application_class_init (GtkApplicationClass *class)
* Linux.
*/
gtk_application_props[PROP_SCREENSAVER_ACTIVE] =
- g_param_spec_boolean ("screensaver-active",
- P_("Screensaver Active"),
- P_("Whether the screensaver is active"),
+ g_param_spec_boolean ("screensaver-active", NULL, NULL,
FALSE,
G_PARAM_READABLE|G_PARAM_STATIC_STRINGS);
@@ -629,9 +625,7 @@ gtk_application_class_init (GtkApplicationClass *class)
* The `GMenuModel` to be used for the application's menu bar.
*/
gtk_application_props[PROP_MENUBAR] =
- g_param_spec_object ("menubar",
- P_("Menubar"),
- P_("The GMenuModel for the menubar"),
+ g_param_spec_object ("menubar", NULL, NULL,
G_TYPE_MENU_MODEL,
G_PARAM_READWRITE|G_PARAM_STATIC_STRINGS);
@@ -641,9 +635,7 @@ gtk_application_class_init (GtkApplicationClass *class)
* The currently focused window of the application.
*/
gtk_application_props[PROP_ACTIVE_WINDOW] =
- g_param_spec_object ("active-window",
- P_("Active window"),
- P_("The window which most recently had focus"),
+ g_param_spec_object ("active-window", NULL, NULL,
GTK_TYPE_WINDOW,
G_PARAM_READABLE|G_PARAM_STATIC_STRINGS);
diff --git a/gtk/gtkapplicationwindow.c b/gtk/gtkapplicationwindow.c
index 170759d772..20b4977445 100644
--- a/gtk/gtkapplicationwindow.c
+++ b/gtk/gtkapplicationwindow.c
@@ -685,10 +685,7 @@ gtk_application_window_class_init (GtkApplicationWindowClass *class)
* of whether the desktop shell is showing it or not.
*/
gtk_application_window_properties[PROP_SHOW_MENUBAR] =
- g_param_spec_boolean ("show-menubar",
- P_("Show a menubar"),
- P_("TRUE if the window should show a "
- "menubar at the top of the window"),
+ g_param_spec_boolean ("show-menubar", NULL, NULL,
FALSE, G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
g_object_class_install_properties (object_class, N_PROPS, gtk_application_window_properties);
}
diff --git a/gtk/gtkaspectframe.c b/gtk/gtkaspectframe.c
index 805f6ce40e..29b09492d8 100644
--- a/gtk/gtkaspectframe.c
+++ b/gtk/gtkaspectframe.c
@@ -140,9 +140,7 @@ gtk_aspect_frame_class_init (GtkAspectFrameClass *class)
*/
g_object_class_install_property (gobject_class,
PROP_XALIGN,
- g_param_spec_float ("xalign",
- P_("Horizontal Alignment"),
- P_("X alignment of the child"),
+ g_param_spec_float ("xalign", NULL, NULL,
0.0, 1.0, 0.5,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
/**
@@ -152,9 +150,7 @@ gtk_aspect_frame_class_init (GtkAspectFrameClass *class)
*/
g_object_class_install_property (gobject_class,
PROP_YALIGN,
- g_param_spec_float ("yalign",
- P_("Vertical Alignment"),
- P_("Y alignment of the child"),
+ g_param_spec_float ("yalign", NULL, NULL,
0.0, 1.0, 0.5,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
/**
@@ -167,9 +163,7 @@ gtk_aspect_frame_class_init (GtkAspectFrameClass *class)
*/
g_object_class_install_property (gobject_class,
PROP_RATIO,
- g_param_spec_float ("ratio",
- P_("Ratio"),
- P_("Aspect ratio if obey_child is FALSE"),
+ g_param_spec_float ("ratio", NULL, NULL,
MIN_RATIO, MAX_RATIO, 1.0,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
/**
@@ -179,9 +173,7 @@ gtk_aspect_frame_class_init (GtkAspectFrameClass *class)
*/
g_object_class_install_property (gobject_class,
PROP_OBEY_CHILD,
- g_param_spec_boolean ("obey-child",
- P_("Obey child"),
- P_("Force aspect ratio to match that of the frame’s child"),
+ g_param_spec_boolean ("obey-child", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
/**
@@ -191,9 +183,7 @@ gtk_aspect_frame_class_init (GtkAspectFrameClass *class)
*/
g_object_class_install_property (gobject_class,
PROP_CHILD,
- g_param_spec_object ("child",
- P_("Child"),
- P_("The child widget"),
+ g_param_spec_object ("child", NULL, NULL,
GTK_TYPE_WIDGET,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
diff --git a/gtk/gtkassistant.c b/gtk/gtkassistant.c
index 464e6f1b68..81934c815a 100644
--- a/gtk/gtkassistant.c
+++ b/gtk/gtkassistant.c
@@ -253,9 +253,7 @@ gtk_assistant_page_class_init (GtkAssistantPageClass *class)
*/
g_object_class_install_property (object_class,
CHILD_PROP_PAGE_TYPE,
- g_param_spec_enum ("page-type",
- P_("Page type"),
- P_("The type of the assistant page"),
+ g_param_spec_enum ("page-type", NULL, NULL,
GTK_TYPE_ASSISTANT_PAGE_TYPE,
GTK_ASSISTANT_PAGE_CONTENT,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY));
@@ -267,9 +265,7 @@ gtk_assistant_page_class_init (GtkAssistantPageClass *class)
*/
g_object_class_install_property (object_class,
CHILD_PROP_PAGE_TITLE,
- g_param_spec_string ("title",
- P_("Page title"),
- P_("The title of the assistant page"),
+ g_param_spec_string ("title", NULL, NULL,
NULL,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY));
@@ -283,9 +279,7 @@ gtk_assistant_page_class_init (GtkAssistantPageClass *class)
*/
g_object_class_install_property (object_class,
CHILD_PROP_PAGE_COMPLETE,
- g_param_spec_boolean ("complete",
- P_("Page complete"),
- P_("Whether all required fields on the page have been filled out"),
+ g_param_spec_boolean ("complete", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY));
@@ -296,9 +290,7 @@ gtk_assistant_page_class_init (GtkAssistantPageClass *class)
*/
g_object_class_install_property (object_class,
CHILD_PROP_CHILD,
- g_param_spec_object ("child",
- P_("Child widget"),
- P_("The content the assistant page"),
+ g_param_spec_object ("child", NULL, NULL,
GTK_TYPE_WIDGET,
GTK_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
}
@@ -604,9 +596,7 @@ gtk_assistant_class_init (GtkAssistantClass *class)
*/
g_object_class_install_property (gobject_class,
PROP_USE_HEADER_BAR,
- g_param_spec_int ("use-header-bar",
- P_("Use Header Bar"),
- P_("Use Header Bar for actions."),
+ g_param_spec_int ("use-header-bar", NULL, NULL,
-1, 1, -1,
GTK_PARAM_READWRITE|G_PARAM_CONSTRUCT_ONLY));
@@ -617,9 +607,7 @@ gtk_assistant_class_init (GtkAssistantClass *class)
*/
g_object_class_install_property (gobject_class,
PROP_PAGES,
- g_param_spec_object ("pages",
- P_("Pages"),
- P_("The pages of the assistant."),
+ g_param_spec_object ("pages", NULL, NULL,
G_TYPE_LIST_MODEL,
GTK_PARAM_READABLE));
diff --git a/gtk/gtkatcontext.c b/gtk/gtkatcontext.c
index cbb664e2ea..9205e9b5fd 100644
--- a/gtk/gtkatcontext.c
+++ b/gtk/gtkatcontext.c
@@ -209,9 +209,7 @@ gtk_at_context_class_init (GtkATContextClass *klass)
* set or retrieved.
*/
obj_props[PROP_ACCESSIBLE_ROLE] =
- g_param_spec_enum ("accessible-role",
- "Accessible Role",
- "The accessible role of the AT context",
+ g_param_spec_enum ("accessible-role", NULL, NULL,
GTK_TYPE_ACCESSIBLE_ROLE,
GTK_ACCESSIBLE_ROLE_NONE,
G_PARAM_READWRITE |
@@ -224,9 +222,7 @@ gtk_at_context_class_init (GtkATContextClass *klass)
* The `GtkAccessible` that created the `GtkATContext` instance.
*/
obj_props[PROP_ACCESSIBLE] =
- g_param_spec_object ("accessible",
- "Accessible",
- "The accessible implementation",
+ g_param_spec_object ("accessible", NULL, NULL,
GTK_TYPE_ACCESSIBLE,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |
@@ -238,9 +234,7 @@ gtk_at_context_class_init (GtkATContextClass *klass)
* The `GdkDisplay` for the `GtkATContext`.
*/
obj_props[PROP_DISPLAY] =
- g_param_spec_object ("display",
- "Display",
- "The display connection",
+ g_param_spec_object ("display", NULL, NULL,
GDK_TYPE_DISPLAY,
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS |
diff --git a/gtk/gtkbookmarklist.c b/gtk/gtkbookmarklist.c
index c947b25a4f..59be4eca12 100644
--- a/gtk/gtkbookmarklist.c
+++ b/gtk/gtkbookmarklist.c
@@ -213,9 +213,7 @@ gtk_bookmark_list_class_init (GtkBookmarkListClass *class)
* The bookmark file to load.
*/
properties[PROP_FILENAME] =
- g_param_spec_string ("filename",
- P_("Filename"),
- P_("Bookmark file to load"),
+ g_param_spec_string ("filename", NULL, NULL,
NULL,
GTK_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_EXPLICIT_NOTIFY);
/**
@@ -224,9 +222,7 @@ gtk_bookmark_list_class_init (GtkBookmarkListClass *class)
* The attributes to query.
*/
properties[PROP_ATTRIBUTES] =
- g_param_spec_string ("attributes",
- P_("Attributes"),
- P_("Attributes to query"),
+ g_param_spec_string ("attributes", NULL, NULL,
NULL,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -236,9 +232,7 @@ gtk_bookmark_list_class_init (GtkBookmarkListClass *class)
* Priority used when loading.
*/
properties[PROP_IO_PRIORITY] =
- g_param_spec_int ("io-priority",
- P_("IO priority"),
- P_("Priority used when loading"),
+ g_param_spec_int ("io-priority", NULL, NULL,
-G_MAXINT, G_MAXINT, G_PRIORITY_DEFAULT,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -248,9 +242,7 @@ gtk_bookmark_list_class_init (GtkBookmarkListClass *class)
* %TRUE if files are being loaded.
*/
properties[PROP_LOADING] =
- g_param_spec_boolean ("loading",
- P_("loading"),
- P_("TRUE if files are being loaded"),
+ g_param_spec_boolean ("loading", NULL, NULL,
FALSE,
GTK_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtkboolfilter.c b/gtk/gtkboolfilter.c
index 987ec1ff4d..0bdb29ea47 100644
--- a/gtk/gtkboolfilter.c
+++ b/gtk/gtkboolfilter.c
@@ -159,9 +159,7 @@ gtk_bool_filter_class_init (GtkBoolFilterClass *class)
* The boolean expression to evaluate on item.
*/
properties[PROP_EXPRESSION] =
- gtk_param_spec_expression ("expression",
- P_("Expression"),
- P_("Expression to evaluate"),
+ gtk_param_spec_expression ("expression", NULL, NULL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
/**
@@ -170,9 +168,7 @@ gtk_bool_filter_class_init (GtkBoolFilterClass *class)
* If the expression result should be inverted.
*/
properties[PROP_INVERT] =
- g_param_spec_boolean ("invert",
- P_("Invert"),
- P_("If the expression result should be inverted"),
+ g_param_spec_boolean ("invert", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtkbox.c b/gtk/gtkbox.c
index c1b46ab06e..bd106fd308 100644
--- a/gtk/gtkbox.c
+++ b/gtk/gtkbox.c
@@ -258,9 +258,7 @@ gtk_box_class_init (GtkBoxClass *class)
* The amount of space between children.
*/
props[PROP_SPACING] =
- g_param_spec_int ("spacing",
- P_("Spacing"),
- P_("The amount of space between children"),
+ g_param_spec_int ("spacing", NULL, NULL,
0, G_MAXINT, 0,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -270,9 +268,7 @@ gtk_box_class_init (GtkBoxClass *class)
* Whether the children should all be the same size.
*/
props[PROP_HOMOGENEOUS] =
- g_param_spec_boolean ("homogeneous",
- P_("Homogeneous"),
- P_("Whether the children should all be the same size"),
+ g_param_spec_boolean ("homogeneous", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -282,9 +278,7 @@ gtk_box_class_init (GtkBoxClass *class)
* The position of the baseline aligned widgets if extra space is available.
*/
props[PROP_BASELINE_POSITION] =
- g_param_spec_enum ("baseline-position",
- P_("Baseline position"),
- P_("The position of the baseline aligned widgets if extra space is available"),
+ g_param_spec_enum ("baseline-position", NULL, NULL,
GTK_TYPE_BASELINE_POSITION,
GTK_BASELINE_POSITION_CENTER,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtkboxlayout.c b/gtk/gtkboxlayout.c
index 5d1b63169d..275e0371c9 100644
--- a/gtk/gtkboxlayout.c
+++ b/gtk/gtkboxlayout.c
@@ -896,9 +896,7 @@ gtk_box_layout_class_init (GtkBoxLayoutClass *klass)
* equally among the children.
*/
box_layout_props[PROP_HOMOGENEOUS] =
- g_param_spec_boolean ("homogeneous",
- P_("Homogeneous"),
- P_("Distribute space homogeneously"),
+ g_param_spec_boolean ("homogeneous", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE |
G_PARAM_EXPLICIT_NOTIFY);
@@ -909,9 +907,7 @@ gtk_box_layout_class_init (GtkBoxLayoutClass *klass)
* The space to put between the children.
*/
box_layout_props[PROP_SPACING] =
- g_param_spec_int ("spacing",
- P_("Spacing"),
- P_("Spacing between widgets"),
+ g_param_spec_int ("spacing", NULL, NULL,
0, G_MAXINT, 0,
GTK_PARAM_READWRITE |
G_PARAM_EXPLICIT_NOTIFY);
@@ -926,9 +922,7 @@ gtk_box_layout_class_init (GtkBoxLayoutClass *klass)
* at least one child with a baseline alignment.
*/
box_layout_props[PROP_BASELINE_POSITION] =
- g_param_spec_enum ("baseline-position",
- P_("Baseline position"),
- P_("The position of the baseline aligned widgets if extra space is available"),
+ g_param_spec_enum ("baseline-position", NULL, NULL,
GTK_TYPE_BASELINE_POSITION,
GTK_BASELINE_POSITION_CENTER,
GTK_PARAM_READWRITE |
diff --git a/gtk/gtkbuilder.c b/gtk/gtkbuilder.c
index ec9fa6f913..ab28ccc5d9 100644
--- a/gtk/gtkbuilder.c
+++ b/gtk/gtkbuilder.c
@@ -305,9 +305,7 @@ gtk_builder_class_init (GtkBuilderClass *klass)
* otherwise g_dgettext().
*/
builder_props[PROP_TRANSLATION_DOMAIN] =
- g_param_spec_string ("translation-domain",
- P_("Translation Domain"),
- P_("The translation domain used by gettext"),
+ g_param_spec_string ("translation-domain", NULL, NULL,
NULL,
GTK_PARAM_READWRITE);
@@ -317,9 +315,7 @@ gtk_builder_class_init (GtkBuilderClass *klass)
* The object the builder is evaluating for.
*/
builder_props[PROP_CURRENT_OBJECT] =
- g_param_spec_object ("current-object",
- P_("Current object"),
- P_("The object the builder is evaluating for"),
+ g_param_spec_object ("current-object", NULL, NULL,
G_TYPE_OBJECT,
GTK_PARAM_READWRITE);
@@ -329,9 +325,7 @@ gtk_builder_class_init (GtkBuilderClass *klass)
* The scope the builder is operating in
*/
builder_props[PROP_SCOPE] =
- g_param_spec_object ("scope",
- P_("Scope"),
- P_("The scope the builder is operating in"),
+ g_param_spec_object ("scope", NULL, NULL,
GTK_TYPE_BUILDER_SCOPE,
GTK_PARAM_READWRITE | G_PARAM_CONSTRUCT);
diff --git a/gtk/gtkbuilderlistitemfactory.c b/gtk/gtkbuilderlistitemfactory.c
index 0c30d0082f..19c95f2776 100644
--- a/gtk/gtkbuilderlistitemfactory.c
+++ b/gtk/gtkbuilderlistitemfactory.c
@@ -264,9 +264,7 @@ gtk_builder_list_item_factory_class_init (GtkBuilderListItemFactoryClass *klass)
* `GBytes` containing the UI definition.
*/
properties[PROP_BYTES] =
- g_param_spec_boxed ("bytes",
- P_("Bytes"),
- P_("bytes containing the UI definition"),
+ g_param_spec_boxed ("bytes", NULL, NULL,
G_TYPE_BYTES,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
@@ -276,9 +274,7 @@ gtk_builder_list_item_factory_class_init (GtkBuilderListItemFactoryClass *klass)
* Path of the resource containing the UI definition.
*/
properties[PROP_RESOURCE] =
- g_param_spec_string ("resource",
- P_("Resource"),
- P_("resource containing the UI definition"),
+ g_param_spec_string ("resource", NULL, NULL,
NULL,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
@@ -288,9 +284,7 @@ gtk_builder_list_item_factory_class_init (GtkBuilderListItemFactoryClass *klass)
* `GtkBuilderScope` to use when instantiating listitems
*/
properties[PROP_SCOPE] =
- g_param_spec_object ("scope",
- P_("Scope"),
- P_("scope to use when instantiating listitems"),
+ g_param_spec_object ("scope", NULL, NULL,
GTK_TYPE_BUILDER_SCOPE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c
index f02ca168bc..2e4b8b75c9 100644
--- a/gtk/gtkbutton.c
+++ b/gtk/gtkbutton.c
@@ -218,9 +218,7 @@ gtk_button_class_init (GtkButtonClass *klass)
* Text of the label inside the button, if the button contains a label widget.
*/
props[PROP_LABEL] =
- g_param_spec_string ("label",
- P_("Label"),
- P_("Text of the label widget inside the button, if the button contains a label widget"),
+ g_param_spec_string ("label", NULL, NULL,
NULL,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -231,9 +229,7 @@ gtk_button_class_init (GtkButtonClass *klass)
* to be used as mnemonic.
*/
props[PROP_USE_UNDERLINE] =
- g_param_spec_boolean ("use-underline",
- P_("Use underline"),
- P_("If set, an underline in the text indicates the next character should be used for the mnemonic accelerator key"),
+ g_param_spec_boolean ("use-underline", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -243,9 +239,7 @@ gtk_button_class_init (GtkButtonClass *klass)
* Whether the button has a frame.
*/
props[PROP_HAS_FRAME] =
- g_param_spec_boolean ("has-frame",
- P_("Has Frame"),
- P_("Whether the button has a frame"),
+ g_param_spec_boolean ("has-frame", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -255,9 +249,7 @@ gtk_button_class_init (GtkButtonClass *klass)
* The name of the icon used to automatically populate the button.
*/
props[PROP_ICON_NAME] =
- g_param_spec_string ("icon-name",
- P_("Icon Name"),
- P_("The name of the icon used to automatically populate the button"),
+ g_param_spec_string ("icon-name", NULL, NULL,
NULL,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -267,9 +259,7 @@ gtk_button_class_init (GtkButtonClass *klass)
* The child widget.
*/
props[PROP_CHILD] =
- g_param_spec_object ("child",
- P_("Child"),
- P_("The child widget"),
+ g_param_spec_object ("child", NULL, NULL,
GTK_TYPE_WIDGET,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtkcalendar.c b/gtk/gtkcalendar.c
index d24d58fb9c..8f93da1311 100644
--- a/gtk/gtkcalendar.c
+++ b/gtk/gtkcalendar.c
@@ -372,9 +372,7 @@ gtk_calendar_class_init (GtkCalendarClass *class)
*/
g_object_class_install_property (gobject_class,
PROP_YEAR,
- g_param_spec_int ("year",
- P_("Year"),
- P_("The selected year"),
+ g_param_spec_int ("year", NULL, NULL,
1, 9999, 1,
G_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -387,9 +385,7 @@ gtk_calendar_class_init (GtkCalendarClass *class)
*/
g_object_class_install_property (gobject_class,
PROP_MONTH,
- g_param_spec_int ("month",
- P_("Month"),
- P_("The selected month (as a number between 0 and 11)"),
+ g_param_spec_int ("month", NULL, NULL,
0, 11, 0,
G_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -400,9 +396,7 @@ gtk_calendar_class_init (GtkCalendarClass *class)
*/
g_object_class_install_property (gobject_class,
PROP_DAY,
- g_param_spec_int ("day",
- P_("Day"),
- P_("The selected day (as a number between 1 and 31)"),
+ g_param_spec_int ("day", NULL, NULL,
1, 31, 1,
G_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -413,9 +407,7 @@ gtk_calendar_class_init (GtkCalendarClass *class)
*/
g_object_class_install_property (gobject_class,
PROP_SHOW_HEADING,
- g_param_spec_boolean ("show-heading",
- P_("Show Heading"),
- P_("If TRUE, a heading is displayed"),
+ g_param_spec_boolean ("show-heading", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -426,9 +418,7 @@ gtk_calendar_class_init (GtkCalendarClass *class)
*/
g_object_class_install_property (gobject_class,
PROP_SHOW_DAY_NAMES,
- g_param_spec_boolean ("show-day-names",
- P_("Show Day Names"),
- P_("If TRUE, day names are displayed"),
+ g_param_spec_boolean ("show-day-names", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
/**
@@ -438,9 +428,7 @@ gtk_calendar_class_init (GtkCalendarClass *class)
*/
g_object_class_install_property (gobject_class,
PROP_SHOW_WEEK_NUMBERS,
- g_param_spec_boolean ("show-week-numbers",
- P_("Show Week Numbers"),
- P_("If TRUE, week numbers are displayed"),
+ g_param_spec_boolean ("show-week-numbers", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
diff --git a/gtk/gtkcellarea.c b/gtk/gtkcellarea.c
index 3cb08fdee0..cdd0ca852d 100644
--- a/gtk/gtkcellarea.c
+++ b/gtk/gtkcellarea.c
@@ -774,9 +774,7 @@ gtk_cell_area_class_init (GtkCellAreaClass *class)
*/
g_object_class_install_property (object_class,
PROP_FOCUS_CELL,
- g_param_spec_object ("focus-cell",
- P_("Focus Cell"),
- P_("The cell which currently has focus"),
+ g_param_spec_object ("focus-cell", NULL, NULL,
GTK_TYPE_CELL_RENDERER,
GTK_PARAM_READWRITE));
@@ -790,9 +788,7 @@ gtk_cell_area_class_init (GtkCellAreaClass *class)
*/
g_object_class_install_property (object_class,
PROP_EDITED_CELL,
- g_param_spec_object ("edited-cell",
- P_("Edited Cell"),
- P_("The cell which is currently being edited"),
+ g_param_spec_object ("edited-cell", NULL, NULL,
GTK_TYPE_CELL_RENDERER,
GTK_PARAM_READABLE));
@@ -806,9 +802,7 @@ gtk_cell_area_class_init (GtkCellAreaClass *class)
*/
g_object_class_install_property (object_class,
PROP_EDIT_WIDGET,
- g_param_spec_object ("edit-widget",
- P_("Edit Widget"),
- P_("The widget currently editing the edited cell"),
+ g_param_spec_object ("edit-widget", NULL, NULL,
GTK_TYPE_CELL_EDITABLE,
GTK_PARAM_READABLE));
diff --git a/gtk/gtkcellareabox.c b/gtk/gtkcellareabox.c
index b1049a7dae..626502cb18 100644
--- a/gtk/gtkcellareabox.c
+++ b/gtk/gtkcellareabox.c
@@ -312,9 +312,7 @@ gtk_cell_area_box_class_init (GtkCellAreaBoxClass *class)
*/
g_object_class_install_property (object_class,
PROP_SPACING,
- g_param_spec_int ("spacing",
- P_("Spacing"),
- P_("Space which is inserted between cells"),
+ g_param_spec_int ("spacing", NULL, NULL,
0,
G_MAXINT,
0,
@@ -330,9 +328,7 @@ gtk_cell_area_box_class_init (GtkCellAreaBoxClass *class)
gtk_cell_area_class_install_cell_property (area_class,
CELL_PROP_EXPAND,
g_param_spec_boolean
- ("expand",
- P_("Expand"),
- P_("Whether the cell expands"),
+ ("expand", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE));
@@ -344,9 +340,7 @@ gtk_cell_area_box_class_init (GtkCellAreaBoxClass *class)
gtk_cell_area_class_install_cell_property (area_class,
CELL_PROP_ALIGN,
g_param_spec_boolean
- ("align",
- P_("Align"),
- P_("Whether cell should align with adjacent rows"),
+ ("align", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE));
@@ -359,9 +353,7 @@ gtk_cell_area_box_class_init (GtkCellAreaBoxClass *class)
gtk_cell_area_class_install_cell_property (area_class,
CELL_PROP_FIXED_SIZE,
g_param_spec_boolean
- ("fixed-size",
- P_("Fixed Size"),
- P_("Whether cells should be the same size in all rows"),
+ ("fixed-size", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE));
@@ -374,10 +366,7 @@ gtk_cell_area_box_class_init (GtkCellAreaBoxClass *class)
gtk_cell_area_class_install_cell_property (area_class,
CELL_PROP_PACK_TYPE,
g_param_spec_enum
- ("pack-type",
- P_("Pack Type"),
- P_("A GtkPackType indicating whether the cell is packed with "
- "reference to the start or end of the cell area"),
+ ("pack-type", NULL, NULL,
GTK_TYPE_PACK_TYPE, GTK_PACK_START,
GTK_PARAM_READWRITE));
}
diff --git a/gtk/gtkcellareacontext.c b/gtk/gtkcellareacontext.c
index eec984c779..9886bccabc 100644
--- a/gtk/gtkcellareacontext.c
+++ b/gtk/gtkcellareacontext.c
@@ -109,9 +109,7 @@ gtk_cell_area_context_class_init (GtkCellAreaContextClass *class)
*/
g_object_class_install_property (object_class,
PROP_CELL_AREA,
- g_param_spec_object ("area",
- P_("Area"),
- P_("The Cell Area this context was created for"),
+ g_param_spec_object ("area", NULL, NULL,
GTK_TYPE_CELL_AREA,
GTK_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
@@ -124,9 +122,7 @@ gtk_cell_area_context_class_init (GtkCellAreaContextClass *class)
*/
g_object_class_install_property (object_class,
PROP_MIN_WIDTH,
- g_param_spec_int ("minimum-width",
- P_("Minimum Width"),
- P_("Minimum cached width"),
+ g_param_spec_int ("minimum-width", NULL, NULL,
-1, G_MAXINT, -1,
GTK_PARAM_READABLE));
@@ -139,9 +135,7 @@ gtk_cell_area_context_class_init (GtkCellAreaContextClass *class)
*/
g_object_class_install_property (object_class,
PROP_NAT_WIDTH,
- g_param_spec_int ("natural-width",
- P_("Minimum Width"),
- P_("Minimum cached width"),
+ g_param_spec_int ("natural-width", NULL, NULL,
-1, G_MAXINT, -1,
GTK_PARAM_READABLE));
@@ -154,9 +148,7 @@ gtk_cell_area_context_class_init (GtkCellAreaContextClass *class)
*/
g_object_class_install_property (object_class,
PROP_MIN_HEIGHT,
- g_param_spec_int ("minimum-height",
- P_("Minimum Height"),
- P_("Minimum cached height"),
+ g_param_spec_int ("minimum-height", NULL, NULL,
-1, G_MAXINT, -1,
GTK_PARAM_READABLE));
@@ -169,9 +161,7 @@ gtk_cell_area_context_class_init (GtkCellAreaContextClass *class)
*/
g_object_class_install_property (object_class,
PROP_NAT_HEIGHT,
- g_param_spec_int ("natural-height",
- P_("Minimum Height"),
- P_("Minimum cached height"),
+ g_param_spec_int ("natural-height", NULL, NULL,
-1, G_MAXINT, -1,
GTK_PARAM_READABLE));
}
diff --git a/gtk/gtkcelleditable.c b/gtk/gtkcelleditable.c
index 9c413c4bd5..b80ee1e762 100644
--- a/gtk/gtkcelleditable.c
+++ b/gtk/gtkcelleditable.c
@@ -44,9 +44,7 @@ gtk_cell_editable_default_init (GtkCellEditableInterface *iface)
* Indicates whether editing on the cell has been canceled.
*/
g_object_interface_install_property (iface,
- g_param_spec_boolean ("editing-canceled",
- P_("Editing Canceled"),
- P_("Indicates that editing has been canceled"),
+ g_param_spec_boolean ("editing-canceled", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
diff --git a/gtk/gtkcellrenderer.c b/gtk/gtkcellrenderer.c
index c462c007c5..ece9c4657a 100644
--- a/gtk/gtkcellrenderer.c
+++ b/gtk/gtkcellrenderer.c
@@ -277,33 +277,25 @@ gtk_cell_renderer_class_init (GtkCellRendererClass *class)
g_object_class_install_property (object_class,
PROP_MODE,
- g_param_spec_enum ("mode",
- P_("mode"),
- P_("Editable mode of the CellRenderer"),
+ g_param_spec_enum ("mode", NULL, NULL,
GTK_TYPE_CELL_RENDERER_MODE,
GTK_CELL_RENDERER_MODE_INERT,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
g_object_class_install_property (object_class,
PROP_VISIBLE,
- g_param_spec_boolean ("visible",
- P_("visible"),
- P_("Display the cell"),
+ g_param_spec_boolean ("visible", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
g_object_class_install_property (object_class,
PROP_SENSITIVE,
- g_param_spec_boolean ("sensitive",
- P_("Sensitive"),
- P_("Display the cell sensitive"),
+ g_param_spec_boolean ("sensitive", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
g_object_class_install_property (object_class,
PROP_XALIGN,
- g_param_spec_float ("xalign",
- P_("xalign"),
- P_("The x-align"),
+ g_param_spec_float ("xalign", NULL, NULL,
0.0,
1.0,
0.5,
@@ -311,9 +303,7 @@ gtk_cell_renderer_class_init (GtkCellRendererClass *class)
g_object_class_install_property (object_class,
PROP_YALIGN,
- g_param_spec_float ("yalign",
- P_("yalign"),
- P_("The y-align"),
+ g_param_spec_float ("yalign", NULL, NULL,
0.0,
1.0,
0.5,
@@ -321,9 +311,7 @@ gtk_cell_renderer_class_init (GtkCellRendererClass *class)
g_object_class_install_property (object_class,
PROP_XPAD,
- g_param_spec_uint ("xpad",
- P_("xpad"),
- P_("The xpad"),
+ g_param_spec_uint ("xpad", NULL, NULL,
0,
G_MAXUINT,
0,
@@ -331,9 +319,7 @@ gtk_cell_renderer_class_init (GtkCellRendererClass *class)
g_object_class_install_property (object_class,
PROP_YPAD,
- g_param_spec_uint ("ypad",
- P_("ypad"),
- P_("The ypad"),
+ g_param_spec_uint ("ypad", NULL, NULL,
0,
G_MAXUINT,
0,
@@ -341,9 +327,7 @@ gtk_cell_renderer_class_init (GtkCellRendererClass *class)
g_object_class_install_property (object_class,
PROP_WIDTH,
- g_param_spec_int ("width",
- P_("width"),
- P_("The fixed width"),
+ g_param_spec_int ("width", NULL, NULL,
-1,
G_MAXINT,
-1,
@@ -351,9 +335,7 @@ gtk_cell_renderer_class_init (GtkCellRendererClass *class)
g_object_class_install_property (object_class,
PROP_HEIGHT,
- g_param_spec_int ("height",
- P_("height"),
- P_("The fixed height"),
+ g_param_spec_int ("height", NULL, NULL,
-1,
G_MAXINT,
-1,
@@ -361,26 +343,20 @@ gtk_cell_renderer_class_init (GtkCellRendererClass *class)
g_object_class_install_property (object_class,
PROP_IS_EXPANDER,
- g_param_spec_boolean ("is-expander",
- P_("Is Expander"),
- P_("Row has children"),
+ g_param_spec_boolean ("is-expander", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
g_object_class_install_property (object_class,
PROP_IS_EXPANDED,
- g_param_spec_boolean ("is-expanded",
- P_("Is Expanded"),
- P_("Row is an expander row, and is expanded"),
+ g_param_spec_boolean ("is-expanded", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
g_object_class_install_property (object_class,
PROP_CELL_BACKGROUND,
- g_param_spec_string ("cell-background",
- P_("Cell background color name"),
- P_("Cell background color as a string"),
+ g_param_spec_string ("cell-background", NULL, NULL,
NULL,
GTK_PARAM_WRITABLE));
@@ -391,26 +367,20 @@ gtk_cell_renderer_class_init (GtkCellRendererClass *class)
*/
g_object_class_install_property (object_class,
PROP_CELL_BACKGROUND_RGBA,
- g_param_spec_boxed ("cell-background-rgba",
- P_("Cell background RGBA color"),
- P_("Cell background color as a GdkRGBA"),
+ g_param_spec_boxed ("cell-background-rgba", NULL, NULL,
GDK_TYPE_RGBA,
GTK_PARAM_READWRITE));
g_object_class_install_property (object_class,
PROP_EDITING,
- g_param_spec_boolean ("editing",
- P_("Editing"),
- P_("Whether the cell renderer is currently in editing mode"),
+ g_param_spec_boolean ("editing", NULL, NULL,
FALSE,
GTK_PARAM_READABLE));
#define ADD_SET_PROP(propname, propval, nick, blurb) g_object_class_install_property (object_class, propval, g_param_spec_boolean (propname, nick, blurb, FALSE, GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY))
- ADD_SET_PROP ("cell-background-set", PROP_CELL_BACKGROUND_SET,
- P_("Cell background set"),
- P_("Whether the cell background color is set"));
+ ADD_SET_PROP ("cell-background-set", PROP_CELL_BACKGROUND_SET, NULL, NULL);
if (GtkCellRenderer_private_offset != 0)
g_type_class_adjust_private_offset (class, &GtkCellRenderer_private_offset);
diff --git a/gtk/gtkcellrendereraccel.c b/gtk/gtkcellrendereraccel.c
index c4762ad798..911b407672 100644
--- a/gtk/gtkcellrendereraccel.c
+++ b/gtk/gtkcellrendereraccel.c
@@ -171,9 +171,7 @@ gtk_cell_renderer_accel_class_init (GtkCellRendererAccelClass *cell_accel_class)
*/
g_object_class_install_property (object_class,
PROP_ACCEL_KEY,
- g_param_spec_uint ("accel-key",
- P_("Accelerator key"),
- P_("The keyval of the accelerator"),
+ g_param_spec_uint ("accel-key", NULL, NULL,
0,
G_MAXINT,
0,
@@ -186,9 +184,7 @@ gtk_cell_renderer_accel_class_init (GtkCellRendererAccelClass *cell_accel_class)
*/
g_object_class_install_property (object_class,
PROP_ACCEL_MODS,
- g_param_spec_flags ("accel-mods",
- P_("Accelerator modifiers"),
- P_("The modifier mask of the accelerator"),
+ g_param_spec_flags ("accel-mods", NULL, NULL,
GDK_TYPE_MODIFIER_TYPE,
0,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -202,9 +198,7 @@ gtk_cell_renderer_accel_class_init (GtkCellRendererAccelClass *cell_accel_class)
*/
g_object_class_install_property (object_class,
PROP_KEYCODE,
- g_param_spec_uint ("keycode",
- P_("Accelerator keycode"),
- P_("The hardware keycode of the accelerator"),
+ g_param_spec_uint ("keycode", NULL, NULL,
0,
G_MAXINT,
0,
@@ -220,9 +214,7 @@ gtk_cell_renderer_accel_class_init (GtkCellRendererAccelClass *cell_accel_class)
*/
g_object_class_install_property (object_class,
PROP_ACCEL_MODE,
- g_param_spec_enum ("accel-mode",
- P_("Accelerator Mode"),
- P_("The type of accelerators"),
+ g_param_spec_enum ("accel-mode", NULL, NULL,
GTK_TYPE_CELL_RENDERER_ACCEL_MODE,
GTK_CELL_RENDERER_ACCEL_MODE_GTK,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
diff --git a/gtk/gtkcellrenderercombo.c b/gtk/gtkcellrenderercombo.c
index d902da5f31..1cad6653fd 100644
--- a/gtk/gtkcellrenderercombo.c
+++ b/gtk/gtkcellrenderercombo.c
@@ -130,9 +130,7 @@ gtk_cell_renderer_combo_class_init (GtkCellRendererComboClass *klass)
*/
g_object_class_install_property (object_class,
PROP_MODEL,
- g_param_spec_object ("model",
- P_("Model"),
- P_("The model containing the possible values for the combo box"),
+ g_param_spec_object ("model", NULL, NULL,
GTK_TYPE_TREE_MODEL,
GTK_PARAM_READWRITE));
@@ -151,9 +149,7 @@ gtk_cell_renderer_combo_class_init (GtkCellRendererComboClass *klass)
*/
g_object_class_install_property (object_class,
PROP_TEXT_COLUMN,
- g_param_spec_int ("text-column",
- P_("Text Column"),
- P_("A column in the data source model to get the strings from"),
+ g_param_spec_int ("text-column", NULL, NULL,
-1,
G_MAXINT,
-1,
@@ -167,9 +163,7 @@ gtk_cell_renderer_combo_class_init (GtkCellRendererComboClass *klass)
*/
g_object_class_install_property (object_class,
PROP_HAS_ENTRY,
- g_param_spec_boolean ("has-entry",
- P_("Has Entry"),
- P_("If FALSE, don’t allow to enter strings other than the chosen ones"),
+ g_param_spec_boolean ("has-entry", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
diff --git a/gtk/gtkcellrendererpixbuf.c b/gtk/gtkcellrendererpixbuf.c
index a90405458d..8c3f4c9161 100644
--- a/gtk/gtkcellrendererpixbuf.c
+++ b/gtk/gtkcellrendererpixbuf.c
@@ -194,25 +194,19 @@ gtk_cell_renderer_pixbuf_class_init (GtkCellRendererPixbufClass *class)
g_object_class_install_property (object_class,
PROP_PIXBUF,
- g_param_spec_object ("pixbuf",
- P_("Pixbuf Object"),
- P_("The pixbuf to render"),
+ g_param_spec_object ("pixbuf", NULL, NULL,
GDK_TYPE_PIXBUF,
GTK_PARAM_WRITABLE));
g_object_class_install_property (object_class,
PROP_PIXBUF_EXPANDER_OPEN,
- g_param_spec_object ("pixbuf-expander-open",
- P_("Pixbuf Expander Open"),
- P_("Pixbuf for open expander"),
+ g_param_spec_object ("pixbuf-expander-open", NULL, NULL,
GDK_TYPE_PIXBUF,
GTK_PARAM_READWRITE));
g_object_class_install_property (object_class,
PROP_PIXBUF_EXPANDER_CLOSED,
- g_param_spec_object ("pixbuf-expander-closed",
- P_("Pixbuf Expander Closed"),
- P_("Pixbuf for closed expander"),
+ g_param_spec_object ("pixbuf-expander-closed", NULL, NULL,
GDK_TYPE_PIXBUF,
GTK_PARAM_READWRITE));
@@ -221,9 +215,7 @@ gtk_cell_renderer_pixbuf_class_init (GtkCellRendererPixbufClass *class)
*/
g_object_class_install_property (object_class,
PROP_TEXTURE,
- g_param_spec_object ("texture",
- P_("Texture"),
- P_("The texture to render"),
+ g_param_spec_object ("texture", NULL, NULL,
GDK_TYPE_TEXTURE,
GTK_PARAM_READWRITE));
@@ -234,9 +226,7 @@ gtk_cell_renderer_pixbuf_class_init (GtkCellRendererPixbufClass *class)
*/
g_object_class_install_property (object_class,
PROP_ICON_SIZE,
- g_param_spec_enum ("icon-size",
- P_("Icon Size"),
- P_("The GtkIconSize value that specifies the size of the rendered icon"),
+ g_param_spec_enum ("icon-size", NULL, NULL,
GTK_TYPE_ICON_SIZE,
GTK_ICON_SIZE_INHERIT,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY));
@@ -249,9 +239,7 @@ gtk_cell_renderer_pixbuf_class_init (GtkCellRendererPixbufClass *class)
*/
g_object_class_install_property (object_class,
PROP_ICON_NAME,
- g_param_spec_string ("icon-name",
- P_("Icon Name"),
- P_("The name of the icon from the icon theme"),
+ g_param_spec_string ("icon-name", NULL, NULL,
NULL,
GTK_PARAM_READWRITE));
@@ -264,9 +252,7 @@ gtk_cell_renderer_pixbuf_class_init (GtkCellRendererPixbufClass *class)
*/
g_object_class_install_property (object_class,
PROP_GICON,
- g_param_spec_object ("gicon",
- P_("Icon"),
- P_("The GIcon being displayed"),
+ g_param_spec_object ("gicon", NULL, NULL,
G_TYPE_ICON,
GTK_PARAM_READWRITE));
}
diff --git a/gtk/gtkcellrendererprogress.c b/gtk/gtkcellrendererprogress.c
index 8139a3b058..a836abe093 100644
--- a/gtk/gtkcellrendererprogress.c
+++ b/gtk/gtkcellrendererprogress.c
@@ -617,9 +617,7 @@ gtk_cell_renderer_progress_class_init (GtkCellRendererProgressClass *klass)
**/
g_object_class_install_property (object_class,
PROP_VALUE,
- g_param_spec_int ("value",
- P_("Value"),
- P_("Value of the progress bar"),
+ g_param_spec_int ("value", NULL, NULL,
0, 100, 0,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -633,9 +631,7 @@ gtk_cell_renderer_progress_class_init (GtkCellRendererProgressClass *klass)
**/
g_object_class_install_property (object_class,
PROP_TEXT,
- g_param_spec_string ("text",
- P_("Text"),
- P_("Text on the progress bar"),
+ g_param_spec_string ("text", NULL, NULL,
NULL,
GTK_PARAM_READWRITE));
@@ -655,9 +651,7 @@ gtk_cell_renderer_progress_class_init (GtkCellRendererProgressClass *klass)
*/
g_object_class_install_property (object_class,
PROP_PULSE,
- g_param_spec_int ("pulse",
- P_("Pulse"),
- P_("Set this to positive values to indicate that some progress is made, but you don’t know how much."),
+ g_param_spec_int ("pulse", NULL, NULL,
-1, G_MAXINT, -1,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -670,9 +664,7 @@ gtk_cell_renderer_progress_class_init (GtkCellRendererProgressClass *klass)
*/
g_object_class_install_property (object_class,
PROP_TEXT_XALIGN,
- g_param_spec_float ("text-xalign",
- P_("Text x alignment"),
- P_("The horizontal text alignment, from 0 (left) to 1 (right). Reversed for RTL layouts."),
+ g_param_spec_float ("text-xalign", NULL, NULL,
0.0, 1.0, 0.5,
GTK_PARAM_READWRITE));
@@ -685,9 +677,7 @@ gtk_cell_renderer_progress_class_init (GtkCellRendererProgressClass *klass)
*/
g_object_class_install_property (object_class,
PROP_TEXT_YALIGN,
- g_param_spec_float ("text-yalign",
- P_("Text y alignment"),
- P_("The vertical text alignment, from 0 (top) to 1 (bottom)."),
+ g_param_spec_float ("text-yalign", NULL, NULL,
0.0, 1.0, 0.5,
GTK_PARAM_READWRITE));
@@ -697,9 +687,7 @@ gtk_cell_renderer_progress_class_init (GtkCellRendererProgressClass *klass)
g_object_class_install_property (object_class,
PROP_INVERTED,
- g_param_spec_boolean ("inverted",
- P_("Inverted"),
- P_("Invert the direction in which the progress bar grows"),
+ g_param_spec_boolean ("inverted", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
}
diff --git a/gtk/gtkcellrendererspin.c b/gtk/gtkcellrendererspin.c
index 5636abbd41..6b4cbeaefd 100644
--- a/gtk/gtkcellrendererspin.c
+++ b/gtk/gtkcellrendererspin.c
@@ -127,9 +127,7 @@ gtk_cell_renderer_spin_class_init (GtkCellRendererSpinClass *klass)
*/
g_object_class_install_property (object_class,
PROP_ADJUSTMENT,
- g_param_spec_object ("adjustment",
- P_("Adjustment"),
- P_("The adjustment that holds the value of the spin button"),
+ g_param_spec_object ("adjustment", NULL, NULL,
GTK_TYPE_ADJUSTMENT,
GTK_PARAM_READWRITE));
@@ -141,9 +139,7 @@ gtk_cell_renderer_spin_class_init (GtkCellRendererSpinClass *klass)
*/
g_object_class_install_property (object_class,
PROP_CLIMB_RATE,
- g_param_spec_double ("climb-rate",
- P_("Climb rate"),
- P_("The acceleration rate when you hold down a button"),
+ g_param_spec_double ("climb-rate", NULL, NULL,
0.0, G_MAXDOUBLE, 0.0,
GTK_PARAM_READWRITE));
/**
@@ -153,9 +149,7 @@ gtk_cell_renderer_spin_class_init (GtkCellRendererSpinClass *klass)
*/
g_object_class_install_property (object_class,
PROP_DIGITS,
- g_param_spec_uint ("digits",
- P_("Digits"),
- P_("The number of decimal places to display"),
+ g_param_spec_uint ("digits", NULL, NULL,
0, 20, 0,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
}
diff --git a/gtk/gtkcellrendererspinner.c b/gtk/gtkcellrendererspinner.c
index a92488919f..52559f83a0 100644
--- a/gtk/gtkcellrendererspinner.c
+++ b/gtk/gtkcellrendererspinner.c
@@ -177,9 +177,7 @@ gtk_cell_renderer_spinner_class_init (GtkCellRendererSpinnerClass *klass)
*/
g_object_class_install_property (object_class,
PROP_ACTIVE,
- g_param_spec_boolean ("active",
- P_("Active"),
- P_("Whether the spinner is active (ie. shown) in the cell"),
+ g_param_spec_boolean ("active", NULL, NULL,
FALSE,
G_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -194,9 +192,7 @@ gtk_cell_renderer_spinner_class_init (GtkCellRendererSpinnerClass *klass)
*/
g_object_class_install_property (object_class,
PROP_PULSE,
- g_param_spec_uint ("pulse",
- P_("Pulse"),
- P_("Pulse of the spinner"),
+ g_param_spec_uint ("pulse", NULL, NULL,
0, G_MAXUINT, 0,
G_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -207,9 +203,7 @@ gtk_cell_renderer_spinner_class_init (GtkCellRendererSpinnerClass *klass)
*/
g_object_class_install_property (object_class,
PROP_SIZE,
- g_param_spec_enum ("size",
- P_("Size"),
- P_("The GtkIconSize value that specifies the size of the rendered spinner"),
+ g_param_spec_enum ("size", NULL, NULL,
GTK_TYPE_ICON_SIZE, GTK_ICON_SIZE_INHERIT,
G_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
diff --git a/gtk/gtkcellrenderertext.c b/gtk/gtkcellrenderertext.c
index a7f347d72d..2b673e963e 100644
--- a/gtk/gtkcellrenderertext.c
+++ b/gtk/gtkcellrenderertext.c
@@ -249,37 +249,27 @@ gtk_cell_renderer_text_class_init (GtkCellRendererTextClass *class)
cell_class->get_aligned_area = gtk_cell_renderer_text_get_aligned_area;
text_cell_renderer_props[PROP_TEXT] =
- g_param_spec_string ("text",
- P_("Text"),
- P_("Text to render"),
+ g_param_spec_string ("text", NULL, NULL,
NULL,
GTK_PARAM_READWRITE);
text_cell_renderer_props[PROP_MARKUP] =
- g_param_spec_string ("markup",
- P_("Markup"),
- P_("Marked up text to render"),
+ g_param_spec_string ("markup", NULL, NULL,
NULL,
GTK_PARAM_WRITABLE);
text_cell_renderer_props[PROP_ATTRIBUTES] =
- g_param_spec_boxed ("attributes",
- P_("Attributes"),
- P_("A list of style attributes to apply to the text of the renderer"),
+ g_param_spec_boxed ("attributes", NULL, NULL,
PANGO_TYPE_ATTR_LIST,
GTK_PARAM_READWRITE);
text_cell_renderer_props[PROP_SINGLE_PARAGRAPH_MODE] =
- g_param_spec_boolean ("single-paragraph-mode",
- P_("Single Paragraph Mode"),
- P_("Whether to keep all text in a single paragraph"),
+ g_param_spec_boolean ("single-paragraph-mode", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
text_cell_renderer_props[PROP_BACKGROUND] =
- g_param_spec_string ("background",
- P_("Background color name"),
- P_("Background color as a string"),
+ g_param_spec_string ("background", NULL, NULL,
NULL,
GTK_PARAM_WRITABLE);
@@ -289,15 +279,11 @@ gtk_cell_renderer_text_class_init (GtkCellRendererTextClass *class)
* Background color as a `GdkRGBA`
*/
text_cell_renderer_props[PROP_BACKGROUND_RGBA] =
- g_param_spec_boxed ("background-rgba",
- P_("Background color as RGBA"),
- P_("Background color as a GdkRGBA"),
+ g_param_spec_boxed ("background-rgba", NULL, NULL,
GDK_TYPE_RGBA,
GTK_PARAM_READWRITE);
text_cell_renderer_props[PROP_FOREGROUND] =
- g_param_spec_string ("foreground",
- P_("Foreground color name"),
- P_("Foreground color as a string"),
+ g_param_spec_string ("foreground", NULL, NULL,
NULL,
GTK_PARAM_WRITABLE);
@@ -307,127 +293,93 @@ gtk_cell_renderer_text_class_init (GtkCellRendererTextClass *class)
* Foreground color as a `GdkRGBA`
*/
text_cell_renderer_props[PROP_FOREGROUND_RGBA] =
- g_param_spec_boxed ("foreground-rgba",
- P_("Foreground color as RGBA"),
- P_("Foreground color as a GdkRGBA"),
+ g_param_spec_boxed ("foreground-rgba", NULL, NULL,
GDK_TYPE_RGBA,
GTK_PARAM_READWRITE);
text_cell_renderer_props[PROP_EDITABLE] =
- g_param_spec_boolean ("editable",
- P_("Editable"),
- P_("Whether the text can be modified by the user"),
+ g_param_spec_boolean ("editable", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE);
text_cell_renderer_props[PROP_FONT] =
- g_param_spec_string ("font",
- P_("Font"),
- P_("Font description as a string, e.g. “Sans Italic 12”"),
+ g_param_spec_string ("font", NULL, NULL,
NULL,
GTK_PARAM_READWRITE);
text_cell_renderer_props[PROP_FONT_DESC] =
- g_param_spec_boxed ("font-desc",
- P_("Font"),
- P_("Font description as a PangoFontDescription struct"),
+ g_param_spec_boxed ("font-desc", NULL, NULL,
PANGO_TYPE_FONT_DESCRIPTION,
GTK_PARAM_READWRITE);
text_cell_renderer_props[PROP_FAMILY] =
- g_param_spec_string ("family",
- P_("Font family"),
- P_("Name of the font family, e.g. Sans, Helvetica, Times, Monospace"),
+ g_param_spec_string ("family", NULL, NULL,
NULL,
GTK_PARAM_READWRITE);
text_cell_renderer_props[PROP_STYLE] =
- g_param_spec_enum ("style",
- P_("Font style"),
- P_("Font style"),
+ g_param_spec_enum ("style", NULL, NULL,
PANGO_TYPE_STYLE,
PANGO_STYLE_NORMAL,
GTK_PARAM_READWRITE);
text_cell_renderer_props[PROP_VARIANT] =
- g_param_spec_enum ("variant",
- P_("Font variant"),
- P_("Font variant"),
+ g_param_spec_enum ("variant", NULL, NULL,
PANGO_TYPE_VARIANT,
PANGO_VARIANT_NORMAL,
GTK_PARAM_READWRITE);
text_cell_renderer_props[PROP_WEIGHT] =
- g_param_spec_int ("weight",
- P_("Font weight"),
- P_("Font weight"),
+ g_param_spec_int ("weight", NULL, NULL,
0, G_MAXINT,
PANGO_WEIGHT_NORMAL,
GTK_PARAM_READWRITE);
text_cell_renderer_props[PROP_STRETCH] =
- g_param_spec_enum ("stretch",
- P_("Font stretch"),
- P_("Font stretch"),
+ g_param_spec_enum ("stretch", NULL, NULL,
PANGO_TYPE_STRETCH,
PANGO_STRETCH_NORMAL,
GTK_PARAM_READWRITE);
text_cell_renderer_props[PROP_SIZE] =
- g_param_spec_int ("size",
- P_("Font size"),
- P_("Font size"),
+ g_param_spec_int ("size", NULL, NULL,
0, G_MAXINT,
0,
GTK_PARAM_READWRITE);
text_cell_renderer_props[PROP_SIZE_POINTS] =
- g_param_spec_double ("size-points",
- P_("Font points"),
- P_("Font size in points"),
+ g_param_spec_double ("size-points", NULL, NULL,
0.0, G_MAXDOUBLE,
0.0,
GTK_PARAM_READWRITE);
text_cell_renderer_props[PROP_SCALE] =
- g_param_spec_double ("scale",
- P_("Font scale"),
- P_("Font scaling factor"),
+ g_param_spec_double ("scale", NULL, NULL,
0.0, G_MAXDOUBLE,
1.0,
GTK_PARAM_READWRITE);
text_cell_renderer_props[PROP_RISE] =
- g_param_spec_int ("rise",
- P_("Rise"),
- P_("Offset of text above the baseline (below the baseline if rise is negative)"),
+ g_param_spec_int ("rise", NULL, NULL,
-G_MAXINT, G_MAXINT,
0,
GTK_PARAM_READWRITE);
text_cell_renderer_props[PROP_STRIKETHROUGH] =
- g_param_spec_boolean ("strikethrough",
- P_("Strikethrough"),
- P_("Whether to strike through the text"),
+ g_param_spec_boolean ("strikethrough", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE);
text_cell_renderer_props[PROP_UNDERLINE] =
- g_param_spec_enum ("underline",
- P_("Underline"),
- P_("Style of underline for this text"),
+ g_param_spec_enum ("underline", NULL, NULL,
PANGO_TYPE_UNDERLINE,
PANGO_UNDERLINE_NONE,
GTK_PARAM_READWRITE);
text_cell_renderer_props[PROP_LANGUAGE] =
- g_param_spec_string ("language",
- P_("Language"),
- P_("The language this text is in, as an ISO code. "
- "Pango can use this as a hint when rendering the text. "
- "If you don’t understand this parameter, you probably don’t need it"),
+ g_param_spec_string ("language", NULL, NULL,
NULL,
GTK_PARAM_READWRITE);
@@ -440,11 +392,7 @@ gtk_cell_renderer_text_class_init (GtkCellRendererTextClass *class)
* for another way of making the text fit into a given width.
*/
text_cell_renderer_props[PROP_ELLIPSIZE] =
- g_param_spec_enum ("ellipsize",
- P_("Ellipsize"),
- P_("The preferred place to ellipsize the string, "
- "if the cell renderer does not have enough room "
- "to display the entire string"),
+ g_param_spec_enum ("ellipsize", NULL, NULL,
PANGO_TYPE_ELLIPSIZE_MODE,
PANGO_ELLIPSIZE_NONE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -457,9 +405,7 @@ gtk_cell_renderer_text_class_init (GtkCellRendererTextClass *class)
* request either 3 characters or the property value, whichever is greater.
**/
text_cell_renderer_props[PROP_WIDTH_CHARS] =
- g_param_spec_int ("width-chars",
- P_("Width In Characters"),
- P_("The desired width of the label, in characters"),
+ g_param_spec_int ("width-chars", NULL, NULL,
-1, G_MAXINT,
-1,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -477,9 +423,7 @@ gtk_cell_renderer_text_class_init (GtkCellRendererTextClass *class)
* have received their natural width.
**/
text_cell_renderer_props[PROP_MAX_WIDTH_CHARS] =
- g_param_spec_int ("max-width-chars",
- P_("Maximum Width In Characters"),
- P_("The maximum width of the cell, in characters"),
+ g_param_spec_int ("max-width-chars", NULL, NULL,
-1, G_MAXINT,
-1,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -492,11 +436,7 @@ gtk_cell_renderer_text_class_init (GtkCellRendererTextClass *class)
* This property has no effect unless the wrap-width property is set.
*/
text_cell_renderer_props[PROP_WRAP_MODE] =
- g_param_spec_enum ("wrap-mode",
- P_("Wrap mode"),
- P_("How to break the string into multiple lines, "
- "if the cell renderer does not have enough room "
- "to display the entire string"),
+ g_param_spec_enum ("wrap-mode", NULL, NULL,
PANGO_TYPE_WRAP_MODE,
PANGO_WRAP_CHAR,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -509,9 +449,7 @@ gtk_cell_renderer_text_class_init (GtkCellRendererTextClass *class)
* Setting wrap-width to -1 turns wrapping off.
*/
text_cell_renderer_props[PROP_WRAP_WIDTH] =
- g_param_spec_int ("wrap-width",
- P_("Wrap width"),
- P_("The width at which the text is wrapped"),
+ g_param_spec_int ("wrap-width", NULL, NULL,
-1, G_MAXINT,
-1,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -526,9 +464,7 @@ gtk_cell_renderer_text_class_init (GtkCellRendererTextClass *class)
* on the other hand, sets the horizontal alignment of the whole text.
*/
text_cell_renderer_props[PROP_ALIGN] =
- g_param_spec_enum ("alignment",
- P_("Alignment"),
- P_("How to align the lines"),
+ g_param_spec_enum ("alignment", NULL, NULL,
PANGO_TYPE_ALIGNMENT,
PANGO_ALIGN_LEFT,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -540,9 +476,7 @@ gtk_cell_renderer_text_class_init (GtkCellRendererTextClass *class)
* `GtkCellRendererText:editable` is %TRUE and the cell is empty.
*/
text_cell_renderer_props[PROP_PLACEHOLDER_TEXT] =
- g_param_spec_string ("placeholder-text",
- P_("Placeholder text"),
- P_("Text rendered when an editable cell is empty"),
+ g_param_spec_string ("placeholder-text", NULL, NULL,
NULL,
GTK_PARAM_READWRITE);
@@ -550,69 +484,37 @@ gtk_cell_renderer_text_class_init (GtkCellRendererTextClass *class)
#define ADD_SET_PROP(propname, propval, nick, blurb) text_cell_renderer_props[propval] = g_param_spec_boolean (propname, nick, blurb, FALSE, GTK_PARAM_READWRITE)
- ADD_SET_PROP ("background-set", PROP_BACKGROUND_SET,
- P_("Background set"),
- P_("Whether this tag affects the background color"));
+ ADD_SET_PROP ("background-set", PROP_BACKGROUND_SET, NULL, NULL);
- ADD_SET_PROP ("foreground-set", PROP_FOREGROUND_SET,
- P_("Foreground set"),
- P_("Whether this tag affects the foreground color"));
+ ADD_SET_PROP ("foreground-set", PROP_FOREGROUND_SET, NULL, NULL);
- ADD_SET_PROP ("editable-set", PROP_EDITABLE_SET,
- P_("Editability set"),
- P_("Whether this tag affects text editability"));
+ ADD_SET_PROP ("editable-set", PROP_EDITABLE_SET, NULL, NULL);
- ADD_SET_PROP ("family-set", PROP_FAMILY_SET,
- P_("Font family set"),
- P_("Whether this tag affects the font family"));
+ ADD_SET_PROP ("family-set", PROP_FAMILY_SET, NULL, NULL);
- ADD_SET_PROP ("style-set", PROP_STYLE_SET,
- P_("Font style set"),
- P_("Whether this tag affects the font style"));
+ ADD_SET_PROP ("style-set", PROP_STYLE_SET, NULL, NULL);
- ADD_SET_PROP ("variant-set", PROP_VARIANT_SET,
- P_("Font variant set"),
- P_("Whether this tag affects the font variant"));
+ ADD_SET_PROP ("variant-set", PROP_VARIANT_SET, NULL, NULL);
- ADD_SET_PROP ("weight-set", PROP_WEIGHT_SET,
- P_("Font weight set"),
- P_("Whether this tag affects the font weight"));
+ ADD_SET_PROP ("weight-set", PROP_WEIGHT_SET, NULL, NULL);
- ADD_SET_PROP ("stretch-set", PROP_STRETCH_SET,
- P_("Font stretch set"),
- P_("Whether this tag affects the font stretch"));
+ ADD_SET_PROP ("stretch-set", PROP_STRETCH_SET, NULL, NULL);
- ADD_SET_PROP ("size-set", PROP_SIZE_SET,
- P_("Font size set"),
- P_("Whether this tag affects the font size"));
+ ADD_SET_PROP ("size-set", PROP_SIZE_SET, NULL, NULL);
- ADD_SET_PROP ("scale-set", PROP_SCALE_SET,
- P_("Font scale set"),
- P_("Whether this tag scales the font size by a factor"));
+ ADD_SET_PROP ("scale-set", PROP_SCALE_SET, NULL, NULL);
- ADD_SET_PROP ("rise-set", PROP_RISE_SET,
- P_("Rise set"),
- P_("Whether this tag affects the rise"));
+ ADD_SET_PROP ("rise-set", PROP_RISE_SET, NULL, NULL);
- ADD_SET_PROP ("strikethrough-set", PROP_STRIKETHROUGH_SET,
- P_("Strikethrough set"),
- P_("Whether this tag affects strikethrough"));
+ ADD_SET_PROP ("strikethrough-set", PROP_STRIKETHROUGH_SET, NULL, NULL);
- ADD_SET_PROP ("underline-set", PROP_UNDERLINE_SET,
- P_("Underline set"),
- P_("Whether this tag affects underlining"));
+ ADD_SET_PROP ("underline-set", PROP_UNDERLINE_SET, NULL, NULL);
- ADD_SET_PROP ("language-set", PROP_LANGUAGE_SET,
- P_("Language set"),
- P_("Whether this tag affects the language the text is rendered as"));
+ ADD_SET_PROP ("language-set", PROP_LANGUAGE_SET, NULL, NULL);
- ADD_SET_PROP ("ellipsize-set", PROP_ELLIPSIZE_SET,
- P_("Ellipsize set"),
- P_("Whether this tag affects the ellipsize mode"));
+ ADD_SET_PROP ("ellipsize-set", PROP_ELLIPSIZE_SET, NULL, NULL);
- ADD_SET_PROP ("align-set", PROP_ALIGN_SET,
- P_("Align set"),
- P_("Whether this tag affects the alignment mode"));
+ ADD_SET_PROP ("align-set", PROP_ALIGN_SET, NULL, NULL);
g_object_class_install_properties (object_class, LAST_PROP, text_cell_renderer_props);
diff --git a/gtk/gtkcellrenderertoggle.c b/gtk/gtkcellrenderertoggle.c
index 3f2f7e1556..2a4c9669a9 100644
--- a/gtk/gtkcellrenderertoggle.c
+++ b/gtk/gtkcellrenderertoggle.c
@@ -192,33 +192,25 @@ gtk_cell_renderer_toggle_class_init (GtkCellRendererToggleClass *class)
g_object_class_install_property (object_class,
PROP_ACTIVE,
- g_param_spec_boolean ("active",
- P_("Toggle state"),
- P_("The toggle state of the button"),
+ g_param_spec_boolean ("active", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
g_object_class_install_property (object_class,
PROP_INCONSISTENT,
- g_param_spec_boolean ("inconsistent",
- P_("Inconsistent state"),
- P_("The inconsistent state of the button"),
+ g_param_spec_boolean ("inconsistent", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
g_object_class_install_property (object_class,
PROP_ACTIVATABLE,
- g_param_spec_boolean ("activatable",
- P_("Activatable"),
- P_("The toggle button can be activated"),
+ g_param_spec_boolean ("activatable", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
g_object_class_install_property (object_class,
PROP_RADIO,
- g_param_spec_boolean ("radio",
- P_("Radio state"),
- P_("Draw the toggle button as a radio button"),
+ g_param_spec_boolean ("radio", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
diff --git a/gtk/gtkcellview.c b/gtk/gtkcellview.c
index 78866addda..60860c3293 100644
--- a/gtk/gtkcellview.c
+++ b/gtk/gtkcellview.c
@@ -195,9 +195,7 @@ gtk_cell_view_class_init (GtkCellViewClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_MODEL,
- g_param_spec_object ("model",
- P_("CellView model"),
- P_("The model for cell view"),
+ g_param_spec_object ("model", NULL, NULL,
GTK_TYPE_TREE_MODEL,
GTK_PARAM_READWRITE));
@@ -214,9 +212,7 @@ gtk_cell_view_class_init (GtkCellViewClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_CELL_AREA,
- g_param_spec_object ("cell-area",
- P_("Cell Area"),
- P_("The GtkCellArea used to layout cells"),
+ g_param_spec_object ("cell-area", NULL, NULL,
GTK_TYPE_CELL_AREA,
GTK_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
@@ -238,10 +234,7 @@ gtk_cell_view_class_init (GtkCellViewClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_CELL_AREA_CONTEXT,
- g_param_spec_object ("cell-area-context",
- P_("Cell Area Context"),
- P_("The GtkCellAreaContext used to "
- "compute the geometry of the cell view"),
+ g_param_spec_object ("cell-area-context", NULL, NULL,
GTK_TYPE_CELL_AREA_CONTEXT,
GTK_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
@@ -256,10 +249,7 @@ gtk_cell_view_class_init (GtkCellViewClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_DRAW_SENSITIVE,
- g_param_spec_boolean ("draw-sensitive",
- P_("Draw Sensitive"),
- P_("Whether to force cells to be drawn in a "
- "sensitive state"),
+ g_param_spec_boolean ("draw-sensitive", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -275,10 +265,7 @@ gtk_cell_view_class_init (GtkCellViewClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_FIT_MODEL,
- g_param_spec_boolean ("fit-model",
- P_("Fit Model"),
- P_("Whether to request enough space for "
- "every row in the model"),
+ g_param_spec_boolean ("fit-model", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
diff --git a/gtk/gtkcenterbox.c b/gtk/gtkcenterbox.c
index 8319acc667..6b7046f356 100644
--- a/gtk/gtkcenterbox.c
+++ b/gtk/gtkcenterbox.c
@@ -208,9 +208,7 @@ gtk_center_box_class_init (GtkCenterBoxClass *klass)
* The position of the baseline aligned widget if extra space is available.
*/
g_object_class_install_property (object_class, PROP_BASELINE_POSITION,
- g_param_spec_enum ("baseline-position",
- P_("Baseline position"),
- P_("The position of the baseline aligned widgets if extra space is available"),
+ g_param_spec_enum ("baseline-position", NULL, NULL,
GTK_TYPE_BASELINE_POSITION,
GTK_BASELINE_POSITION_CENTER,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
diff --git a/gtk/gtkcheckbutton.c b/gtk/gtkcheckbutton.c
index d304fae93c..c97fa815e1 100644
--- a/gtk/gtkcheckbutton.c
+++ b/gtk/gtkcheckbutton.c
@@ -578,9 +578,7 @@ gtk_check_button_class_init (GtkCheckButtonClass *class)
* the check button and the indicator CSS node.
*/
props[PROP_ACTIVE] =
- g_param_spec_boolean ("active",
- P_("Active"),
- P_("If the toggle button should be pressed in"),
+ g_param_spec_boolean ("active", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -590,9 +588,7 @@ gtk_check_button_class_init (GtkCheckButtonClass *class)
* The check button whose group this widget belongs to.
*/
props[PROP_GROUP] =
- g_param_spec_object ("group",
- P_("Group"),
- P_("The check button whose group this widget belongs to."),
+ g_param_spec_object ("group", NULL, NULL,
GTK_TYPE_CHECK_BUTTON,
GTK_PARAM_WRITABLE);
@@ -602,9 +598,7 @@ gtk_check_button_class_init (GtkCheckButtonClass *class)
* Text of the label inside the check button, if it contains a label widget.
*/
props[PROP_LABEL] =
- g_param_spec_string ("label",
- P_("Label"),
- P_("Text of the label widget inside the button, if the button contains a label widget"),
+ g_param_spec_string ("label", NULL, NULL,
NULL,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -617,9 +611,7 @@ gtk_check_button_class_init (GtkCheckButtonClass *class)
* not the semantics of the button.
*/
props[PROP_INCONSISTENT] =
- g_param_spec_boolean ("inconsistent",
- P_("Inconsistent"),
- P_("If the check button is in an “in between” state"),
+ g_param_spec_boolean ("inconsistent", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -630,9 +622,7 @@ gtk_check_button_class_init (GtkCheckButtonClass *class)
* character is to be used as mnemonic.
*/
props[PROP_USE_UNDERLINE] =
- g_param_spec_boolean ("use-underline",
- P_("Use underline"),
- P_("If set, an underline in the text indicates the next character should be used for the mnemonic accelerator key"),
+ g_param_spec_boolean ("use-underline", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -644,9 +634,7 @@ gtk_check_button_class_init (GtkCheckButtonClass *class)
* Since: 4.8
*/
props[PROP_CHILD] =
- g_param_spec_object ("child",
- P_("Child"),
- P_("The child widget"),
+ g_param_spec_object ("child", NULL, NULL,
GTK_TYPE_WIDGET,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtkcolorbutton.c b/gtk/gtkcolorbutton.c
index 71289e3433..bb00ab50bb 100644
--- a/gtk/gtkcolorbutton.c
+++ b/gtk/gtkcolorbutton.c
@@ -175,9 +175,7 @@ gtk_color_button_class_init (GtkColorButtonClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_TITLE,
- g_param_spec_string ("title",
- P_("Title"),
- P_("The title of the color selection dialog"),
+ g_param_spec_string ("title", NULL, NULL,
_("Pick a Color"),
GTK_PARAM_READWRITE));
@@ -236,8 +234,7 @@ gtk_color_button_class_init (GtkColorButtonClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_SHOW_EDITOR,
- g_param_spec_boolean ("show-editor", P_("Show Editor"),
- P_("Whether to show the color editor right away"),
+ g_param_spec_boolean ("show-editor", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -248,8 +245,7 @@ gtk_color_button_class_init (GtkColorButtonClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_MODAL,
- g_param_spec_boolean ("modal", P_("Modal"),
- P_("Whether the dialog is modal"),
+ g_param_spec_boolean ("modal", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
diff --git a/gtk/gtkcolorchooser.c b/gtk/gtkcolorchooser.c
index f8b9c9c774..b11a673b41 100644
--- a/gtk/gtkcolorchooser.c
+++ b/gtk/gtkcolorchooser.c
@@ -61,9 +61,7 @@ gtk_color_chooser_default_init (GtkColorChooserInterface *iface)
* programmatically.
*/
g_object_interface_install_property (iface,
- g_param_spec_boxed ("rgba",
- P_("Color"),
- P_("Current color, as a GdkRGBA"),
+ g_param_spec_boxed ("rgba", NULL, NULL,
GDK_TYPE_RGBA,
GTK_PARAM_READWRITE));
@@ -80,9 +78,7 @@ gtk_color_chooser_default_init (GtkColorChooserInterface *iface)
* over a non-uniform background (like a checkerboard pattern).
*/
g_object_interface_install_property (iface,
- g_param_spec_boolean ("use-alpha",
- P_("Use alpha"),
- P_("Whether alpha should be shown"),
+ g_param_spec_boolean ("use-alpha", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
diff --git a/gtk/gtkcolorchooserdialog.c b/gtk/gtkcolorchooserdialog.c
index 66a9df24a5..3ea3fdba79 100644
--- a/gtk/gtkcolorchooserdialog.c
+++ b/gtk/gtkcolorchooserdialog.c
@@ -223,7 +223,7 @@ gtk_color_chooser_dialog_class_init (GtkColorChooserDialogClass *class)
g_object_class_override_property (object_class, PROP_RGBA, "rgba");
g_object_class_override_property (object_class, PROP_USE_ALPHA, "use-alpha");
g_object_class_install_property (object_class, PROP_SHOW_EDITOR,
- g_param_spec_boolean ("show-editor", P_("Show editor"), P_("Show editor"),
+ g_param_spec_boolean ("show-editor", NULL, NULL,
FALSE, GTK_PARAM_READWRITE));
/* Bind class to template
diff --git a/gtk/gtkcolorchooserwidget.c b/gtk/gtkcolorchooserwidget.c
index afc2a77411..3f1c3fee47 100644
--- a/gtk/gtkcolorchooserwidget.c
+++ b/gtk/gtkcolorchooserwidget.c
@@ -718,7 +718,7 @@ gtk_color_chooser_widget_class_init (GtkColorChooserWidgetClass *class)
* It can be set to switch the color chooser into single-color editing mode.
*/
g_object_class_install_property (object_class, PROP_SHOW_EDITOR,
- g_param_spec_boolean ("show-editor", P_("Show editor"), P_("Show editor"),
+ g_param_spec_boolean ("show-editor", NULL, NULL,
FALSE, GTK_PARAM_READWRITE));
gtk_widget_class_set_css_name (widget_class, I_("colorchooser"));
diff --git a/gtk/gtkcolorplane.c b/gtk/gtkcolorplane.c
index a6fa75c795..93b9ff0594 100644
--- a/gtk/gtkcolorplane.c
+++ b/gtk/gtkcolorplane.c
@@ -487,27 +487,21 @@ gtk_color_plane_class_init (GtkColorPlaneClass *class)
g_object_class_install_property (object_class,
PROP_H_ADJUSTMENT,
- g_param_spec_object ("h-adjustment",
- "Hue Adjustment",
- "Hue Adjustment",
+ g_param_spec_object ("h-adjustment", NULL, NULL,
GTK_TYPE_ADJUSTMENT,
GTK_PARAM_WRITABLE |
G_PARAM_CONSTRUCT_ONLY));
g_object_class_install_property (object_class,
PROP_S_ADJUSTMENT,
- g_param_spec_object ("s-adjustment",
- "Saturation Adjustment",
- "Saturation Adjustment",
+ g_param_spec_object ("s-adjustment", NULL, NULL,
GTK_TYPE_ADJUSTMENT,
GTK_PARAM_WRITABLE |
G_PARAM_CONSTRUCT_ONLY));
g_object_class_install_property (object_class,
PROP_V_ADJUSTMENT,
- g_param_spec_object ("v-adjustment",
- "Value Adjustment",
- "Value Adjustment",
+ g_param_spec_object ("v-adjustment", NULL, NULL,
GTK_TYPE_ADJUSTMENT,
GTK_PARAM_WRITABLE |
G_PARAM_CONSTRUCT_ONLY));
diff --git a/gtk/gtkcolorscale.c b/gtk/gtkcolorscale.c
index 3341742744..824516aaef 100644
--- a/gtk/gtkcolorscale.c
+++ b/gtk/gtkcolorscale.c
@@ -283,7 +283,7 @@ gtk_color_scale_class_init (GtkColorScaleClass *class)
object_class->set_property = scale_set_property;
g_object_class_install_property (object_class, PROP_SCALE_TYPE,
- g_param_spec_int ("scale-type", P_("Scale type"), P_("Scale type"),
+ g_param_spec_int ("scale-type", NULL, NULL,
0, 1, 0,
GTK_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
}
diff --git a/gtk/gtkcolorswatch.c b/gtk/gtkcolorswatch.c
index 533ff7fa26..66b65946cc 100644
--- a/gtk/gtkcolorswatch.c
+++ b/gtk/gtkcolorswatch.c
@@ -509,19 +509,19 @@ gtk_color_swatch_class_init (GtkColorSwatchClass *class)
widget_class->state_flags_changed = swatch_state_flags_changed;
g_object_class_install_property (object_class, PROP_RGBA,
- g_param_spec_boxed ("rgba", P_("RGBA Color"), P_("Color as RGBA"),
+ g_param_spec_boxed ("rgba", NULL, NULL,
GDK_TYPE_RGBA, GTK_PARAM_READWRITE));
g_object_class_install_property (object_class, PROP_SELECTABLE,
- g_param_spec_boolean ("selectable", P_("Selectable"), P_("Whether the swatch is selectable"),
+ g_param_spec_boolean ("selectable", NULL, NULL,
TRUE, GTK_PARAM_READWRITE));
g_object_class_install_property (object_class, PROP_HAS_MENU,
- g_param_spec_boolean ("has-menu", P_("Has Menu"), P_("Whether the swatch should offer customization"),
+ g_param_spec_boolean ("has-menu", NULL, NULL,
TRUE, GTK_PARAM_READWRITE));
g_object_class_install_property (object_class, PROP_CAN_DROP,
- g_param_spec_boolean ("can-drop", P_("Can Drop"), P_("Whether the swatch should accept drops"),
+ g_param_spec_boolean ("can-drop", NULL, NULL,
FALSE, GTK_PARAM_READWRITE));
g_object_class_install_property (object_class, PROP_CAN_DRAG,
- g_param_spec_boolean ("can-drag", P_("Can Drag"), P_("Whether the swatch should allow drags"),
+ g_param_spec_boolean ("can-drag", NULL, NULL,
TRUE, GTK_PARAM_READWRITE));
/**
diff --git a/gtk/gtkcolumnview.c b/gtk/gtkcolumnview.c
index f475707155..d16a4373b0 100644
--- a/gtk/gtkcolumnview.c
+++ b/gtk/gtkcolumnview.c
@@ -678,9 +678,7 @@ gtk_column_view_class_init (GtkColumnViewClass *klass)
* The list of columns.
*/
properties[PROP_COLUMNS] =
- g_param_spec_object ("columns",
- P_("Columns"),
- P_("List of columns"),
+ g_param_spec_object ("columns", NULL, NULL,
G_TYPE_LIST_MODEL,
G_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -690,9 +688,7 @@ gtk_column_view_class_init (GtkColumnViewClass *klass)
* Model for the items displayed.
*/
properties[PROP_MODEL] =
- g_param_spec_object ("model",
- P_("Model"),
- P_("Model for the items displayed"),
+ g_param_spec_object ("model", NULL, NULL,
GTK_TYPE_SELECTION_MODEL,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -702,9 +698,7 @@ gtk_column_view_class_init (GtkColumnViewClass *klass)
* Show separators between rows.
*/
properties[PROP_SHOW_ROW_SEPARATORS] =
- g_param_spec_boolean ("show-row-separators",
- P_("Show row separators"),
- P_("Show separators between rows"),
+ g_param_spec_boolean ("show-row-separators", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -714,9 +708,7 @@ gtk_column_view_class_init (GtkColumnViewClass *klass)
* Show separators between columns.
*/
properties[PROP_SHOW_COLUMN_SEPARATORS] =
- g_param_spec_boolean ("show-column-separators",
- P_("Show column separators"),
- P_("Show separators between columns"),
+ g_param_spec_boolean ("show-column-separators", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -726,9 +718,7 @@ gtk_column_view_class_init (GtkColumnViewClass *klass)
* Sorter with the sorting choices of the user.
*/
properties[PROP_SORTER] =
- g_param_spec_object ("sorter",
- P_("Sorter"),
- P_("Sorter with sorting choices of the user"),
+ g_param_spec_object ("sorter", NULL, NULL,
GTK_TYPE_SORTER,
G_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -738,9 +728,7 @@ gtk_column_view_class_init (GtkColumnViewClass *klass)
* Activate rows on single click and select them on hover.
*/
properties[PROP_SINGLE_CLICK_ACTIVATE] =
- g_param_spec_boolean ("single-click-activate",
- P_("Single click activate"),
- P_("Activate rows on single click"),
+ g_param_spec_boolean ("single-click-activate", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -750,9 +738,7 @@ gtk_column_view_class_init (GtkColumnViewClass *klass)
* Whether columns are reorderable.
*/
properties[PROP_REORDERABLE] =
- g_param_spec_boolean ("reorderable",
- P_("Reorderable"),
- P_("Whether columns are reorderable"),
+ g_param_spec_boolean ("reorderable", NULL, NULL,
TRUE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -762,9 +748,7 @@ gtk_column_view_class_init (GtkColumnViewClass *klass)
* Allow rubberband selection.
*/
properties[PROP_ENABLE_RUBBERBAND] =
- g_param_spec_boolean ("enable-rubberband",
- P_("Enable rubberband selection"),
- P_("Allow selecting items by dragging with the mouse"),
+ g_param_spec_boolean ("enable-rubberband", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtkcolumnviewcolumn.c b/gtk/gtkcolumnviewcolumn.c
index 557b9debd4..2876e92b0b 100644
--- a/gtk/gtkcolumnviewcolumn.c
+++ b/gtk/gtkcolumnviewcolumn.c
@@ -237,9 +237,7 @@ gtk_column_view_column_class_init (GtkColumnViewColumnClass *klass)
* The `GtkColumnView` this column is a part of.
*/
properties[PROP_COLUMN_VIEW] =
- g_param_spec_object ("column-view",
- P_("Column view"),
- P_("Column view this column is a part of"),
+ g_param_spec_object ("column-view", NULL, NULL,
GTK_TYPE_COLUMN_VIEW,
G_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -249,9 +247,7 @@ gtk_column_view_column_class_init (GtkColumnViewColumnClass *klass)
* Factory for populating list items.
*/
properties[PROP_FACTORY] =
- g_param_spec_object ("factory",
- P_("Factory"),
- P_("Factory for populating list items"),
+ g_param_spec_object ("factory", NULL, NULL,
GTK_TYPE_LIST_ITEM_FACTORY,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -261,9 +257,7 @@ gtk_column_view_column_class_init (GtkColumnViewColumnClass *klass)
* Title displayed in the header.
*/
properties[PROP_TITLE] =
- g_param_spec_string ("title",
- P_("Title"),
- P_("Title displayed in the header"),
+ g_param_spec_string ("title", NULL, NULL,
NULL,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -273,9 +267,7 @@ gtk_column_view_column_class_init (GtkColumnViewColumnClass *klass)
* Sorter for sorting items according to this column.
*/
properties[PROP_SORTER] =
- g_param_spec_object ("sorter",
- P_("Sorter"),
- P_("Sorter for sorting items according to this column"),
+ g_param_spec_object ("sorter", NULL, NULL,
GTK_TYPE_SORTER,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -285,9 +277,7 @@ gtk_column_view_column_class_init (GtkColumnViewColumnClass *klass)
* Whether this column is visible.
*/
properties[PROP_VISIBLE] =
- g_param_spec_boolean ("visible",
- P_("Visible"),
- P_("Whether this column is visible"),
+ g_param_spec_boolean ("visible", NULL, NULL,
TRUE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -297,9 +287,7 @@ gtk_column_view_column_class_init (GtkColumnViewColumnClass *klass)
* Menu model used to create the context menu for the column header.
*/
properties[PROP_HEADER_MENU] =
- g_param_spec_object ("header-menu",
- P_("Header menu"),
- P_("Menu to use on the title of this column"),
+ g_param_spec_object ("header-menu", NULL, NULL,
G_TYPE_MENU_MODEL,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -309,9 +297,7 @@ gtk_column_view_column_class_init (GtkColumnViewColumnClass *klass)
* Whether this column is resizable.
*/
properties[PROP_RESIZABLE] =
- g_param_spec_boolean ("resizable",
- P_("Resizable"),
- P_("Whether this column is resizable"),
+ g_param_spec_boolean ("resizable", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -321,9 +307,7 @@ gtk_column_view_column_class_init (GtkColumnViewColumnClass *klass)
* Column gets share of extra width allocated to the view.
*/
properties[PROP_EXPAND] =
- g_param_spec_boolean ("expand",
- P_("Expand"),
- P_("column gets share of extra width"),
+ g_param_spec_boolean ("expand", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -334,9 +318,7 @@ gtk_column_view_column_class_init (GtkColumnViewColumnClass *klass)
* regardless of the size of its content.
*/
properties[PROP_FIXED_WIDTH] =
- g_param_spec_int ("fixed-width",
- P_("Fixed width"),
- P_("Fixed width of this column"),
+ g_param_spec_int ("fixed-width", NULL, NULL,
-1, G_MAXINT, -1,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c
index c29896319e..60209822e1 100644
--- a/gtk/gtkcombobox.c
+++ b/gtk/gtkcombobox.c
@@ -664,9 +664,7 @@ gtk_combo_box_class_init (GtkComboBoxClass *klass)
*/
g_object_class_install_property (object_class,
PROP_MODEL,
- g_param_spec_object ("model",
- P_("ComboBox model"),
- P_("The model for the combo box"),
+ g_param_spec_object ("model", NULL, NULL,
GTK_TYPE_TREE_MODEL,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -683,9 +681,7 @@ gtk_combo_box_class_init (GtkComboBoxClass *klass)
*/
g_object_class_install_property (object_class,
PROP_ACTIVE,
- g_param_spec_int ("active",
- P_("Active item"),
- P_("The item which is currently active"),
+ g_param_spec_int ("active", NULL, NULL,
-1,
G_MAXINT,
-1,
@@ -698,9 +694,7 @@ gtk_combo_box_class_init (GtkComboBoxClass *klass)
*/
g_object_class_install_property (object_class,
PROP_HAS_FRAME,
- g_param_spec_boolean ("has-frame",
- P_("Has Frame"),
- P_("Whether the combo box draws a frame around the child"),
+ g_param_spec_boolean ("has-frame", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -714,9 +708,7 @@ gtk_combo_box_class_init (GtkComboBoxClass *klass)
*/
g_object_class_install_property (object_class,
PROP_POPUP_SHOWN,
- g_param_spec_boolean ("popup-shown",
- P_("Popup shown"),
- P_("Whether the combo’s dropdown is shown"),
+ g_param_spec_boolean ("popup-shown", NULL, NULL,
FALSE,
GTK_PARAM_READABLE));
@@ -729,9 +721,7 @@ gtk_combo_box_class_init (GtkComboBoxClass *klass)
*/
g_object_class_install_property (object_class,
PROP_BUTTON_SENSITIVITY,
- g_param_spec_enum ("button-sensitivity",
- P_("Button Sensitivity"),
- P_("Whether the dropdown button is sensitive when the model is empty"),
+ g_param_spec_enum ("button-sensitivity", NULL, NULL,
GTK_TYPE_SENSITIVITY_TYPE,
GTK_SENSITIVITY_AUTO,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -743,9 +733,7 @@ gtk_combo_box_class_init (GtkComboBoxClass *klass)
*/
g_object_class_install_property (object_class,
PROP_HAS_ENTRY,
- g_param_spec_boolean ("has-entry",
- P_("Has Entry"),
- P_("Whether combo box has an entry"),
+ g_param_spec_boolean ("has-entry", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_CONSTRUCT_ONLY));
@@ -759,11 +747,7 @@ gtk_combo_box_class_init (GtkComboBoxClass *klass)
*/
g_object_class_install_property (object_class,
PROP_ENTRY_TEXT_COLUMN,
- g_param_spec_int ("entry-text-column",
- P_("Entry Text Column"),
- P_("The column in the combo box’s model to associate "
- "with strings from the entry if the combo was "
- "created with GtkComboBox:has-entry = %TRUE"),
+ g_param_spec_int ("entry-text-column", NULL, NULL,
-1, G_MAXINT, -1,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -775,10 +759,7 @@ gtk_combo_box_class_init (GtkComboBoxClass *klass)
*/
g_object_class_install_property (object_class,
PROP_ID_COLUMN,
- g_param_spec_int ("id-column",
- P_("ID Column"),
- P_("The column in the combo box’s model that provides "
- "string IDs for the values in the model"),
+ g_param_spec_int ("id-column", NULL, NULL,
-1, G_MAXINT, -1,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -789,10 +770,7 @@ gtk_combo_box_class_init (GtkComboBoxClass *klass)
*/
g_object_class_install_property (object_class,
PROP_ACTIVE_ID,
- g_param_spec_string ("active-id",
- P_("Active id"),
- P_("The value of the id column "
- "for the active row"),
+ g_param_spec_string ("active-id", NULL, NULL,
NULL,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -804,11 +782,7 @@ gtk_combo_box_class_init (GtkComboBoxClass *klass)
*/
g_object_class_install_property (object_class,
PROP_POPUP_FIXED_WIDTH,
- g_param_spec_boolean ("popup-fixed-width",
- P_("Popup Fixed Width"),
- P_("Whether the popup’s width should be a "
- "fixed width matching the allocated width "
- "of the combo box"),
+ g_param_spec_boolean ("popup-fixed-width", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -819,9 +793,7 @@ gtk_combo_box_class_init (GtkComboBoxClass *klass)
*/
g_object_class_install_property (object_class,
PROP_CHILD,
- g_param_spec_object ("child",
- P_("Child"),
- P_("The child_widget"),
+ g_param_spec_object ("child", NULL, NULL,
GTK_TYPE_WIDGET,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
diff --git a/gtk/gtkconstraint.c b/gtk/gtkconstraint.c
index b0fd0cceec..48ba6f146a 100644
--- a/gtk/gtkconstraint.c
+++ b/gtk/gtkconstraint.c
@@ -189,9 +189,7 @@ gtk_constraint_class_init (GtkConstraintClass *klass)
*
*/
obj_props[PROP_TARGET] =
- g_param_spec_object ("target",
- P_("Target"),
- P_("The target of the constraint"),
+ g_param_spec_object ("target", NULL, NULL,
GTK_TYPE_CONSTRAINT_TARGET,
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS |
@@ -203,9 +201,7 @@ gtk_constraint_class_init (GtkConstraintClass *klass)
* The attribute of the [property@Gtk.Constraint:target] set by the constraint.
*/
obj_props[PROP_TARGET_ATTRIBUTE] =
- g_param_spec_enum ("target-attribute",
- P_("Target Attribute"),
- P_("The attribute of the target set by the constraint"),
+ g_param_spec_enum ("target-attribute", NULL, NULL,
GTK_TYPE_CONSTRAINT_ATTRIBUTE,
GTK_CONSTRAINT_ATTRIBUTE_NONE,
G_PARAM_READWRITE |
@@ -218,9 +214,7 @@ gtk_constraint_class_init (GtkConstraintClass *klass)
* The order relation between the terms of the constraint.
*/
obj_props[PROP_RELATION] =
- g_param_spec_enum ("relation",
- P_("Relation"),
- P_("The relation between the source and target attributes"),
+ g_param_spec_enum ("relation", NULL, NULL,
GTK_TYPE_CONSTRAINT_RELATION,
GTK_CONSTRAINT_RELATION_EQ,
G_PARAM_READWRITE |
@@ -237,9 +231,7 @@ gtk_constraint_class_init (GtkConstraintClass *klass)
* property of the source.
*/
obj_props[PROP_SOURCE] =
- g_param_spec_object ("source",
- P_("Source"),
- P_("The source of the constraint"),
+ g_param_spec_object ("source", NULL, NULL,
GTK_TYPE_CONSTRAINT_TARGET,
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS |
@@ -251,9 +243,7 @@ gtk_constraint_class_init (GtkConstraintClass *klass)
* constraint.
*/
obj_props[PROP_SOURCE_ATTRIBUTE] =
- g_param_spec_enum ("source-attribute",
- P_("Source Attribute"),
- P_("The attribute of the source widget set by the constraint"),
+ g_param_spec_enum ("source-attribute", NULL, NULL,
GTK_TYPE_CONSTRAINT_ATTRIBUTE,
GTK_CONSTRAINT_ATTRIBUTE_NONE,
G_PARAM_READWRITE |
@@ -267,9 +257,7 @@ gtk_constraint_class_init (GtkConstraintClass *klass)
* the [property@Gtk.Constraint:source-attribute].
*/
obj_props[PROP_MULTIPLIER] =
- g_param_spec_double ("multiplier",
- P_("Multiplier"),
- P_("The multiplication factor to be applied to the source attribute"),
+ g_param_spec_double ("multiplier", NULL, NULL,
-G_MAXDOUBLE, G_MAXDOUBLE, 1.0,
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS |
@@ -281,9 +269,7 @@ gtk_constraint_class_init (GtkConstraintClass *klass)
* The constant value to be added to the [property@Gtk.Constraint:source-attribute].
*/
obj_props[PROP_CONSTANT] =
- g_param_spec_double ("constant",
- P_("Constant"),
- P_("The constant to be added to the source attribute"),
+ g_param_spec_double ("constant", NULL, NULL,
-G_MAXDOUBLE, G_MAXDOUBLE, 0.0,
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS |
@@ -299,9 +285,7 @@ gtk_constraint_class_init (GtkConstraintClass *klass)
* value.
*/
obj_props[PROP_STRENGTH] =
- g_param_spec_int ("strength",
- P_("Strength"),
- P_("The strength of the constraint"),
+ g_param_spec_int ("strength", NULL, NULL,
0, GTK_CONSTRAINT_STRENGTH_REQUIRED,
GTK_CONSTRAINT_STRENGTH_REQUIRED,
G_PARAM_READWRITE |
diff --git a/gtk/gtkconstraintguide.c b/gtk/gtkconstraintguide.c
index 512b91cfd4..d032af4691 100644
--- a/gtk/gtkconstraintguide.c
+++ b/gtk/gtkconstraintguide.c
@@ -351,9 +351,7 @@ gtk_constraint_guide_class_init (GtkConstraintGuideClass *class)
* The minimum width of the guide.
*/
guide_props[PROP_MIN_WIDTH] =
- g_param_spec_int ("min-width",
- "Minimum width",
- "Minimum width",
+ g_param_spec_int ("min-width", NULL, NULL,
0, G_MAXINT, 0,
G_PARAM_READWRITE|
G_PARAM_EXPLICIT_NOTIFY);
@@ -364,9 +362,7 @@ gtk_constraint_guide_class_init (GtkConstraintGuideClass *class)
* The minimum height of the guide.
*/
guide_props[PROP_MIN_HEIGHT] =
- g_param_spec_int ("min-height",
- "Minimum height",
- "Minimum height",
+ g_param_spec_int ("min-height", NULL, NULL,
0, G_MAXINT, 0,
G_PARAM_READWRITE|
G_PARAM_EXPLICIT_NOTIFY);
@@ -377,9 +373,7 @@ gtk_constraint_guide_class_init (GtkConstraintGuideClass *class)
* The preferred, or natural, width of the guide.
*/
guide_props[PROP_NAT_WIDTH] =
- g_param_spec_int ("nat-width",
- "Natural width",
- "Natural width",
+ g_param_spec_int ("nat-width", NULL, NULL,
0, G_MAXINT, 0,
G_PARAM_READWRITE|
G_PARAM_EXPLICIT_NOTIFY);
@@ -390,9 +384,7 @@ gtk_constraint_guide_class_init (GtkConstraintGuideClass *class)
* The preferred, or natural, height of the guide.
*/
guide_props[PROP_NAT_HEIGHT] =
- g_param_spec_int ("nat-height",
- "Natural height",
- "Natural height",
+ g_param_spec_int ("nat-height", NULL, NULL,
0, G_MAXINT, 0,
G_PARAM_READWRITE|
G_PARAM_EXPLICIT_NOTIFY);
@@ -403,9 +395,7 @@ gtk_constraint_guide_class_init (GtkConstraintGuideClass *class)
* The maximum width of the guide.
*/
guide_props[PROP_MAX_WIDTH] =
- g_param_spec_int ("max-width",
- "Maximum width",
- "Maximum width",
+ g_param_spec_int ("max-width", NULL, NULL,
0, G_MAXINT, G_MAXINT,
G_PARAM_READWRITE|
G_PARAM_EXPLICIT_NOTIFY);
@@ -416,9 +406,7 @@ gtk_constraint_guide_class_init (GtkConstraintGuideClass *class)
* The maximum height of the guide.
*/
guide_props[PROP_MAX_HEIGHT] =
- g_param_spec_int ("max-height",
- "Maximum height",
- "Maximum height",
+ g_param_spec_int ("max-height", NULL, NULL,
0, G_MAXINT, G_MAXINT,
G_PARAM_READWRITE|
G_PARAM_EXPLICIT_NOTIFY);
@@ -430,9 +418,7 @@ gtk_constraint_guide_class_init (GtkConstraintGuideClass *class)
* the natural size of the guide.
*/
guide_props[PROP_STRENGTH] =
- g_param_spec_enum ("strength",
- "Strength",
- "The strength to use for natural size",
+ g_param_spec_enum ("strength", NULL, NULL,
GTK_TYPE_CONSTRAINT_STRENGTH,
GTK_CONSTRAINT_STRENGTH_MEDIUM,
G_PARAM_READWRITE|
@@ -444,9 +430,7 @@ gtk_constraint_guide_class_init (GtkConstraintGuideClass *class)
* A name that identifies the `GtkConstraintGuide`, for debugging.
*/
guide_props[PROP_NAME] =
- g_param_spec_string ("name",
- "Name",
- "A name to use in debug message",
+ g_param_spec_string ("name", NULL, NULL,
NULL,
G_PARAM_READWRITE);
diff --git a/gtk/gtkcssnode.c b/gtk/gtkcssnode.c
index 5dc5f49068..071c1f5f98 100644
--- a/gtk/gtkcssnode.c
+++ b/gtk/gtkcssnode.c
@@ -599,28 +599,28 @@ gtk_css_node_class_init (GtkCssNodeClass *klass)
G_TYPE_POINTER);
cssnode_properties[PROP_CLASSES] =
- g_param_spec_boxed ("classes", P_("Style Classes"), P_("List of classes"),
+ g_param_spec_boxed ("classes", NULL, NULL,
G_TYPE_STRV,
G_PARAM_READWRITE
| G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
cssnode_properties[PROP_ID] =
- g_param_spec_string ("id", P_("ID"), P_("Unique ID"),
+ g_param_spec_string ("id", NULL, NULL,
NULL,
G_PARAM_READWRITE
| G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
cssnode_properties[PROP_NAME] =
- g_param_spec_string ("name", P_("Name"), "Name identifying the type of node",
+ g_param_spec_string ("name", NULL, NULL,
NULL,
G_PARAM_READWRITE
| G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
cssnode_properties[PROP_STATE] =
- g_param_spec_flags ("state", P_("State"), P_("State flags"),
+ g_param_spec_flags ("state", NULL, NULL,
GTK_TYPE_STATE_FLAGS,
0,
G_PARAM_READWRITE
| G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
cssnode_properties[PROP_VISIBLE] =
- g_param_spec_boolean ("visible", P_("Visible"), P_("If other nodes can see this node"),
+ g_param_spec_boolean ("visible", NULL, NULL,
TRUE,
G_PARAM_READWRITE
| G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
diff --git a/gtk/gtkcssshorthandproperty.c b/gtk/gtkcssshorthandproperty.c
index 8b7807788f..6f66423030 100644
--- a/gtk/gtkcssshorthandproperty.c
+++ b/gtk/gtkcssshorthandproperty.c
@@ -134,9 +134,7 @@ _gtk_css_shorthand_property_class_init (GtkCssShorthandPropertyClass *klass)
g_object_class_install_property (object_class,
PROP_SUBPROPERTIES,
- g_param_spec_boxed ("subproperties",
- P_("Subproperties"),
- P_("The list of subproperties"),
+ g_param_spec_boxed ("subproperties", NULL, NULL,
G_TYPE_STRV,
G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
diff --git a/gtk/gtkcssstyleproperty.c b/gtk/gtkcssstyleproperty.c
index eebf39ad48..e049d5e355 100644
--- a/gtk/gtkcssstyleproperty.c
+++ b/gtk/gtkcssstyleproperty.c
@@ -162,38 +162,28 @@ _gtk_css_style_property_class_init (GtkCssStylePropertyClass *klass)
g_object_class_install_property (object_class,
PROP_ANIMATED,
- g_param_spec_boolean ("animated",
- P_("Animated"),
- P_("Set if the value can be animated"),
+ g_param_spec_boolean ("animated", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (object_class,
PROP_AFFECTS,
- g_param_spec_flags ("affects",
- P_("Affects"),
- P_("Set if the value affects the sizing of elements"),
+ g_param_spec_flags ("affects", NULL, NULL,
GTK_TYPE_CSS_AFFECTS,
0,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (object_class,
PROP_ID,
- g_param_spec_uint ("id",
- P_("ID"),
- P_("The numeric id for quick access"),
+ g_param_spec_uint ("id", NULL, NULL,
0, G_MAXUINT, 0,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (object_class,
PROP_INHERIT,
- g_param_spec_boolean ("inherit",
- P_("Inherit"),
- P_("Set if the value is inherited by default"),
+ g_param_spec_boolean ("inherit", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (object_class,
PROP_INITIAL,
- g_param_spec_boxed ("initial-value",
- P_("Initial value"),
- P_("The initial specified value used for this property"),
+ g_param_spec_boxed ("initial-value", NULL, NULL,
GTK_TYPE_CSS_VALUE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
diff --git a/gtk/gtkdialog.c b/gtk/gtkdialog.c
index 5d88756424..0e745acbea 100644
--- a/gtk/gtkdialog.c
+++ b/gtk/gtkdialog.c
@@ -563,9 +563,7 @@ gtk_dialog_class_init (GtkDialogClass *class)
*/
g_object_class_install_property (gobject_class,
PROP_USE_HEADER_BAR,
- g_param_spec_int ("use-header-bar",
- P_("Use Header Bar"),
- P_("Use Header Bar for actions."),
+ g_param_spec_int ("use-header-bar", NULL, NULL,
-1, 1, -1,
GTK_PARAM_READWRITE|G_PARAM_CONSTRUCT_ONLY));
diff --git a/gtk/gtkdirectorylist.c b/gtk/gtkdirectorylist.c
index 3b8908aefd..c725de1853 100644
--- a/gtk/gtkdirectorylist.c
+++ b/gtk/gtkdirectorylist.c
@@ -278,9 +278,7 @@ gtk_directory_list_class_init (GtkDirectoryListClass *class)
* The attributes to query.
*/
properties[PROP_ATTRIBUTES] =
- g_param_spec_string ("attributes",
- P_("attributes"),
- P_("Attributes to query"),
+ g_param_spec_string ("attributes", NULL, NULL,
NULL,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -290,9 +288,7 @@ gtk_directory_list_class_init (GtkDirectoryListClass *class)
* Error encountered while loading files.
*/
properties[PROP_ERROR] =
- g_param_spec_boxed ("error",
- P_("error"),
- P_("Error encountered while loading files"),
+ g_param_spec_boxed ("error", NULL, NULL,
G_TYPE_ERROR,
GTK_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY);
@@ -302,9 +298,7 @@ gtk_directory_list_class_init (GtkDirectoryListClass *class)
* File to query.
*/
properties[PROP_FILE] =
- g_param_spec_object ("file",
- P_("File"),
- P_("The file to query"),
+ g_param_spec_object ("file", NULL, NULL,
G_TYPE_FILE,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -314,9 +308,7 @@ gtk_directory_list_class_init (GtkDirectoryListClass *class)
* Priority used when loading.
*/
properties[PROP_IO_PRIORITY] =
- g_param_spec_int ("io-priority",
- P_("IO priority"),
- P_("Priority used when loading"),
+ g_param_spec_int ("io-priority", NULL, NULL,
-G_MAXINT, G_MAXINT, G_PRIORITY_DEFAULT,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -326,9 +318,7 @@ gtk_directory_list_class_init (GtkDirectoryListClass *class)
* %TRUE if files are being loaded.
*/
properties[PROP_LOADING] =
- g_param_spec_boolean ("loading",
- P_("loading"),
- P_("TRUE if files are being loaded"),
+ g_param_spec_boolean ("loading", NULL, NULL,
FALSE,
GTK_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY);
@@ -338,9 +328,7 @@ gtk_directory_list_class_init (GtkDirectoryListClass *class)
* %TRUE if the directory is monitored for changed.
*/
properties[PROP_MONITORED] =
- g_param_spec_boolean ("monitored",
- P_("monitored"),
- P_("TRUE if the directory is monitored for changes"),
+ g_param_spec_boolean ("monitored", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtkdragicon.c b/gtk/gtkdragicon.c
index dfcd6768c6..9d199fa015 100644
--- a/gtk/gtkdragicon.c
+++ b/gtk/gtkdragicon.c
@@ -372,9 +372,7 @@ gtk_drag_icon_class_init (GtkDragIconClass *klass)
* The widget to display as drag icon.
*/
properties[PROP_CHILD] =
- g_param_spec_object ("child",
- P_("Child"),
- P_("The widget to display as drag icon."),
+ g_param_spec_object ("child", NULL, NULL,
GTK_TYPE_WIDGET,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
diff --git a/gtk/gtkdragsource.c b/gtk/gtkdragsource.c
index e654729405..94bb8c54aa 100644
--- a/gtk/gtkdragsource.c
+++ b/gtk/gtkdragsource.c
@@ -323,9 +323,7 @@ gtk_drag_source_class_init (GtkDragSourceClass *class)
* The data that is offered by drag operations from this source.
*/
properties[PROP_CONTENT] =
- g_param_spec_object ("content",
- P_("Content"),
- P_("The content provider for the dragged data"),
+ g_param_spec_object ("content", NULL, NULL,
GDK_TYPE_CONTENT_PROVIDER,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -338,9 +336,7 @@ gtk_drag_source_class_init (GtkDragSourceClass *class)
* if the actions include %GDK_ACTION_MOVE.
*/
properties[PROP_ACTIONS] =
- g_param_spec_flags ("actions",
- P_("Actions"),
- P_("Supported actions"),
+ g_param_spec_flags ("actions", NULL, NULL,
GDK_TYPE_DRAG_ACTION, GDK_ACTION_COPY,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtkdrawingarea.c b/gtk/gtkdrawingarea.c
index 6e92d13e42..f4ef3ced6b 100644
--- a/gtk/gtkdrawingarea.c
+++ b/gtk/gtkdrawingarea.c
@@ -287,9 +287,7 @@ gtk_drawing_area_class_init (GtkDrawingAreaClass *class)
* The content width.
*/
props[PROP_CONTENT_WIDTH] =
- g_param_spec_int ("content-width",
- P_("Content Width"),
- P_("Desired width for displayed content"),
+ g_param_spec_int ("content-width", NULL, NULL,
0, G_MAXINT, 0,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -299,9 +297,7 @@ gtk_drawing_area_class_init (GtkDrawingAreaClass *class)
* The content height.
*/
props[PROP_CONTENT_HEIGHT] =
- g_param_spec_int ("content-height",
- P_("Content Height"),
- P_("Desired height for displayed content"),
+ g_param_spec_int ("content-height", NULL, NULL,
0, G_MAXINT, 0,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtkdropcontrollermotion.c b/gtk/gtkdropcontrollermotion.c
index 75c816cb74..86f419b589 100644
--- a/gtk/gtkdropcontrollermotion.c
+++ b/gtk/gtkdropcontrollermotion.c
@@ -220,9 +220,7 @@ gtk_drop_controller_motion_class_init (GtkDropControllerMotionClass *klass)
* [signal@Gtk.DropControllerMotion::leave] is emitted.
*/
props[PROP_CONTAINS_POINTER] =
- g_param_spec_boolean ("contains-pointer",
- P_("Contains Pointer"),
- P_("Whether the pointer is in the controllers widget or a descendant"),
+ g_param_spec_boolean ("contains-pointer", NULL, NULL,
FALSE,
G_PARAM_READABLE);
@@ -242,9 +240,7 @@ gtk_drop_controller_motion_class_init (GtkDropControllerMotionClass *klass)
* [signal@Gtk.DropControllerMotion::leave] is emitted.
*/
props[PROP_DROP] =
- g_param_spec_object ("drop",
- P_("Drop"),
- P_("The ongoing drop operation"),
+ g_param_spec_object ("drop", NULL, NULL,
GDK_TYPE_DROP,
G_PARAM_READABLE);
@@ -261,9 +257,7 @@ gtk_drop_controller_motion_class_init (GtkDropControllerMotionClass *klass)
* [signal@Gtk.DropControllerMotion::leave] is emitted.
*/
props[PROP_IS_POINTER] =
- g_param_spec_boolean ("is-pointer",
- P_("Is Pointer"),
- P_("Whether the pointer is in the controllers widget"),
+ g_param_spec_boolean ("is-pointer", NULL, NULL,
FALSE,
G_PARAM_READABLE);
diff --git a/gtk/gtkdropdown.c b/gtk/gtkdropdown.c
index e430892db9..e7f8bf856e 100644
--- a/gtk/gtkdropdown.c
+++ b/gtk/gtkdropdown.c
@@ -469,9 +469,7 @@ gtk_drop_down_class_init (GtkDropDownClass *klass)
* Factory for populating list items.
*/
properties[PROP_FACTORY] =
- g_param_spec_object ("factory",
- P_("Factory"),
- P_("Factory for populating list items"),
+ g_param_spec_object ("factory", NULL, NULL,
GTK_TYPE_LIST_ITEM_FACTORY,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -483,9 +481,7 @@ gtk_drop_down_class_init (GtkDropDownClass *klass)
* If this is not set, [property@Gtk.DropDown:factory] is used.
*/
properties[PROP_LIST_FACTORY] =
- g_param_spec_object ("list-factory",
- P_("List Factory"),
- P_("Factory for populating list items"),
+ g_param_spec_object ("list-factory", NULL, NULL,
GTK_TYPE_LIST_ITEM_FACTORY,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -495,9 +491,7 @@ gtk_drop_down_class_init (GtkDropDownClass *klass)
* Model for the displayed items.
*/
properties[PROP_MODEL] =
- g_param_spec_object ("model",
- P_("Model"),
- P_("Model for the displayed items"),
+ g_param_spec_object ("model", NULL, NULL,
G_TYPE_LIST_MODEL,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -510,9 +504,7 @@ gtk_drop_down_class_init (GtkDropDownClass *klass)
* %GTK_INVALID_LIST_POSITION.
*/
properties[PROP_SELECTED] =
- g_param_spec_uint ("selected",
- P_("Selected"),
- P_("Position of the selected item"),
+ g_param_spec_uint ("selected", NULL, NULL,
0, G_MAXUINT, GTK_INVALID_LIST_POSITION,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -522,9 +514,7 @@ gtk_drop_down_class_init (GtkDropDownClass *klass)
* The selected item.
*/
properties[PROP_SELECTED_ITEM] =
- g_param_spec_object ("selected-item",
- P_("Selected Item"),
- P_("The selected item"),
+ g_param_spec_object ("selected-item", NULL, NULL,
G_TYPE_OBJECT,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
@@ -537,9 +527,7 @@ gtk_drop_down_class_init (GtkDropDownClass *klass)
* to be set.
*/
properties[PROP_ENABLE_SEARCH] =
- g_param_spec_boolean ("enable-search",
- P_("Enable search"),
- P_("Whether to show a search entry in the popup"),
+ g_param_spec_boolean ("enable-search", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -554,9 +542,7 @@ gtk_drop_down_class_init (GtkDropDownClass *klass)
* used to bind strings to labels produced by a default factory.
*/
properties[PROP_EXPRESSION] =
- gtk_param_spec_expression ("expression",
- P_("Expression"),
- P_("Expression to determine strings to search for"),
+ gtk_param_spec_expression ("expression", NULL, NULL,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
/**
@@ -567,9 +553,7 @@ gtk_drop_down_class_init (GtkDropDownClass *klass)
* Since: 4.6
*/
properties[PROP_SHOW_ARROW] =
- g_param_spec_boolean ("show-arrow",
- P_("Show arrow"),
- P_("Whether to show an arrow within the widget"),
+ g_param_spec_boolean ("show-arrow", NULL, NULL,
TRUE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
diff --git a/gtk/gtkdroptarget.c b/gtk/gtkdroptarget.c
index 477f167580..f3240b34e9 100644
--- a/gtk/gtkdroptarget.c
+++ b/gtk/gtkdroptarget.c
@@ -624,9 +624,7 @@ gtk_drop_target_class_init (GtkDropTargetClass *class)
* The `GdkDragActions` that this drop target supports.
*/
properties[PROP_ACTIONS] =
- g_param_spec_flags ("actions",
- P_("Actions"),
- P_("The actions supported by this drop target"),
+ g_param_spec_flags ("actions", NULL, NULL,
GDK_TYPE_DRAG_ACTION, 0,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -638,9 +636,7 @@ gtk_drop_target_class_init (GtkDropTargetClass *class)
* Deprecated: 4.4: Use [property@Gtk.DropTarget:current-drop] instead
*/
properties[PROP_DROP] =
- g_param_spec_object ("drop",
- P_("Drop"),
- P_("Current drop"),
+ g_param_spec_object ("drop", NULL, NULL,
GDK_TYPE_DROP,
GTK_PARAM_READABLE | G_PARAM_DEPRECATED);
@@ -652,9 +648,7 @@ gtk_drop_target_class_init (GtkDropTargetClass *class)
* Since: 4.4
*/
properties[PROP_CURRENT_DROP] =
- g_param_spec_object ("current-drop",
- P_("Current drop"),
- P_("Current drop"),
+ g_param_spec_object ("current-drop", NULL, NULL,
GDK_TYPE_DROP,
GTK_PARAM_READABLE);
@@ -664,9 +658,7 @@ gtk_drop_target_class_init (GtkDropTargetClass *class)
* The `GdkContentFormats` that determine the supported data formats.
*/
properties[PROP_FORMATS] =
- g_param_spec_boxed ("formats",
- P_("Formats"),
- P_("The supported formats"),
+ g_param_spec_boxed ("formats", NULL, NULL,
GDK_TYPE_CONTENT_FORMATS,
GTK_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY);
@@ -693,9 +685,7 @@ gtk_drop_target_class_init (GtkDropTargetClass *class)
* so enabling it there is free.
*/
properties[PROP_PRELOAD] =
- g_param_spec_boolean ("preload",
- P_("Preload"),
- P_("Whether drop data should be preloaded while hovering"),
+ g_param_spec_boolean ("preload", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -713,9 +703,7 @@ gtk_drop_target_class_init (GtkDropTargetClass *class)
* of available data.
*/
properties[PROP_VALUE] =
- g_param_spec_boxed ("value",
- P_("Value"),
- P_("The value for this drop operation"),
+ g_param_spec_boxed ("value", NULL, NULL,
G_TYPE_VALUE,
GTK_PARAM_READABLE);
diff --git a/gtk/gtkdroptargetasync.c b/gtk/gtkdroptargetasync.c
index 1afd86d922..c2b7da5196 100644
--- a/gtk/gtkdroptargetasync.c
+++ b/gtk/gtkdroptargetasync.c
@@ -385,7 +385,7 @@ gtk_drop_target_async_class_init (GtkDropTargetAsyncClass *class)
* The `GdkDragActions` that this drop target supports.
*/
properties[PROP_ACTIONS] =
- g_param_spec_flags ("actions", P_("Actions"), P_("Actions"),
+ g_param_spec_flags ("actions", NULL, NULL,
GDK_TYPE_DRAG_ACTION, 0,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -395,7 +395,7 @@ gtk_drop_target_async_class_init (GtkDropTargetAsyncClass *class)
* The `GdkContentFormats` that determines the supported data formats.
*/
properties[PROP_FORMATS] =
- g_param_spec_boxed ("formats", P_("Formats"), P_("Formats"),
+ g_param_spec_boxed ("formats", NULL, NULL,
GDK_TYPE_CONTENT_FORMATS,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtkeditable.c b/gtk/gtkeditable.c
index a9517e1c1e..fb45d7d013 100644
--- a/gtk/gtkeditable.c
+++ b/gtk/gtkeditable.c
@@ -379,9 +379,7 @@ gtk_editable_default_init (GtkEditableInterface *iface)
* The contents of the entry.
*/
g_object_interface_install_property (iface,
- g_param_spec_string ("text",
- P_("Text"),
- P_("The contents of the entry"),
+ g_param_spec_string ("text", NULL, NULL,
"",
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -391,9 +389,7 @@ gtk_editable_default_init (GtkEditableInterface *iface)
* The current position of the insertion cursor in chars.
*/
g_object_interface_install_property (iface,
- g_param_spec_int ("cursor-position",
- P_("Cursor Position"),
- P_("The current position of the insertion cursor in chars"),
+ g_param_spec_int ("cursor-position", NULL, NULL,
0, GTK_ENTRY_BUFFER_MAX_SIZE,
0,
GTK_PARAM_READABLE));
@@ -404,9 +400,7 @@ gtk_editable_default_init (GtkEditableInterface *iface)
* If undo/redo should be enabled for the editable.
*/
g_object_interface_install_property (iface,
- g_param_spec_boolean ("enable-undo",
- P_("Enable Undo"),
- P_("If undo/redo should be enabled for the editable"),
+ g_param_spec_boolean ("enable-undo", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -416,9 +410,7 @@ gtk_editable_default_init (GtkEditableInterface *iface)
* The position of the opposite end of the selection from the cursor in chars.
*/
g_object_interface_install_property (iface,
- g_param_spec_int ("selection-bound",
- P_("Selection Bound"),
- P_("The position of the opposite end of the selection from the cursor in chars"),
+ g_param_spec_int ("selection-bound", NULL, NULL,
0, GTK_ENTRY_BUFFER_MAX_SIZE,
0,
GTK_PARAM_READABLE));
@@ -429,9 +421,7 @@ gtk_editable_default_init (GtkEditableInterface *iface)
* Whether the entry contents can be edited.
*/
g_object_interface_install_property (iface,
- g_param_spec_boolean ("editable",
- P_("Editable"),
- P_("Whether the entry contents can be edited"),
+ g_param_spec_boolean ("editable", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -441,9 +431,7 @@ gtk_editable_default_init (GtkEditableInterface *iface)
* Number of characters to leave space for in the entry.
*/
g_object_interface_install_property (iface,
- g_param_spec_int ("width-chars",
- P_("Width in chars"),
- P_("Number of characters to leave space for in the entry"),
+ g_param_spec_int ("width-chars", NULL, NULL,
-1, G_MAXINT,
-1,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -454,9 +442,7 @@ gtk_editable_default_init (GtkEditableInterface *iface)
* The desired maximum width of the entry, in characters.
*/
g_object_interface_install_property (iface,
- g_param_spec_int ("max-width-chars",
- P_("Maximum width in characters"),
- P_("The desired maximum width of the entry, in characters"),
+ g_param_spec_int ("max-width-chars", NULL, NULL,
-1, G_MAXINT,
-1,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -469,9 +455,7 @@ gtk_editable_default_init (GtkEditableInterface *iface)
* Reversed for RTL layouts.
*/
g_object_interface_install_property (iface,
- g_param_spec_float ("xalign",
- P_("X align"),
- P_("The horizontal alignment, from 0 (left) to 1 (right). Reversed for RTL layouts."),
+ g_param_spec_float ("xalign", NULL, NULL,
0.0, 1.0,
0.0,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
diff --git a/gtk/gtkeditablelabel.c b/gtk/gtkeditablelabel.c
index a5331cc09c..d14642089f 100644
--- a/gtk/gtkeditablelabel.c
+++ b/gtk/gtkeditablelabel.c
@@ -374,9 +374,7 @@ gtk_editable_label_class_init (GtkEditableLabelClass *class)
* This property is %TRUE while the widget is in edit mode.
*/
properties[PROP_EDITING] =
- g_param_spec_boolean ("editing",
- P_("Editing"),
- P_("Whether the widget is in editing mode"),
+ g_param_spec_boolean ("editing", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index 399a065d04..b0cee37e4c 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -483,9 +483,7 @@ gtk_entry_class_init (GtkEntryClass *class)
* The buffer object which actually stores the text.
*/
entry_props[PROP_BUFFER] =
- g_param_spec_object ("buffer",
- P_("Text Buffer"),
- P_("Text buffer object which actually stores entry text"),
+ g_param_spec_object ("buffer", NULL, NULL,
GTK_TYPE_ENTRY_BUFFER,
GTK_PARAM_READWRITE|G_PARAM_CONSTRUCT|G_PARAM_EXPLICIT_NOTIFY);
@@ -495,9 +493,7 @@ gtk_entry_class_init (GtkEntryClass *class)
* Maximum number of characters for this entry.
*/
entry_props[PROP_MAX_LENGTH] =
- g_param_spec_int ("max-length",
- P_("Maximum length"),
- P_("Maximum number of characters for this entry. Zero if no maximum"),
+ g_param_spec_int ("max-length", NULL, NULL,
0, GTK_ENTRY_BUFFER_MAX_SIZE,
0,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -509,9 +505,7 @@ gtk_entry_class_init (GtkEntryClass *class)
* actual text (“password mode”).
*/
entry_props[PROP_VISIBILITY] =
- g_param_spec_boolean ("visibility",
- P_("Visibility"),
- P_("FALSE displays the “invisible char” instead of the actual text (password mode)"),
+ g_param_spec_boolean ("visibility", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -521,9 +515,7 @@ gtk_entry_class_init (GtkEntryClass *class)
* Whehter the entry should draw a frame.
*/
entry_props[PROP_HAS_FRAME] =
- g_param_spec_boolean ("has-frame",
- P_("Has Frame"),
- P_("FALSE removes outside bevel from entry"),
+ g_param_spec_boolean ("has-frame", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -533,9 +525,7 @@ gtk_entry_class_init (GtkEntryClass *class)
* The character to use when masking entry contents (“password mode”).
*/
entry_props[PROP_INVISIBLE_CHAR] =
- g_param_spec_unichar ("invisible-char",
- P_("Invisible character"),
- P_("The character to use when masking entry contents (in “password mode”)"),
+ g_param_spec_unichar ("invisible-char", NULL, NULL,
'*',
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -545,9 +535,7 @@ gtk_entry_class_init (GtkEntryClass *class)
* Whether to activate the default widget when Enter is pressed.
*/
entry_props[PROP_ACTIVATES_DEFAULT] =
- g_param_spec_boolean ("activates-default",
- P_("Activates default"),
- P_("Whether to activate the default widget (such as the default button in a dialog) when Enter is pressed"),
+ g_param_spec_boolean ("activates-default", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -557,9 +545,7 @@ gtk_entry_class_init (GtkEntryClass *class)
* Number of pixels of the entry scrolled off the screen to the left.
*/
entry_props[PROP_SCROLL_OFFSET] =
- g_param_spec_int ("scroll-offset",
- P_("Scroll offset"),
- P_("Number of pixels of the entry scrolled off the screen to the left"),
+ g_param_spec_int ("scroll-offset", NULL, NULL,
0, G_MAXINT,
0,
GTK_PARAM_READABLE|G_PARAM_EXPLICIT_NOTIFY);
@@ -570,9 +556,7 @@ gtk_entry_class_init (GtkEntryClass *class)
* When %TRUE, pasted multi-line text is truncated to the first line.
*/
entry_props[PROP_TRUNCATE_MULTILINE] =
- g_param_spec_boolean ("truncate-multiline",
- P_("Truncate multiline"),
- P_("Whether to truncate multiline pastes to one line."),
+ g_param_spec_boolean ("truncate-multiline", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -582,9 +566,7 @@ gtk_entry_class_init (GtkEntryClass *class)
* If text is overwritten when typing in the `GtkEntry`.
*/
entry_props[PROP_OVERWRITE_MODE] =
- g_param_spec_boolean ("overwrite-mode",
- P_("Overwrite mode"),
- P_("Whether new text overwrites existing text"),
+ g_param_spec_boolean ("overwrite-mode", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -594,9 +576,7 @@ gtk_entry_class_init (GtkEntryClass *class)
* The length of the text in the `GtkEntry`.
*/
entry_props[PROP_TEXT_LENGTH] =
- g_param_spec_uint ("text-length",
- P_("Text length"),
- P_("Length of the text currently in the entry"),
+ g_param_spec_uint ("text-length", NULL, NULL,
0, G_MAXUINT16,
0,
GTK_PARAM_READABLE);
@@ -607,9 +587,7 @@ gtk_entry_class_init (GtkEntryClass *class)
* Whether the invisible char has been set for the `GtkEntry`.
*/
entry_props[PROP_INVISIBLE_CHAR_SET] =
- g_param_spec_boolean ("invisible-char-set",
- P_("Invisible character set"),
- P_("Whether the invisible character has been set"),
+ g_param_spec_boolean ("invisible-char-set", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE);
@@ -619,9 +597,7 @@ gtk_entry_class_init (GtkEntryClass *class)
* The current fraction of the task that's been completed.
*/
entry_props[PROP_PROGRESS_FRACTION] =
- g_param_spec_double ("progress-fraction",
- P_("Progress Fraction"),
- P_("The current fraction of the task that’s been completed"),
+ g_param_spec_double ("progress-fraction", NULL, NULL,
0.0, 1.0,
0.0,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -635,9 +611,7 @@ gtk_entry_class_init (GtkEntryClass *class)
* See [method@Gtk.Entry.progress_pulse].
*/
entry_props[PROP_PROGRESS_PULSE_STEP] =
- g_param_spec_double ("progress-pulse-step",
- P_("Progress Pulse Step"),
- P_("The fraction of total entry width to move the progress bouncing block for each call to gtk_entry_progress_pulse()"),
+ g_param_spec_double ("progress-pulse-step", NULL, NULL,
0.0, 1.0,
0.0,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -649,9 +623,7 @@ gtk_entry_class_init (GtkEntryClass *class)
* and unfocused.
*/
entry_props[PROP_PLACEHOLDER_TEXT] =
- g_param_spec_string ("placeholder-text",
- P_("Placeholder text"),
- P_("Show text in the entry when it’s empty and unfocused"),
+ g_param_spec_string ("placeholder-text", NULL, NULL,
NULL,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -661,9 +633,7 @@ gtk_entry_class_init (GtkEntryClass *class)
* A `GdkPaintable` to use as the primary icon for the entry.
*/
entry_props[PROP_PAINTABLE_PRIMARY] =
- g_param_spec_object ("primary-icon-paintable",
- P_("Primary paintable"),
- P_("Primary paintable for the entry"),
+ g_param_spec_object ("primary-icon-paintable", NULL, NULL,
GDK_TYPE_PAINTABLE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -673,9 +643,7 @@ gtk_entry_class_init (GtkEntryClass *class)
* A `GdkPaintable` to use as the secondary icon for the entry.
*/
entry_props[PROP_PAINTABLE_SECONDARY] =
- g_param_spec_object ("secondary-icon-paintable",
- P_("Secondary paintable"),
- P_("Secondary paintable for the entry"),
+ g_param_spec_object ("secondary-icon-paintable", NULL, NULL,
GDK_TYPE_PAINTABLE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -685,9 +653,7 @@ gtk_entry_class_init (GtkEntryClass *class)
* The icon name to use for the primary icon for the entry.
*/
entry_props[PROP_ICON_NAME_PRIMARY] =
- g_param_spec_string ("primary-icon-name",
- P_("Primary icon name"),
- P_("Icon name for primary icon"),
+ g_param_spec_string ("primary-icon-name", NULL, NULL,
NULL,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -697,9 +663,7 @@ gtk_entry_class_init (GtkEntryClass *class)
* The icon name to use for the secondary icon for the entry.
*/
entry_props[PROP_ICON_NAME_SECONDARY] =
- g_param_spec_string ("secondary-icon-name",
- P_("Secondary icon name"),
- P_("Icon name for secondary icon"),
+ g_param_spec_string ("secondary-icon-name", NULL, NULL,
NULL,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -709,9 +673,7 @@ gtk_entry_class_init (GtkEntryClass *class)
* The `GIcon` to use for the primary icon for the entry.
*/
entry_props[PROP_GICON_PRIMARY] =
- g_param_spec_object ("primary-icon-gicon",
- P_("Primary GIcon"),
- P_("GIcon for primary icon"),
+ g_param_spec_object ("primary-icon-gicon", NULL, NULL,
G_TYPE_ICON,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -721,9 +683,7 @@ gtk_entry_class_init (GtkEntryClass *class)
* The `GIcon` to use for the secondary icon for the entry.
*/
entry_props[PROP_GICON_SECONDARY] =
- g_param_spec_object ("secondary-icon-gicon",
- P_("Secondary GIcon"),
- P_("GIcon for secondary icon"),
+ g_param_spec_object ("secondary-icon-gicon", NULL, NULL,
G_TYPE_ICON,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -733,9 +693,7 @@ gtk_entry_class_init (GtkEntryClass *class)
* The representation which is used for the primary icon of the entry.
*/
entry_props[PROP_STORAGE_TYPE_PRIMARY] =
- g_param_spec_enum ("primary-icon-storage-type",
- P_("Primary storage type"),
- P_("The representation being used for primary icon"),
+ g_param_spec_enum ("primary-icon-storage-type", NULL, NULL,
GTK_TYPE_IMAGE_TYPE,
GTK_IMAGE_EMPTY,
GTK_PARAM_READABLE);
@@ -746,9 +704,7 @@ gtk_entry_class_init (GtkEntryClass *class)
* The representation which is used for the secondary icon of the entry.
*/
entry_props[PROP_STORAGE_TYPE_SECONDARY] =
- g_param_spec_enum ("secondary-icon-storage-type",
- P_("Secondary storage type"),
- P_("The representation being used for secondary icon"),
+ g_param_spec_enum ("secondary-icon-storage-type", NULL, NULL,
GTK_TYPE_IMAGE_TYPE,
GTK_IMAGE_EMPTY,
GTK_PARAM_READABLE);
@@ -766,9 +722,7 @@ gtk_entry_class_init (GtkEntryClass *class)
* informational purposes.
*/
entry_props[PROP_ACTIVATABLE_PRIMARY] =
- g_param_spec_boolean ("primary-icon-activatable",
- P_("Primary icon activatable"),
- P_("Whether the primary icon is activatable"),
+ g_param_spec_boolean ("primary-icon-activatable", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -785,9 +739,7 @@ gtk_entry_class_init (GtkEntryClass *class)
* informational purposes.
*/
entry_props[PROP_ACTIVATABLE_SECONDARY] =
- g_param_spec_boolean ("secondary-icon-activatable",
- P_("Secondary icon activatable"),
- P_("Whether the secondary icon is activatable"),
+ g_param_spec_boolean ("secondary-icon-activatable", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -804,9 +756,7 @@ gtk_entry_class_init (GtkEntryClass *class)
* when clicked is currently not available.
*/
entry_props[PROP_SENSITIVE_PRIMARY] =
- g_param_spec_boolean ("primary-icon-sensitive",
- P_("Primary icon sensitive"),
- P_("Whether the primary icon is sensitive"),
+ g_param_spec_boolean ("primary-icon-sensitive", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -823,9 +773,7 @@ gtk_entry_class_init (GtkEntryClass *class)
* when clicked is currently not available.
*/
entry_props[PROP_SENSITIVE_SECONDARY] =
- g_param_spec_boolean ("secondary-icon-sensitive",
- P_("Secondary icon sensitive"),
- P_("Whether the secondary icon is sensitive"),
+ g_param_spec_boolean ("secondary-icon-sensitive", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -837,9 +785,7 @@ gtk_entry_class_init (GtkEntryClass *class)
* Also see [method@Gtk.Entry.set_icon_tooltip_text].
*/
entry_props[PROP_TOOLTIP_TEXT_PRIMARY] =
- g_param_spec_string ("primary-icon-tooltip-text",
- P_("Primary icon tooltip text"),
- P_("The contents of the tooltip on the primary icon"),
+ g_param_spec_string ("primary-icon-tooltip-text", NULL, NULL,
NULL,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -851,9 +797,7 @@ gtk_entry_class_init (GtkEntryClass *class)
* Also see [method@Gtk.Entry.set_icon_tooltip_text].
*/
entry_props[PROP_TOOLTIP_TEXT_SECONDARY] =
- g_param_spec_string ("secondary-icon-tooltip-text",
- P_("Secondary icon tooltip text"),
- P_("The contents of the tooltip on the secondary icon"),
+ g_param_spec_string ("secondary-icon-tooltip-text", NULL, NULL,
NULL,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -865,9 +809,7 @@ gtk_entry_class_init (GtkEntryClass *class)
* Also see [method@Gtk.Entry.set_icon_tooltip_markup].
*/
entry_props[PROP_TOOLTIP_MARKUP_PRIMARY] =
- g_param_spec_string ("primary-icon-tooltip-markup",
- P_("Primary icon tooltip markup"),
- P_("The contents of the tooltip on the primary icon"),
+ g_param_spec_string ("primary-icon-tooltip-markup", NULL, NULL,
NULL,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -879,9 +821,7 @@ gtk_entry_class_init (GtkEntryClass *class)
* Also see [method@Gtk.Entry.set_icon_tooltip_markup].
*/
entry_props[PROP_TOOLTIP_MARKUP_SECONDARY] =
- g_param_spec_string ("secondary-icon-tooltip-markup",
- P_("Secondary icon tooltip markup"),
- P_("The contents of the tooltip on the secondary icon"),
+ g_param_spec_string ("secondary-icon-tooltip-markup", NULL, NULL,
NULL,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -897,9 +837,7 @@ gtk_entry_class_init (GtkEntryClass *class)
* property.
*/
entry_props[PROP_IM_MODULE] =
- g_param_spec_string ("im-module",
- P_("IM module"),
- P_("Which IM module should be used"),
+ g_param_spec_string ("im-module", NULL, NULL,
NULL,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -909,9 +847,7 @@ gtk_entry_class_init (GtkEntryClass *class)
* The auxiliary completion object to use with the entry.
*/
entry_props[PROP_COMPLETION] =
- g_param_spec_object ("completion",
- P_("Completion"),
- P_("The auxiliary completion object"),
+ g_param_spec_object ("completion", NULL, NULL,
GTK_TYPE_ENTRY_COMPLETION,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -928,9 +864,7 @@ gtk_entry_class_init (GtkEntryClass *class)
* [property@Gtk.Entry:visibility].
*/
entry_props[PROP_INPUT_PURPOSE] =
- g_param_spec_enum ("input-purpose",
- P_("Purpose"),
- P_("Purpose of the text field"),
+ g_param_spec_enum ("input-purpose", NULL, NULL,
GTK_TYPE_INPUT_PURPOSE,
GTK_INPUT_PURPOSE_FREE_FORM,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -943,9 +877,7 @@ gtk_entry_class_init (GtkEntryClass *class)
* Also see [property@Gtk.Entry:input-purpose]
*/
entry_props[PROP_INPUT_HINTS] =
- g_param_spec_flags ("input-hints",
- P_("hints"),
- P_("Hints for the text field behaviour"),
+ g_param_spec_flags ("input-hints", NULL, NULL,
GTK_TYPE_INPUT_HINTS,
GTK_INPUT_HINT_NONE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -961,9 +893,7 @@ gtk_entry_class_init (GtkEntryClass *class)
* [class@Gtk.EntryBuffer] text, i.e. without the preedit string.
*/
entry_props[PROP_ATTRIBUTES] =
- g_param_spec_boxed ("attributes",
- P_("Attributes"),
- P_("A list of style attributes to apply to the text of the entry"),
+ g_param_spec_boxed ("attributes", NULL, NULL,
PANGO_TYPE_ATTR_LIST,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -973,9 +903,7 @@ gtk_entry_class_init (GtkEntryClass *class)
* A list of tabstops to apply to the text of the entry.
*/
entry_props[PROP_TABS] =
- g_param_spec_boxed ("tabs",
- P_("Tabs"),
- P_("A list of tabstop locations to apply to the text of the entry"),
+ g_param_spec_boxed ("tabs", NULL, NULL,
PANGO_TYPE_TAB_ARRAY,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -986,9 +914,7 @@ gtk_entry_class_init (GtkEntryClass *class)
* to open the Emoji chooser.
*/
entry_props[PROP_SHOW_EMOJI_ICON] =
- g_param_spec_boolean ("show-emoji-icon",
- P_("Emoji icon"),
- P_("Whether to show an icon for Emoji"),
+ g_param_spec_boolean ("show-emoji-icon", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -998,9 +924,7 @@ gtk_entry_class_init (GtkEntryClass *class)
* A menu model whose contents will be appended to the context menu.
*/
entry_props[PROP_EXTRA_MENU] =
- g_param_spec_object ("extra-menu",
- P_("Extra menu"),
- P_("Model menu to append to the context menu"),
+ g_param_spec_object ("extra-menu", NULL, NULL,
G_TYPE_MENU_MODEL,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -1011,9 +935,7 @@ gtk_entry_class_init (GtkEntryClass *class)
* like `:heart:`.
*/
entry_props[PROP_ENABLE_EMOJI_COMPLETION] =
- g_param_spec_boolean ("enable-emoji-completion",
- P_("Enable Emoji completion"),
- P_("Whether to suggest Emoji replacements"),
+ g_param_spec_boolean ("enable-emoji-completion", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtkentrybuffer.c b/gtk/gtkentrybuffer.c
index 2d2f68b3d8..a693b876bd 100644
--- a/gtk/gtkentrybuffer.c
+++ b/gtk/gtkentrybuffer.c
@@ -344,9 +344,7 @@ gtk_entry_buffer_class_init (GtkEntryBufferClass *klass)
* The contents of the buffer.
*/
entry_buffer_props[PROP_TEXT] =
- g_param_spec_string ("text",
- P_("Text"),
- P_("The contents of the buffer"),
+ g_param_spec_string ("text", NULL, NULL,
"",
GTK_PARAM_READWRITE);
@@ -356,9 +354,7 @@ gtk_entry_buffer_class_init (GtkEntryBufferClass *klass)
* The length (in characters) of the text in buffer.
*/
entry_buffer_props[PROP_LENGTH] =
- g_param_spec_uint ("length",
- P_("Text length"),
- P_("Length of the text currently in the buffer"),
+ g_param_spec_uint ("length", NULL, NULL,
0, GTK_ENTRY_BUFFER_MAX_SIZE, 0,
GTK_PARAM_READABLE);
@@ -368,9 +364,7 @@ gtk_entry_buffer_class_init (GtkEntryBufferClass *klass)
* The maximum length (in characters) of the text in the buffer.
*/
entry_buffer_props[PROP_MAX_LENGTH] =
- g_param_spec_int ("max-length",
- P_("Maximum length"),
- P_("Maximum number of characters for this entry. Zero if no maximum"),
+ g_param_spec_int ("max-length", NULL, NULL,
0, GTK_ENTRY_BUFFER_MAX_SIZE, 0,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtkentrycompletion.c b/gtk/gtkentrycompletion.c
index ef4985af72..328d3cc0fd 100644
--- a/gtk/gtkentrycompletion.c
+++ b/gtk/gtkentrycompletion.c
@@ -295,16 +295,12 @@ gtk_entry_completion_class_init (GtkEntryCompletionClass *klass)
G_TYPE_NONE, 0);
entry_completion_props[PROP_MODEL] =
- g_param_spec_object ("model",
- P_("Completion Model"),
- P_("The model to find matches in"),
+ g_param_spec_object ("model", NULL, NULL,
GTK_TYPE_TREE_MODEL,
GTK_PARAM_READWRITE);
entry_completion_props[PROP_MINIMUM_KEY_LENGTH] =
- g_param_spec_int ("minimum-key-length",
- P_("Minimum Key Length"),
- P_("Minimum length of the search key in order to look up matches"),
+ g_param_spec_int ("minimum-key-length", NULL, NULL,
0, G_MAXINT, 1,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -316,9 +312,7 @@ gtk_entry_completion_class_init (GtkEntryCompletionClass *klass)
* Note that the strings must be UTF-8.
*/
entry_completion_props[PROP_TEXT_COLUMN] =
- g_param_spec_int ("text-column",
- P_("Text column"),
- P_("The column of the model containing the strings."),
+ g_param_spec_int ("text-column", NULL, NULL,
-1, G_MAXINT, -1,
GTK_PARAM_READWRITE);
@@ -332,9 +326,7 @@ gtk_entry_completion_class_init (GtkEntryCompletionClass *klass)
* using a custom match function.
*/
entry_completion_props[PROP_INLINE_COMPLETION] =
- g_param_spec_boolean ("inline-completion",
- P_("Inline completion"),
- P_("Whether the common prefix should be inserted automatically"),
+ g_param_spec_boolean ("inline-completion", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -345,9 +337,7 @@ gtk_entry_completion_class_init (GtkEntryCompletionClass *klass)
* shown in a popup window.
*/
entry_completion_props[PROP_POPUP_COMPLETION] =
- g_param_spec_boolean ("popup-completion",
- P_("Popup completion"),
- P_("Whether the completions should be shown in a popup window"),
+ g_param_spec_boolean ("popup-completion", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -358,9 +348,7 @@ gtk_entry_completion_class_init (GtkEntryCompletionClass *klass)
* resized to the width of the entry.
*/
entry_completion_props[PROP_POPUP_SET_WIDTH] =
- g_param_spec_boolean ("popup-set-width",
- P_("Popup set width"),
- P_("If TRUE, the popup window will have the same size as the entry"),
+ g_param_spec_boolean ("popup-set-width", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -374,9 +362,7 @@ gtk_entry_completion_class_init (GtkEntryCompletionClass *klass)
* [property@Gtk.EntryCompletion:inline-completion].
*/
entry_completion_props[PROP_POPUP_SINGLE_MATCH] =
- g_param_spec_boolean ("popup-single-match",
- P_("Popup single match"),
- P_("If TRUE, the popup window will appear for a single match."),
+ g_param_spec_boolean ("popup-single-match", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -387,9 +373,7 @@ gtk_entry_completion_class_init (GtkEntryCompletionClass *klass)
* will appear in the entry as you navigate through them.
*/
entry_completion_props[PROP_INLINE_SELECTION] =
- g_param_spec_boolean ("inline-selection",
- P_("Inline selection"),
- P_("Your description here"),
+ g_param_spec_boolean ("inline-selection", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -403,9 +387,7 @@ gtk_entry_completion_class_init (GtkEntryCompletionClass *klass)
* [class@Gtk.CellAreaBox] will be used.
*/
entry_completion_props[PROP_CELL_AREA] =
- g_param_spec_object ("cell-area",
- P_("Cell Area"),
- P_("The GtkCellArea used to layout cells"),
+ g_param_spec_object ("cell-area", NULL, NULL,
GTK_TYPE_CELL_AREA,
GTK_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY);
diff --git a/gtk/gtkeventcontroller.c b/gtk/gtkeventcontroller.c
index 8666de4a87..f4aec29eda 100644
--- a/gtk/gtkeventcontroller.c
+++ b/gtk/gtkeventcontroller.c
@@ -200,9 +200,7 @@ gtk_event_controller_class_init (GtkEventControllerClass *klass)
* The widget receiving the `GdkEvents` that the controller will handle.
*/
properties[PROP_WIDGET] =
- g_param_spec_object ("widget",
- P_("Widget"),
- P_("Widget the gesture relates to"),
+ g_param_spec_object ("widget", NULL, NULL,
GTK_TYPE_WIDGET,
GTK_PARAM_READABLE);
@@ -212,9 +210,7 @@ gtk_event_controller_class_init (GtkEventControllerClass *klass)
* The propagation phase at which this controller will handle events.
*/
properties[PROP_PROPAGATION_PHASE] =
- g_param_spec_enum ("propagation-phase",
- P_("Propagation phase"),
- P_("Propagation phase at which this controller is run"),
+ g_param_spec_enum ("propagation-phase", NULL, NULL,
GTK_TYPE_PROPAGATION_PHASE,
GTK_PHASE_BUBBLE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -225,9 +221,7 @@ gtk_event_controller_class_init (GtkEventControllerClass *klass)
* The limit for which events this controller will handle.
*/
properties[PROP_PROPAGATION_LIMIT] =
- g_param_spec_enum ("propagation-limit",
- P_("Propagation limit"),
- P_("Propagation limit for events handled by this controller"),
+ g_param_spec_enum ("propagation-limit", NULL, NULL,
GTK_TYPE_PROPAGATION_LIMIT,
GTK_LIMIT_SAME_NATIVE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -238,9 +232,7 @@ gtk_event_controller_class_init (GtkEventControllerClass *klass)
* The name for this controller, typically used for debugging purposes.
*/
properties[PROP_NAME] =
- g_param_spec_string ("name",
- P_("Name"),
- P_("Name for this controller"),
+ g_param_spec_string ("name", NULL, NULL,
NULL,
GTK_PARAM_READWRITE);
diff --git a/gtk/gtkeventcontrollerfocus.c b/gtk/gtkeventcontrollerfocus.c
index cc4c2b8f0b..6261420e9a 100644
--- a/gtk/gtkeventcontrollerfocus.c
+++ b/gtk/gtkeventcontrollerfocus.c
@@ -200,9 +200,7 @@ gtk_event_controller_focus_class_init (GtkEventControllerFocusClass *klass)
* [signal@Gtk.EventControllerFocus::leave] are emitted.
*/
props[PROP_IS_FOCUS] =
- g_param_spec_boolean ("is-focus",
- P_("Is Focus"),
- P_("Whether the focus is in the controllers widget"),
+ g_param_spec_boolean ("is-focus", NULL, NULL,
FALSE,
G_PARAM_READABLE);
@@ -219,9 +217,7 @@ gtk_event_controller_focus_class_init (GtkEventControllerFocusClass *klass)
* [signal@Gtk.EventControllerFocus::leave] are emitted.
*/
props[PROP_CONTAINS_FOCUS] =
- g_param_spec_boolean ("contains-focus",
- P_("Contains Focus"),
- P_("Whether the focus is in a descendant of the controllers widget"),
+ g_param_spec_boolean ("contains-focus", NULL, NULL,
FALSE,
G_PARAM_READABLE);
diff --git a/gtk/gtkeventcontrollermotion.c b/gtk/gtkeventcontrollermotion.c
index 47aee49149..f2a8d5e877 100644
--- a/gtk/gtkeventcontrollermotion.c
+++ b/gtk/gtkeventcontrollermotion.c
@@ -207,9 +207,7 @@ gtk_event_controller_motion_class_init (GtkEventControllerMotionClass *klass)
* [signal@Gtk.EventControllerMotion::leave] is emitted.
*/
props[PROP_IS_POINTER] =
- g_param_spec_boolean ("is-pointer",
- P_("Is Pointer"),
- P_("Whether the pointer is in the controllers widget"),
+ g_param_spec_boolean ("is-pointer", NULL, NULL,
FALSE,
G_PARAM_READABLE);
@@ -225,9 +223,7 @@ gtk_event_controller_motion_class_init (GtkEventControllerMotionClass *klass)
* [signal@Gtk.EventControllerMotion::leave] is emitted.
*/
props[PROP_CONTAINS_POINTER] =
- g_param_spec_boolean ("contains-pointer",
- P_("Contains Pointer"),
- P_("Whether the pointer is in the controllers widget or a descendant"),
+ g_param_spec_boolean ("contains-pointer", NULL, NULL,
FALSE,
G_PARAM_READABLE);
diff --git a/gtk/gtkeventcontrollerscroll.c b/gtk/gtkeventcontrollerscroll.c
index f40826cf7b..d78cc01770 100644
--- a/gtk/gtkeventcontrollerscroll.c
+++ b/gtk/gtkeventcontrollerscroll.c
@@ -481,9 +481,7 @@ gtk_event_controller_scroll_class_init (GtkEventControllerScrollClass *klass)
* The flags affecting event controller behavior.
*/
pspecs[PROP_FLAGS] =
- g_param_spec_flags ("flags",
- P_("Flags"),
- P_("Flags"),
+ g_param_spec_flags ("flags", NULL, NULL,
GTK_TYPE_EVENT_CONTROLLER_SCROLL_FLAGS,
GTK_EVENT_CONTROLLER_SCROLL_NONE,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtkexpander.c b/gtk/gtkexpander.c
index 27d94b0112..b06d1b112c 100644
--- a/gtk/gtkexpander.c
+++ b/gtk/gtkexpander.c
@@ -316,9 +316,7 @@ gtk_expander_class_init (GtkExpanderClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_EXPANDED,
- g_param_spec_boolean ("expanded",
- P_("Expanded"),
- P_("Whether the expander has been opened to reveal the child widget"),
+ g_param_spec_boolean ("expanded", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_CONSTRUCT|G_PARAM_EXPLICIT_NOTIFY));
@@ -329,9 +327,7 @@ gtk_expander_class_init (GtkExpanderClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_LABEL,
- g_param_spec_string ("label",
- P_("Label"),
- P_("Text of the expander’s label"),
+ g_param_spec_string ("label", NULL, NULL,
NULL,
GTK_PARAM_READWRITE|G_PARAM_CONSTRUCT));
@@ -342,9 +338,7 @@ gtk_expander_class_init (GtkExpanderClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_USE_UNDERLINE,
- g_param_spec_boolean ("use-underline",
- P_("Use underline"),
- P_("If set, an underline in the text indicates the next character should be used for the mnemonic accelerator key"),
+ g_param_spec_boolean ("use-underline", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_CONSTRUCT|G_PARAM_EXPLICIT_NOTIFY));
@@ -355,9 +349,7 @@ gtk_expander_class_init (GtkExpanderClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_USE_MARKUP,
- g_param_spec_boolean ("use-markup",
- P_("Use markup"),
- P_("The text of the label includes XML markup. See pango_parse_markup()"),
+ g_param_spec_boolean ("use-markup", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_CONSTRUCT|G_PARAM_EXPLICIT_NOTIFY));
@@ -368,9 +360,7 @@ gtk_expander_class_init (GtkExpanderClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_LABEL_WIDGET,
- g_param_spec_object ("label-widget",
- P_("Label widget"),
- P_("A widget to display in place of the usual expander label"),
+ g_param_spec_object ("label-widget", NULL, NULL,
GTK_TYPE_WIDGET,
GTK_PARAM_READWRITE));
@@ -382,9 +372,7 @@ gtk_expander_class_init (GtkExpanderClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_RESIZE_TOPLEVEL,
- g_param_spec_boolean ("resize-toplevel",
- P_("Resize toplevel"),
- P_("Whether the expander will resize the toplevel window upon expanding and collapsing"),
+ g_param_spec_boolean ("resize-toplevel", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -395,9 +383,7 @@ gtk_expander_class_init (GtkExpanderClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_CHILD,
- g_param_spec_object ("child",
- P_("Child"),
- P_("The child widget"),
+ g_param_spec_object ("child", NULL, NULL,
GTK_TYPE_WIDGET,
GTK_PARAM_READWRITE));
diff --git a/gtk/gtkfilechooser.c b/gtk/gtkfilechooser.c
index 1df736fd2a..ce153c243b 100644
--- a/gtk/gtkfilechooser.c
+++ b/gtk/gtkfilechooser.c
@@ -83,9 +83,7 @@ gtk_file_chooser_default_init (GtkFileChooserInterface *iface)
* The type of operation that the file chooser is performing.
*/
g_object_interface_install_property (iface,
- g_param_spec_enum ("action",
- P_("Action"),
- P_("The type of operation that the file selector is performing"),
+ g_param_spec_enum ("action", NULL, NULL,
GTK_TYPE_FILE_CHOOSER_ACTION,
GTK_FILE_CHOOSER_ACTION_OPEN,
GTK_PARAM_READWRITE));
@@ -97,9 +95,7 @@ gtk_file_chooser_default_init (GtkFileChooserInterface *iface)
* The current filter for selecting files that are displayed.
*/
g_object_interface_install_property (iface,
- g_param_spec_object ("filter",
- P_("Filter"),
- P_("The current filter for selecting which files are displayed"),
+ g_param_spec_object ("filter", NULL, NULL,
GTK_TYPE_FILE_FILTER,
GTK_PARAM_READWRITE));
@@ -109,9 +105,7 @@ gtk_file_chooser_default_init (GtkFileChooserInterface *iface)
* Whether to allow multiple files to be selected.
*/
g_object_interface_install_property (iface,
- g_param_spec_boolean ("select-multiple",
- P_("Select Multiple"),
- P_("Whether to allow multiple files to be selected"),
+ g_param_spec_boolean ("select-multiple", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE));
@@ -125,9 +119,7 @@ gtk_file_chooser_default_init (GtkFileChooserInterface *iface)
* or may not be updated for later changes.
*/
g_object_interface_install_property (iface,
- g_param_spec_object ("filters",
- P_("Filters"),
- P_("List model of filters"),
+ g_param_spec_object ("filters", NULL, NULL,
G_TYPE_LIST_MODEL,
GTK_PARAM_READABLE));
@@ -141,9 +133,7 @@ gtk_file_chooser_default_init (GtkFileChooserInterface *iface)
* or may not be updated for later changes.
*/
g_object_interface_install_property (iface,
- g_param_spec_object ("shortcut-folders",
- P_("Shortcut Folders"),
- P_("List model of shortcut folders"),
+ g_param_spec_object ("shortcut-folders", NULL, NULL,
G_TYPE_LIST_MODEL,
GTK_PARAM_READABLE));
@@ -154,10 +144,7 @@ gtk_file_chooser_default_init (GtkFileChooserInterface *iface)
* will offer the user to create new folders.
*/
g_object_interface_install_property (iface,
- g_param_spec_boolean ("create-folders",
- P_("Allow folder creation"),
- P_("Whether a file chooser not in open mode "
- "will offer the user to create new folders."),
+ g_param_spec_boolean ("create-folders", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE));
}
diff --git a/gtk/gtkfilechoosernative.c b/gtk/gtkfilechoosernative.c
index af89e65e1a..ea3d2a9cfd 100644
--- a/gtk/gtkfilechoosernative.c
+++ b/gtk/gtkfilechoosernative.c
@@ -772,9 +772,7 @@ gtk_file_chooser_native_class_init (GtkFileChooserNativeClass *class)
* %NULL to use the default text.
*/
native_props[PROP_ACCEPT_LABEL] =
- g_param_spec_string ("accept-label",
- P_("Accept label"),
- P_("The label on the accept button"),
+ g_param_spec_string ("accept-label", NULL, NULL,
NULL,
GTK_PARAM_READWRITE);
@@ -785,9 +783,7 @@ gtk_file_chooser_native_class_init (GtkFileChooserNativeClass *class)
* %NULL to use the default text.
*/
native_props[PROP_CANCEL_LABEL] =
- g_param_spec_string ("cancel-label",
- P_("Cancel label"),
- P_("The label on the cancel button"),
+ g_param_spec_string ("cancel-label", NULL, NULL,
NULL,
GTK_PARAM_READWRITE);
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c
index 34e34734d3..dfe796847c 100644
--- a/gtk/gtkfilechooserwidget.c
+++ b/gtk/gtkfilechooserwidget.c
@@ -7639,16 +7639,12 @@ gtk_file_chooser_widget_class_init (GtkFileChooserWidgetClass *class)
"(i)", i);
g_object_class_install_property (gobject_class, PROP_SEARCH_MODE,
- g_param_spec_boolean ("search-mode",
- P_("Search mode"),
- P_("Search mode"),
+ g_param_spec_boolean ("search-mode", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE));
g_object_class_install_property (gobject_class, PROP_SUBTITLE,
- g_param_spec_string ("subtitle",
- P_("Subtitle"),
- P_("Subtitle"),
+ g_param_spec_string ("subtitle", NULL, NULL,
"",
GTK_PARAM_READABLE));
diff --git a/gtk/gtkfilefilter.c b/gtk/gtkfilefilter.c
index f9c7627615..0fb16d7b5e 100644
--- a/gtk/gtkfilefilter.c
+++ b/gtk/gtkfilefilter.c
@@ -235,9 +235,7 @@ gtk_file_filter_class_init (GtkFileFilterClass *class)
* user interface if there is a selectable list of filters.
*/
props[PROP_NAME] =
- g_param_spec_string ("name",
- P_("Name"),
- P_("The human-readable name for this filter"),
+ g_param_spec_string ("name", NULL, NULL,
NULL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtkfilterlistmodel.c b/gtk/gtkfilterlistmodel.c
index 1c03dfb617..fdf9a4a41e 100644
--- a/gtk/gtkfilterlistmodel.c
+++ b/gtk/gtkfilterlistmodel.c
@@ -557,9 +557,7 @@ gtk_filter_list_model_class_init (GtkFilterListModelClass *class)
* The filter for this model.
*/
properties[PROP_FILTER] =
- g_param_spec_object ("filter",
- P_("Filter"),
- P_("The filter set for this model"),
+ g_param_spec_object ("filter", NULL, NULL,
GTK_TYPE_FILTER,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -569,9 +567,7 @@ gtk_filter_list_model_class_init (GtkFilterListModelClass *class)
* If the model should filter items incrementally.
*/
properties[PROP_INCREMENTAL] =
- g_param_spec_boolean ("incremental",
- P_("Incremental"),
- P_("Filter items incrementally"),
+ g_param_spec_boolean ("incremental", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -581,9 +577,7 @@ gtk_filter_list_model_class_init (GtkFilterListModelClass *class)
* The model being filtered.
*/
properties[PROP_MODEL] =
- g_param_spec_object ("model",
- P_("Model"),
- P_("The model being filtered"),
+ g_param_spec_object ("model", NULL, NULL,
G_TYPE_LIST_MODEL,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -593,9 +587,7 @@ gtk_filter_list_model_class_init (GtkFilterListModelClass *class)
* Number of items not yet filtered.
*/
properties[PROP_PENDING] =
- g_param_spec_uint ("pending",
- P_("Pending"),
- P_("Number of items not yet filtered"),
+ g_param_spec_uint ("pending", NULL, NULL,
0, G_MAXUINT, 0,
GTK_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtkfixedlayout.c b/gtk/gtkfixedlayout.c
index 1cf67c3ba3..63ea38f3ea 100644
--- a/gtk/gtkfixedlayout.c
+++ b/gtk/gtkfixedlayout.c
@@ -159,9 +159,7 @@ gtk_fixed_layout_child_class_init (GtkFixedLayoutChildClass *klass)
* The transform of the child.
*/
child_props[PROP_CHILD_TRANSFORM] =
- g_param_spec_boxed ("transform",
- P_("transform"),
- P_("The transform of a child of a fixed layout"),
+ g_param_spec_boxed ("transform", NULL, NULL,
GSK_TYPE_TRANSFORM,
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS |
diff --git a/gtk/gtkflattenlistmodel.c b/gtk/gtkflattenlistmodel.c
index 74f3b7795a..384f82e081 100644
--- a/gtk/gtkflattenlistmodel.c
+++ b/gtk/gtkflattenlistmodel.c
@@ -405,9 +405,7 @@ gtk_flatten_list_model_class_init (GtkFlattenListModelClass *class)
* The model being flattened.
*/
properties[PROP_MODEL] =
- g_param_spec_object ("model",
- P_("Model"),
- P_("The model being flattened"),
+ g_param_spec_object ("model", NULL, NULL,
G_TYPE_LIST_MODEL,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtkflowbox.c b/gtk/gtkflowbox.c
index a3de9deaaa..2d9e9d9e70 100644
--- a/gtk/gtkflowbox.c
+++ b/gtk/gtkflowbox.c
@@ -530,9 +530,7 @@ gtk_flow_box_child_class_init (GtkFlowBoxChildClass *class)
*/
g_object_class_install_property (object_class,
PROP_CHILD,
- g_param_spec_object ("child",
- P_("Child"),
- P_("The child widget"),
+ g_param_spec_object ("child", NULL, NULL,
GTK_TYPE_WIDGET,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -3608,9 +3606,7 @@ gtk_flow_box_class_init (GtkFlowBoxClass *class)
* The selection mode used by the flow box.
*/
props[PROP_SELECTION_MODE] =
- g_param_spec_enum ("selection-mode",
- P_("Selection mode"),
- P_("The selection mode"),
+ g_param_spec_enum ("selection-mode", NULL, NULL,
GTK_TYPE_SELECTION_MODE,
GTK_SELECTION_SINGLE,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -3622,9 +3618,7 @@ gtk_flow_box_class_init (GtkFlowBoxClass *class)
* click, or require a double-click.
*/
props[PROP_ACTIVATE_ON_SINGLE_CLICK] =
- g_param_spec_boolean ("activate-on-single-click",
- P_("Activate on Single Click"),
- P_("Activate row on a single click"),
+ g_param_spec_boolean ("activate-on-single-click", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -3634,9 +3628,7 @@ gtk_flow_box_class_init (GtkFlowBoxClass *class)
* Whether to accept unpaired release events.
*/
props[PROP_ACCEPT_UNPAIRED_RELEASE] =
- g_param_spec_boolean ("accept-unpaired-release",
- P_("Accept unpaired release"),
- P_("Accept an unpaired release event"),
+ g_param_spec_boolean ("accept-unpaired-release", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -3647,9 +3639,7 @@ gtk_flow_box_class_init (GtkFlowBoxClass *class)
* same size.
*/
props[PROP_HOMOGENEOUS] =
- g_param_spec_boolean ("homogeneous",
- P_("Homogeneous"),
- P_("Whether the children should all be the same size"),
+ g_param_spec_boolean ("homogeneous", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -3664,10 +3654,7 @@ gtk_flow_box_class_init (GtkFlowBoxClass *class)
* for the overall minimum width of the box.
*/
props[PROP_MIN_CHILDREN_PER_LINE] =
- g_param_spec_uint ("min-children-per-line",
- P_("Minimum Children Per Line"),
- P_("The minimum number of children to allocate "
- "consecutively in the given orientation."),
+ g_param_spec_uint ("min-children-per-line", NULL, NULL,
0, G_MAXUINT, 0,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -3678,10 +3665,7 @@ gtk_flow_box_class_init (GtkFlowBoxClass *class)
* in the given orientation.
*/
props[PROP_MAX_CHILDREN_PER_LINE] =
- g_param_spec_uint ("max-children-per-line",
- P_("Maximum Children Per Line"),
- P_("The maximum amount of children to request space for "
- "consecutively in the given orientation."),
+ g_param_spec_uint ("max-children-per-line", NULL, NULL,
1, G_MAXUINT, DEFAULT_MAX_CHILDREN_PER_LINE,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -3691,9 +3675,7 @@ gtk_flow_box_class_init (GtkFlowBoxClass *class)
* The amount of vertical space between two children.
*/
props[PROP_ROW_SPACING] =
- g_param_spec_uint ("row-spacing",
- P_("Vertical spacing"),
- P_("The amount of vertical space between two children"),
+ g_param_spec_uint ("row-spacing", NULL, NULL,
0, G_MAXUINT, 0,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -3703,9 +3685,7 @@ gtk_flow_box_class_init (GtkFlowBoxClass *class)
* The amount of horizontal space between two children.
*/
props[PROP_COLUMN_SPACING] =
- g_param_spec_uint ("column-spacing",
- P_("Horizontal spacing"),
- P_("The amount of horizontal space between two children"),
+ g_param_spec_uint ("column-spacing", NULL, NULL,
0, G_MAXUINT, 0,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtkfontbutton.c b/gtk/gtkfontbutton.c
index 4dea9b09f4..9845c58682 100644
--- a/gtk/gtkfontbutton.c
+++ b/gtk/gtkfontbutton.c
@@ -502,9 +502,7 @@ gtk_font_button_class_init (GtkFontButtonClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_TITLE,
- g_param_spec_string ("title",
- P_("Title"),
- P_("The title of the font chooser dialog"),
+ g_param_spec_string ("title", NULL, NULL,
_("Pick a Font"),
GTK_PARAM_READWRITE));
@@ -515,9 +513,7 @@ gtk_font_button_class_init (GtkFontButtonClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_USE_FONT,
- g_param_spec_boolean ("use-font",
- P_("Use font in label"),
- P_("Whether the label is drawn in the selected font"),
+ g_param_spec_boolean ("use-font", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -528,9 +524,7 @@ gtk_font_button_class_init (GtkFontButtonClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_USE_SIZE,
- g_param_spec_boolean ("use-size",
- P_("Use size in label"),
- P_("Whether the label is drawn with the selected font size"),
+ g_param_spec_boolean ("use-size", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -541,9 +535,7 @@ gtk_font_button_class_init (GtkFontButtonClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_MODAL,
- g_param_spec_boolean ("modal",
- P_("Modal"),
- P_("Whether the dialog is modal"),
+ g_param_spec_boolean ("modal", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
diff --git a/gtk/gtkfontchooser.c b/gtk/gtkfontchooser.c
index 3b01659d28..fb87ed0ca4 100644
--- a/gtk/gtkfontchooser.c
+++ b/gtk/gtkfontchooser.c
@@ -58,9 +58,7 @@ gtk_font_chooser_default_init (GtkFontChooserInterface *iface)
*/
g_object_interface_install_property
(iface,
- g_param_spec_string ("font",
- P_("Font"),
- P_("Font description as a string, e.g. “Sans Italic 12”"),
+ g_param_spec_string ("font", NULL, NULL,
GTK_FONT_CHOOSER_DEFAULT_FONT_NAME,
GTK_PARAM_READWRITE));
@@ -71,9 +69,7 @@ gtk_font_chooser_default_init (GtkFontChooserInterface *iface)
*/
g_object_interface_install_property
(iface,
- g_param_spec_boxed ("font-desc",
- P_("Font description"),
- P_("Font description as a PangoFontDescription struct"),
+ g_param_spec_boxed ("font-desc", NULL, NULL,
PANGO_TYPE_FONT_DESCRIPTION,
GTK_PARAM_READWRITE));
@@ -84,9 +80,7 @@ gtk_font_chooser_default_init (GtkFontChooserInterface *iface)
*/
g_object_interface_install_property
(iface,
- g_param_spec_string ("preview-text",
- P_("Preview text"),
- P_("The text to display in order to demonstrate the selected font"),
+ g_param_spec_string ("preview-text", NULL, NULL,
pango_language_get_sample_string (NULL),
GTK_PARAM_READWRITE));
@@ -97,9 +91,7 @@ gtk_font_chooser_default_init (GtkFontChooserInterface *iface)
*/
g_object_interface_install_property
(iface,
- g_param_spec_boolean ("show-preview-entry",
- P_("Show preview text entry"),
- P_("Whether the preview text entry is shown or not"),
+ g_param_spec_boolean ("show-preview-entry", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -110,9 +102,7 @@ gtk_font_chooser_default_init (GtkFontChooserInterface *iface)
*/
g_object_interface_install_property
(iface,
- g_param_spec_flags ("level",
- P_("Selection level"),
- P_("Whether to select family, face or font"),
+ g_param_spec_flags ("level", NULL, NULL,
GTK_TYPE_FONT_CHOOSER_LEVEL,
GTK_FONT_CHOOSER_LEVEL_FAMILY |
GTK_FONT_CHOOSER_LEVEL_STYLE |
@@ -129,9 +119,7 @@ gtk_font_chooser_default_init (GtkFontChooserInterface *iface)
*/
g_object_interface_install_property
(iface,
- g_param_spec_string ("font-features",
- P_("Font features"),
- P_("Font features as a string"),
+ g_param_spec_string ("font-features", NULL, NULL,
"",
GTK_PARAM_READABLE));
@@ -142,9 +130,7 @@ gtk_font_chooser_default_init (GtkFontChooserInterface *iface)
*/
g_object_interface_install_property
(iface,
- g_param_spec_string ("language",
- P_("Language"),
- P_("Language for which features have been selected"),
+ g_param_spec_string ("language", NULL, NULL,
"",
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
diff --git a/gtk/gtkfontchooserwidget.c b/gtk/gtkfontchooserwidget.c
index 84a4046719..b998867e8a 100644
--- a/gtk/gtkfontchooserwidget.c
+++ b/gtk/gtkfontchooserwidget.c
@@ -890,9 +890,7 @@ gtk_font_chooser_widget_class_init (GtkFontChooserWidgetClass *klass)
* The action will be enabled or disabled depending on whether
* the selected font has any features or axes.
*/
- pspec = g_param_spec_object ("tweak-action",
- P_("The tweak action"),
- P_("The toggle action to switch to the tweak page"),
+ pspec = g_param_spec_object ("tweak-action", NULL, NULL,
G_TYPE_ACTION,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
g_object_class_install_property (gobject_class, PROP_TWEAK_ACTION, pspec);
diff --git a/gtk/gtkframe.c b/gtk/gtkframe.c
index 428ca8be73..1b9b3ef0c1 100644
--- a/gtk/gtkframe.c
+++ b/gtk/gtkframe.c
@@ -166,9 +166,7 @@ gtk_frame_class_init (GtkFrameClass *class)
* Text of the frame's label.
*/
frame_props[PROP_LABEL] =
- g_param_spec_string ("label",
- P_("Label"),
- P_("Text of the frame’s label"),
+ g_param_spec_string ("label", NULL, NULL,
NULL,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -178,9 +176,7 @@ gtk_frame_class_init (GtkFrameClass *class)
* The horizontal alignment of the label.
*/
frame_props[PROP_LABEL_XALIGN] =
- g_param_spec_float ("label-xalign",
- P_("Label xalign"),
- P_("The horizontal alignment of the label"),
+ g_param_spec_float ("label-xalign", NULL, NULL,
0.0, 1.0,
0.0,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -191,9 +187,7 @@ gtk_frame_class_init (GtkFrameClass *class)
* Widget to display in place of the usual frame label.
*/
frame_props[PROP_LABEL_WIDGET] =
- g_param_spec_object ("label-widget",
- P_("Label widget"),
- P_("A widget to display in place of the usual frame label"),
+ g_param_spec_object ("label-widget", NULL, NULL,
GTK_TYPE_WIDGET,
GTK_PARAM_READWRITE);
@@ -203,9 +197,7 @@ gtk_frame_class_init (GtkFrameClass *class)
* The child widget.
*/
frame_props[PROP_CHILD] =
- g_param_spec_object ("child",
- P_("Child"),
- P_("The child widget"),
+ g_param_spec_object ("child", NULL, NULL,
GTK_TYPE_WIDGET,
GTK_PARAM_READWRITE);
diff --git a/gtk/gtkgesture.c b/gtk/gtkgesture.c
index 59fee6bcbf..32756afccc 100644
--- a/gtk/gtkgesture.c
+++ b/gtk/gtkgesture.c
@@ -808,10 +808,7 @@ gtk_gesture_class_init (GtkGestureClass *klass)
*/
g_object_class_install_property (object_class,
PROP_N_POINTS,
- g_param_spec_uint ("n-points",
- P_("Number of points"),
- P_("Number of points needed "
- "to trigger the gesture"),
+ g_param_spec_uint ("n-points", NULL, NULL,
1, G_MAXUINT, 1,
GTK_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY));
diff --git a/gtk/gtkgesturelongpress.c b/gtk/gtkgesturelongpress.c
index ffd36ca3eb..679a09b55f 100644
--- a/gtk/gtkgesturelongpress.c
+++ b/gtk/gtkgesturelongpress.c
@@ -287,9 +287,7 @@ gtk_gesture_long_press_class_init (GtkGestureLongPressClass *klass)
* Factor by which to modify the default timeout.
*/
props[PROP_DELAY_FACTOR] =
- g_param_spec_double ("delay-factor",
- P_("Delay factor"),
- P_("Factor by which to modify the default timeout"),
+ g_param_spec_double ("delay-factor", NULL, NULL,
0.5, 2.0, 1.0,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtkgesturepan.c b/gtk/gtkgesturepan.c
index f97b138877..0c9e7699b3 100644
--- a/gtk/gtkgesturepan.c
+++ b/gtk/gtkgesturepan.c
@@ -230,9 +230,7 @@ gtk_gesture_pan_class_init (GtkGesturePanClass *klass)
*/
g_object_class_install_property (object_class,
PROP_ORIENTATION,
- g_param_spec_enum ("orientation",
- P_("Orientation"),
- P_("Allowed orientations"),
+ g_param_spec_enum ("orientation", NULL, NULL,
GTK_TYPE_ORIENTATION,
GTK_ORIENTATION_HORIZONTAL,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
diff --git a/gtk/gtkgesturesingle.c b/gtk/gtkgesturesingle.c
index c9fa73e747..52340b74c8 100644
--- a/gtk/gtkgesturesingle.c
+++ b/gtk/gtkgesturesingle.c
@@ -265,9 +265,7 @@ gtk_gesture_single_class_init (GtkGestureSingleClass *klass)
* Whether the gesture handles only touch events.
*/
properties[PROP_TOUCH_ONLY] =
- g_param_spec_boolean ("touch-only",
- P_("Handle only touch events"),
- P_("Whether the gesture handles only touch events"),
+ g_param_spec_boolean ("touch-only", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -279,9 +277,7 @@ gtk_gesture_single_class_init (GtkGestureSingleClass *klass)
* Exclusive gestures only listen to pointer and pointer emulated events.
*/
properties[PROP_EXCLUSIVE] =
- g_param_spec_boolean ("exclusive",
- P_("Whether the gesture is exclusive"),
- P_("Whether the gesture is exclusive"),
+ g_param_spec_boolean ("exclusive", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -291,9 +287,7 @@ gtk_gesture_single_class_init (GtkGestureSingleClass *klass)
* Mouse button number to listen to, or 0 to listen for any button.
*/
properties[PROP_BUTTON] =
- g_param_spec_uint ("button",
- P_("Button number"),
- P_("Button number to listen to"),
+ g_param_spec_uint ("button", NULL, NULL,
0, G_MAXUINT,
GDK_BUTTON_PRIMARY,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtkglarea.c b/gtk/gtkglarea.c
index af4d46ec91..c70de8b036 100644
--- a/gtk/gtkglarea.c
+++ b/gtk/gtkglarea.c
@@ -798,9 +798,7 @@ gtk_gl_area_class_init (GtkGLAreaClass *klass)
* depth, etc), use render buffers.
*/
obj_props[PROP_CONTEXT] =
- g_param_spec_object ("context",
- P_("Context"),
- P_("The GL context"),
+ g_param_spec_object ("context", NULL, NULL,
GDK_TYPE_GL_CONTEXT,
G_PARAM_READABLE |
G_PARAM_STATIC_STRINGS);
@@ -820,9 +818,7 @@ gtk_gl_area_class_init (GtkGLAreaClass *klass)
* to redraw.
*/
obj_props[PROP_AUTO_RENDER] =
- g_param_spec_boolean ("auto-render",
- P_("Auto render"),
- P_("Whether the GtkGLArea renders on each redraw"),
+ g_param_spec_boolean ("auto-render", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS |
@@ -839,9 +835,7 @@ gtk_gl_area_class_init (GtkGLAreaClass *klass)
* in your `GtkGLArea::render` handler.
*/
obj_props[PROP_HAS_DEPTH_BUFFER] =
- g_param_spec_boolean ("has-depth-buffer",
- P_("Has depth buffer"),
- P_("Whether a depth buffer is allocated"),
+ g_param_spec_boolean ("has-depth-buffer", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS |
@@ -854,9 +848,7 @@ gtk_gl_area_class_init (GtkGLAreaClass *klass)
* target framebuffer.
*/
obj_props[PROP_HAS_STENCIL_BUFFER] =
- g_param_spec_boolean ("has-stencil-buffer",
- P_("Has stencil buffer"),
- P_("Whether a stencil buffer is allocated"),
+ g_param_spec_boolean ("has-stencil-buffer", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS |
@@ -869,9 +861,7 @@ gtk_gl_area_class_init (GtkGLAreaClass *klass)
* OpenGL ES instead of OpenGL.
*/
obj_props[PROP_USE_ES] =
- g_param_spec_boolean ("use-es",
- P_("Use OpenGL ES"),
- P_("Whether the context uses OpenGL or OpenGL ES"),
+ g_param_spec_boolean ("use-es", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS |
diff --git a/gtk/gtkgrid.c b/gtk/gtkgrid.c
index f23f7ba929..f5f48da9a5 100644
--- a/gtk/gtkgrid.c
+++ b/gtk/gtkgrid.c
@@ -430,9 +430,7 @@ gtk_grid_class_init (GtkGridClass *class)
* The amount of space between two consecutive rows.
*/
obj_properties[PROP_ROW_SPACING] =
- g_param_spec_int ("row-spacing",
- P_("Row spacing"),
- P_("The amount of space between two consecutive rows"),
+ g_param_spec_int ("row-spacing", NULL, NULL,
0, G_MAXINT16, 0,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -442,9 +440,7 @@ gtk_grid_class_init (GtkGridClass *class)
* The amount of space between two consecutive columns.
*/
obj_properties[PROP_COLUMN_SPACING] =
- g_param_spec_int ("column-spacing",
- P_("Column spacing"),
- P_("The amount of space between two consecutive columns"),
+ g_param_spec_int ("column-spacing", NULL, NULL,
0, G_MAXINT16, 0,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -454,9 +450,7 @@ gtk_grid_class_init (GtkGridClass *class)
* If %TRUE, the rows are all the same height.
*/
obj_properties[PROP_ROW_HOMOGENEOUS] =
- g_param_spec_boolean ("row-homogeneous",
- P_("Row Homogeneous"),
- P_("If TRUE, the rows are all the same height"),
+ g_param_spec_boolean ("row-homogeneous", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -466,9 +460,7 @@ gtk_grid_class_init (GtkGridClass *class)
* If %TRUE, the columns are all the same width.
*/
obj_properties[PROP_COLUMN_HOMOGENEOUS] =
- g_param_spec_boolean ("column-homogeneous",
- P_("Column Homogeneous"),
- P_("If TRUE, the columns are all the same width"),
+ g_param_spec_boolean ("column-homogeneous", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -478,9 +470,7 @@ gtk_grid_class_init (GtkGridClass *class)
* The row to align to the baseline when valign is %GTK_ALIGN_BASELINE.
*/
obj_properties[PROP_BASELINE_ROW] =
- g_param_spec_int ("baseline-row",
- P_("Baseline Row"),
- P_("The row to align the to the baseline when valign is GTK_ALIGN_BASELINE"),
+ g_param_spec_int ("baseline-row", NULL, NULL,
0, G_MAXINT, 0,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtkgridlayout.c b/gtk/gtkgridlayout.c
index c9b6195abe..d449f43da1 100644
--- a/gtk/gtkgridlayout.c
+++ b/gtk/gtkgridlayout.c
@@ -164,9 +164,7 @@ gtk_grid_layout_child_class_init (GtkGridLayoutChildClass *klass)
* The column to place the child in.
*/
child_props[PROP_CHILD_COLUMN] =
- g_param_spec_int ("column",
- P_("Column"),
- P_("The column to place the child in"),
+ g_param_spec_int ("column", NULL, NULL,
G_MININT, G_MAXINT, 0,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -176,9 +174,7 @@ gtk_grid_layout_child_class_init (GtkGridLayoutChildClass *klass)
* The row to place the child in.
*/
child_props[PROP_CHILD_ROW] =
- g_param_spec_int ("row",
- P_("Row"),
- P_("The row to place the child in"),
+ g_param_spec_int ("row", NULL, NULL,
G_MININT, G_MAXINT, 0,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -188,9 +184,7 @@ gtk_grid_layout_child_class_init (GtkGridLayoutChildClass *klass)
* The number of columns the child spans to.
*/
child_props[PROP_CHILD_COLUMN_SPAN] =
- g_param_spec_int ("column-span",
- P_("Column span"),
- P_("The number of columns that a child spans"),
+ g_param_spec_int ("column-span", NULL, NULL,
1, G_MAXINT, 1,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -200,9 +194,7 @@ gtk_grid_layout_child_class_init (GtkGridLayoutChildClass *klass)
* The number of rows the child spans to.
*/
child_props[PROP_CHILD_ROW_SPAN] =
- g_param_spec_int ("row-span",
- P_("Row span"),
- P_("The number of rows that a child spans"),
+ g_param_spec_int ("row-span", NULL, NULL,
1, G_MAXINT, 1,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -1666,9 +1658,7 @@ gtk_grid_layout_class_init (GtkGridLayoutClass *klass)
* The amount of space between to consecutive rows.
*/
layout_props[PROP_ROW_SPACING] =
- g_param_spec_int ("row-spacing",
- P_("Row spacing"),
- P_("The amount of space between two consecutive rows"),
+ g_param_spec_int ("row-spacing", NULL, NULL,
0, G_MAXINT16, 0,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -1678,9 +1668,7 @@ gtk_grid_layout_class_init (GtkGridLayoutClass *klass)
* The amount of space between to consecutive columns.
*/
layout_props[PROP_COLUMN_SPACING] =
- g_param_spec_int ("column-spacing",
- P_("Column spacing"),
- P_("The amount of space between two consecutive columns"),
+ g_param_spec_int ("column-spacing", NULL, NULL,
0, G_MAXINT16, 0,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -1690,9 +1678,7 @@ gtk_grid_layout_class_init (GtkGridLayoutClass *klass)
* Whether all the rows in the grid have the same height.
*/
layout_props[PROP_ROW_HOMOGENEOUS] =
- g_param_spec_boolean ("row-homogeneous",
- P_("Row Homogeneous"),
- P_("If TRUE, the rows are all the same height"),
+ g_param_spec_boolean ("row-homogeneous", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -1702,9 +1688,7 @@ gtk_grid_layout_class_init (GtkGridLayoutClass *klass)
* Whether all the columns in the grid have the same width.
*/
layout_props[PROP_COLUMN_HOMOGENEOUS] =
- g_param_spec_boolean ("column-homogeneous",
- P_("Column Homogeneous"),
- P_("If TRUE, the columns are all the same width"),
+ g_param_spec_boolean ("column-homogeneous", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -1715,9 +1699,7 @@ gtk_grid_layout_class_init (GtkGridLayoutClass *klass)
* to %GTK_ALIGN_BASELINE.
*/
layout_props[PROP_BASELINE_ROW] =
- g_param_spec_int ("baseline-row",
- P_("Baseline Row"),
- P_("The row to align the to the baseline when valign is GTK_ALIGN_BASELINE"),
+ g_param_spec_int ("baseline-row", NULL, NULL,
0, G_MAXINT, 0,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtkgridview.c b/gtk/gtkgridview.c
index 9b903dc5e0..aab1704a09 100644
--- a/gtk/gtkgridview.c
+++ b/gtk/gtkgridview.c
@@ -1054,9 +1054,7 @@ gtk_grid_view_class_init (GtkGridViewClass *klass)
* Factory for populating list items.
*/
properties[PROP_FACTORY] =
- g_param_spec_object ("factory",
- P_("Factory"),
- P_("Factory for populating list items"),
+ g_param_spec_object ("factory", NULL, NULL,
GTK_TYPE_LIST_ITEM_FACTORY,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -1070,9 +1068,7 @@ gtk_grid_view_class_init (GtkGridViewClass *klass)
* that value is used instead.
*/
properties[PROP_MAX_COLUMNS] =
- g_param_spec_uint ("max-columns",
- P_("Max columns"),
- P_("Maximum number of columns per row"),
+ g_param_spec_uint ("max-columns", NULL, NULL,
1, G_MAXUINT, DEFAULT_MAX_COLUMNS,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -1082,9 +1078,7 @@ gtk_grid_view_class_init (GtkGridViewClass *klass)
* Minimum number of columns per row.
*/
properties[PROP_MIN_COLUMNS] =
- g_param_spec_uint ("min-columns",
- P_("Min columns"),
- P_("Minimum number of columns per row"),
+ g_param_spec_uint ("min-columns", NULL, NULL,
1, G_MAXUINT, 1,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -1094,9 +1088,7 @@ gtk_grid_view_class_init (GtkGridViewClass *klass)
* Model for the items displayed.
*/
properties[PROP_MODEL] =
- g_param_spec_object ("model",
- P_("Model"),
- P_("Model for the items displayed"),
+ g_param_spec_object ("model", NULL, NULL,
GTK_TYPE_SELECTION_MODEL,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -1106,9 +1098,7 @@ gtk_grid_view_class_init (GtkGridViewClass *klass)
* Activate rows on single click and select them on hover.
*/
properties[PROP_SINGLE_CLICK_ACTIVATE] =
- g_param_spec_boolean ("single-click-activate",
- P_("Single click activate"),
- P_("Activate rows on single click"),
+ g_param_spec_boolean ("single-click-activate", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -1118,9 +1108,7 @@ gtk_grid_view_class_init (GtkGridViewClass *klass)
* Allow rubberband selection.
*/
properties[PROP_ENABLE_RUBBERBAND] =
- g_param_spec_boolean ("enable-rubberband",
- P_("Enable rubberband selection"),
- P_("Allow selecting items by dragging with the mouse"),
+ g_param_spec_boolean ("enable-rubberband", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtkheaderbar.c b/gtk/gtkheaderbar.c
index ebf372a1ae..ec66d392bc 100644
--- a/gtk/gtkheaderbar.c
+++ b/gtk/gtkheaderbar.c
@@ -565,9 +565,7 @@ gtk_header_bar_class_init (GtkHeaderBarClass *class)
widget_class->get_request_mode = gtk_header_bar_get_request_mode;
header_bar_props[PROP_TITLE_WIDGET] =
- g_param_spec_object ("title-widget",
- P_("Title Widget"),
- P_("Title widget to display"),
+ g_param_spec_object ("title-widget", NULL, NULL,
GTK_TYPE_WIDGET,
G_PARAM_READWRITE|G_PARAM_STATIC_STRINGS);
@@ -582,9 +580,7 @@ gtk_header_bar_class_init (GtkHeaderBarClass *class)
* be shown if the window can't be closed).
*/
header_bar_props[PROP_SHOW_TITLE_BUTTONS] =
- g_param_spec_boolean ("show-title-buttons",
- P_("Show title buttons"),
- P_("Whether to show title buttons"),
+ g_param_spec_boolean ("show-title-buttons", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -597,9 +593,7 @@ gtk_header_bar_class_init (GtkHeaderBarClass *class)
* [property@Gtk.Settings:gtk-decoration-layout] setting is used.
*/
header_bar_props[PROP_DECORATION_LAYOUT] =
- g_param_spec_string ("decoration-layout",
- P_("Decoration Layout"),
- P_("The layout for window decorations"),
+ g_param_spec_string ("decoration-layout", NULL, NULL,
NULL,
GTK_PARAM_READWRITE);
diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c
index 5c88718356..4f0618ab04 100644
--- a/gtk/gtkicontheme.c
+++ b/gtk/gtkicontheme.c
@@ -988,9 +988,7 @@ gtk_icon_theme_class_init (GtkIconThemeClass *klass)
* The display that this icon theme object is attached to.
*/
props[PROP_DISPLAY] =
- g_param_spec_object ("display",
- P_("Display"),
- P_("Display"),
+ g_param_spec_object ("display", NULL, NULL,
GDK_TYPE_DISPLAY,
G_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -1000,9 +998,7 @@ gtk_icon_theme_class_init (GtkIconThemeClass *klass)
* The icon names that are supported by the icon theme.
*/
props[PROP_ICON_NAMES] =
- g_param_spec_boxed ("icon-names",
- P_("Supported icon names"),
- P_("Supported icon names"),
+ g_param_spec_boxed ("icon-names", NULL, NULL,
G_TYPE_STRV,
GTK_PARAM_READABLE);
@@ -1018,9 +1014,7 @@ gtk_icon_theme_class_init (GtkIconThemeClass *klass)
* to be extended by adding icons in the user’s home directory.)
*/
props[PROP_SEARCH_PATH] =
- g_param_spec_boxed ("search-path",
- P_("Search path"),
- P_("Search path"),
+ g_param_spec_boxed ("search-path", NULL, NULL,
G_TYPE_STRV,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -1037,9 +1031,7 @@ gtk_icon_theme_class_init (GtkIconThemeClass *klass)
* of a subdirectory are also considered as ultimate fallback.
*/
props[PROP_RESOURCE_PATH] =
- g_param_spec_boxed ("resource-path",
- P_("Resource path"),
- P_("Resource path"),
+ g_param_spec_boxed ("resource-path", NULL, NULL,
G_TYPE_STRV,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -1053,9 +1045,7 @@ gtk_icon_theme_class_init (GtkIconThemeClass *klass)
* object associated to the display of the icontheme object.
*/
props[PROP_THEME_NAME] =
- g_param_spec_string ("theme-name",
- P_("Theme name"),
- P_("Theme name"),
+ g_param_spec_string ("theme-name", NULL, NULL,
NULL,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -3625,9 +3615,7 @@ gtk_icon_paintable_class_init (GtkIconPaintableClass *klass)
* The file representing the icon, if any.
*/
g_object_class_install_property (gobject_class, PROP_FILE,
- g_param_spec_object ("file",
- P_("file"),
- P_("The file representing the icon"),
+ g_param_spec_object ("file", NULL, NULL,
G_TYPE_FILE,
G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NICK));
@@ -3637,9 +3625,7 @@ gtk_icon_paintable_class_init (GtkIconPaintableClass *klass)
* The icon name that was chosen during lookup.
*/
g_object_class_install_property (gobject_class, PROP_ICON_NAME,
- g_param_spec_string ("icon-name",
- P_("Icon name"),
- P_("The icon name chosen during lookup"),
+ g_param_spec_string ("icon-name", NULL, NULL,
NULL,
G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NICK));
@@ -3649,9 +3635,7 @@ gtk_icon_paintable_class_init (GtkIconPaintableClass *klass)
* Whether the icon is symbolic or not.
*/
g_object_class_install_property (gobject_class, PROP_IS_SYMBOLIC,
- g_param_spec_boolean ("is-symbolic",
- P_("Is symbolic"),
- P_("If the icon is symbolic"),
+ g_param_spec_boolean ("is-symbolic", NULL, NULL,
FALSE,
G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NICK));
}
diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c
index 41f824610d..c647b16c9c 100644
--- a/gtk/gtkiconview.c
+++ b/gtk/gtkiconview.c
@@ -356,9 +356,7 @@ gtk_icon_view_class_init (GtkIconViewClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_SELECTION_MODE,
- g_param_spec_enum ("selection-mode",
- P_("Selection mode"),
- P_("The selection mode"),
+ g_param_spec_enum ("selection-mode", NULL, NULL,
GTK_TYPE_SELECTION_MODE,
GTK_SELECTION_SINGLE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -373,9 +371,7 @@ gtk_icon_view_class_init (GtkIconViewClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_PIXBUF_COLUMN,
- g_param_spec_int ("pixbuf-column",
- P_("Pixbuf column"),
- P_("Model column used to retrieve the icon pixbuf from"),
+ g_param_spec_int ("pixbuf-column", NULL, NULL,
-1, G_MAXINT, -1,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -389,9 +385,7 @@ gtk_icon_view_class_init (GtkIconViewClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_TEXT_COLUMN,
- g_param_spec_int ("text-column",
- P_("Text column"),
- P_("Model column used to retrieve the text from"),
+ g_param_spec_int ("text-column", NULL, NULL,
-1, G_MAXINT, -1,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -407,17 +401,13 @@ gtk_icon_view_class_init (GtkIconViewClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_MARKUP_COLUMN,
- g_param_spec_int ("markup-column",
- P_("Markup column"),
- P_("Model column used to retrieve the text if using Pango markup"),
+ g_param_spec_int ("markup-column", NULL, NULL,
-1, G_MAXINT, -1,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
g_object_class_install_property (gobject_class,
PROP_MODEL,
- g_param_spec_object ("model",
- P_("Icon View Model"),
- P_("The model for the icon view"),
+ g_param_spec_object ("model", NULL, NULL,
GTK_TYPE_TREE_MODEL,
GTK_PARAM_READWRITE));
@@ -430,9 +420,7 @@ gtk_icon_view_class_init (GtkIconViewClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_COLUMNS,
- g_param_spec_int ("columns",
- P_("Number of columns"),
- P_("Number of columns to display"),
+ g_param_spec_int ("columns", NULL, NULL,
-1, G_MAXINT, -1,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -446,9 +434,7 @@ gtk_icon_view_class_init (GtkIconViewClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_ITEM_WIDTH,
- g_param_spec_int ("item-width",
- P_("Width for each item"),
- P_("The width used for each item"),
+ g_param_spec_int ("item-width", NULL, NULL,
-1, G_MAXINT, -1,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -460,9 +446,7 @@ gtk_icon_view_class_init (GtkIconViewClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_SPACING,
- g_param_spec_int ("spacing",
- P_("Spacing"),
- P_("Space which is inserted between cells of an item"),
+ g_param_spec_int ("spacing", NULL, NULL,
0, G_MAXINT, 0,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -474,9 +458,7 @@ gtk_icon_view_class_init (GtkIconViewClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_ROW_SPACING,
- g_param_spec_int ("row-spacing",
- P_("Row Spacing"),
- P_("Space which is inserted between grid rows"),
+ g_param_spec_int ("row-spacing", NULL, NULL,
0, G_MAXINT, 6,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -488,9 +470,7 @@ gtk_icon_view_class_init (GtkIconViewClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_COLUMN_SPACING,
- g_param_spec_int ("column-spacing",
- P_("Column Spacing"),
- P_("Space which is inserted between grid columns"),
+ g_param_spec_int ("column-spacing", NULL, NULL,
0, G_MAXINT, 6,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -502,9 +482,7 @@ gtk_icon_view_class_init (GtkIconViewClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_MARGIN,
- g_param_spec_int ("margin",
- P_("Margin"),
- P_("Space which is inserted at the edges of the icon view"),
+ g_param_spec_int ("margin", NULL, NULL,
0, G_MAXINT, 6,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -516,9 +494,7 @@ gtk_icon_view_class_init (GtkIconViewClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_ITEM_ORIENTATION,
- g_param_spec_enum ("item-orientation",
- P_("Item Orientation"),
- P_("How the text and icon of each item are positioned relative to each other"),
+ g_param_spec_enum ("item-orientation", NULL, NULL,
GTK_TYPE_ORIENTATION,
GTK_ORIENTATION_VERTICAL,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -531,17 +507,13 @@ gtk_icon_view_class_init (GtkIconViewClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_REORDERABLE,
- g_param_spec_boolean ("reorderable",
- P_("Reorderable"),
- P_("View is reorderable"),
+ g_param_spec_boolean ("reorderable", NULL, NULL,
FALSE,
G_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
g_object_class_install_property (gobject_class,
PROP_TOOLTIP_COLUMN,
- g_param_spec_int ("tooltip-column",
- P_("Tooltip Column"),
- P_("The column in the model containing the tooltip texts for the items"),
+ g_param_spec_int ("tooltip-column", NULL, NULL,
-1,
G_MAXINT,
-1,
@@ -555,9 +527,7 @@ gtk_icon_view_class_init (GtkIconViewClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_ITEM_PADDING,
- g_param_spec_int ("item-padding",
- P_("Item Padding"),
- P_("Padding around icon view items"),
+ g_param_spec_int ("item-padding", NULL, NULL,
0, G_MAXINT, 6,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -571,9 +541,7 @@ gtk_icon_view_class_init (GtkIconViewClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_CELL_AREA,
- g_param_spec_object ("cell-area",
- P_("Cell Area"),
- P_("The GtkCellArea used to layout cells"),
+ g_param_spec_object ("cell-area", NULL, NULL,
GTK_TYPE_CELL_AREA,
GTK_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
@@ -585,9 +553,7 @@ gtk_icon_view_class_init (GtkIconViewClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_ACTIVATE_ON_SINGLE_CLICK,
- g_param_spec_boolean ("activate-on-single-click",
- P_("Activate on Single Click"),
- P_("Activate row on a single click"),
+ g_param_spec_boolean ("activate-on-single-click", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
diff --git a/gtk/gtkimage.c b/gtk/gtkimage.c
index 6f82934e0c..74d8a0b52f 100644
--- a/gtk/gtkimage.c
+++ b/gtk/gtkimage.c
@@ -174,9 +174,7 @@ gtk_image_class_init (GtkImageClass *class)
* The `GdkPaintable` to display.
*/
image_props[PROP_PAINTABLE] =
- g_param_spec_object ("paintable",
- P_("Paintable"),
- P_("A GdkPaintable to display"),
+ g_param_spec_object ("paintable", NULL, NULL,
GDK_TYPE_PAINTABLE,
GTK_PARAM_READWRITE);
@@ -186,9 +184,7 @@ gtk_image_class_init (GtkImageClass *class)
* The `GFile to display.
*/
image_props[PROP_FILE] =
- g_param_spec_string ("file",
- P_("Filename"),
- P_("Filename to load and display"),
+ g_param_spec_string ("file", NULL, NULL,
NULL,
GTK_PARAM_READWRITE);
@@ -198,9 +194,7 @@ gtk_image_class_init (GtkImageClass *class)
* The symbolic size to display icons at.
*/
image_props[PROP_ICON_SIZE] =
- g_param_spec_enum ("icon-size",
- P_("Icon size"),
- P_("Symbolic size to use for icon set or named icon"),
+ g_param_spec_enum ("icon-size", NULL, NULL,
GTK_TYPE_ICON_SIZE,
GTK_ICON_SIZE_INHERIT,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -215,9 +209,7 @@ gtk_image_class_init (GtkImageClass *class)
* `GTK_IMAGE_ICON_NAME`.
*/
image_props[PROP_PIXEL_SIZE] =
- g_param_spec_int ("pixel-size",
- P_("Pixel size"),
- P_("Pixel size to use for named icon"),
+ g_param_spec_int ("pixel-size", NULL, NULL,
-1, G_MAXINT,
-1,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -230,9 +222,7 @@ gtk_image_class_init (GtkImageClass *class)
* If the icon theme is changed, the image will be updated automatically.
*/
image_props[PROP_ICON_NAME] =
- g_param_spec_string ("icon-name",
- P_("Icon Name"),
- P_("The name of the icon from the icon theme"),
+ g_param_spec_string ("icon-name", NULL, NULL,
NULL,
GTK_PARAM_READWRITE);
@@ -245,9 +235,7 @@ gtk_image_class_init (GtkImageClass *class)
* automatically.
*/
image_props[PROP_GICON] =
- g_param_spec_object ("gicon",
- P_("Icon"),
- P_("The GIcon being displayed"),
+ g_param_spec_object ("gicon", NULL, NULL,
G_TYPE_ICON,
GTK_PARAM_READWRITE);
@@ -257,9 +245,7 @@ gtk_image_class_init (GtkImageClass *class)
* A path to a resource file to display.
*/
image_props[PROP_RESOURCE] =
- g_param_spec_string ("resource",
- P_("Resource"),
- P_("The resource path being displayed"),
+ g_param_spec_string ("resource", NULL, NULL,
NULL,
GTK_PARAM_READWRITE);
@@ -269,9 +255,7 @@ gtk_image_class_init (GtkImageClass *class)
* The representation being used for image data.
*/
image_props[PROP_STORAGE_TYPE] =
- g_param_spec_enum ("storage-type",
- P_("Storage type"),
- P_("The representation being used for image data"),
+ g_param_spec_enum ("storage-type", NULL, NULL,
GTK_TYPE_IMAGE_TYPE,
GTK_IMAGE_EMPTY,
GTK_PARAM_READABLE);
@@ -286,9 +270,7 @@ gtk_image_class_init (GtkImageClass *class)
* %GTK_IMAGE_ICON_NAME and %GTK_IMAGE_GICON.
*/
image_props[PROP_USE_FALLBACK] =
- g_param_spec_boolean ("use-fallback",
- P_("Use Fallback"),
- P_("Whether to use icon names fallback"),
+ g_param_spec_boolean ("use-fallback", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtkimcontext.c b/gtk/gtkimcontext.c
index 7fd23f8da6..a46f5d7571 100644
--- a/gtk/gtkimcontext.c
+++ b/gtk/gtkimcontext.c
@@ -334,9 +334,7 @@ gtk_im_context_class_init (GtkIMContextClass *klass)
* methods to adjust their behaviour.
*/
properties[PROP_INPUT_PURPOSE] =
- g_param_spec_enum ("input-purpose",
- P_("Purpose"),
- P_("Purpose of the text field"),
+ g_param_spec_enum ("input-purpose", NULL, NULL,
GTK_TYPE_INPUT_PURPOSE,
GTK_INPUT_PURPOSE_FREE_FORM,
G_PARAM_READWRITE|G_PARAM_STATIC_STRINGS|G_PARAM_EXPLICIT_NOTIFY);
@@ -348,9 +346,7 @@ gtk_im_context_class_init (GtkIMContextClass *klass)
* their behaviour.
*/
properties[PROP_INPUT_HINTS] =
- g_param_spec_flags ("input-hints",
- P_("hints"),
- P_("Hints for the text field behaviour"),
+ g_param_spec_flags ("input-hints", NULL, NULL,
GTK_TYPE_INPUT_HINTS,
GTK_INPUT_HINT_NONE,
G_PARAM_READWRITE|G_PARAM_STATIC_STRINGS|G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtkinfobar.c b/gtk/gtkinfobar.c
index 7eeaf88b7b..2cbfc328f6 100644
--- a/gtk/gtkinfobar.c
+++ b/gtk/gtkinfobar.c
@@ -353,9 +353,7 @@ gtk_info_bar_class_init (GtkInfoBarClass *klass)
* The type may be used to determine the appearance of the info bar.
*/
props[PROP_MESSAGE_TYPE] =
- g_param_spec_enum ("message-type",
- P_("Message Type"),
- P_("The type of message"),
+ g_param_spec_enum ("message-type", NULL, NULL,
GTK_TYPE_MESSAGE_TYPE,
GTK_MESSAGE_INFO,
GTK_PARAM_READWRITE|G_PARAM_CONSTRUCT|G_PARAM_EXPLICIT_NOTIFY);
@@ -366,9 +364,7 @@ gtk_info_bar_class_init (GtkInfoBarClass *klass)
* Whether to include a standard close button.
*/
props[PROP_SHOW_CLOSE_BUTTON] =
- g_param_spec_boolean ("show-close-button",
- P_("Show Close Button"),
- P_("Whether to include a standard close button"),
+ g_param_spec_boolean ("show-close-button", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_CONSTRUCT|G_PARAM_EXPLICIT_NOTIFY);
@@ -378,9 +374,7 @@ gtk_info_bar_class_init (GtkInfoBarClass *klass)
* Whether the info bar shows its contents.
*/
props[PROP_REVEALED] =
- g_param_spec_boolean ("revealed",
- P_("Reveal"),
- P_("Controls whether the info bar shows its contents or not"),
+ g_param_spec_boolean ("revealed", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtkintl.h b/gtk/gtkintl.h
index 4bf66606b8..a1a6f87817 100644
--- a/gtk/gtkintl.h
+++ b/gtk/gtkintl.h
@@ -3,8 +3,6 @@
#include <glib/gi18n-lib.h>
-#define P_(String) g_dgettext (GETTEXT_PACKAGE "-properties", String)
-
/* not really I18N-related, but also a string marker macro */
#define I_(string) g_intern_static_string (string)
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index ac25549370..90d4891411 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -2292,9 +2292,7 @@ gtk_label_class_init (GtkLabelClass *class)
* for the label to display them.
*/
label_props[PROP_LABEL] =
- g_param_spec_string ("label",
- P_("Label"),
- P_("The text of the label"),
+ g_param_spec_string ("label", NULL, NULL,
"",
GTK_PARAM_READWRITE);
@@ -2304,9 +2302,7 @@ gtk_label_class_init (GtkLabelClass *class)
* A list of style attributes to apply to the text of the label.
*/
label_props[PROP_ATTRIBUTES] =
- g_param_spec_boxed ("attributes",
- P_("Attributes"),
- P_("A list of style attributes to apply to the text of the label"),
+ g_param_spec_boxed ("attributes", NULL, NULL,
PANGO_TYPE_ATTR_LIST,
GTK_PARAM_READWRITE);
@@ -2318,9 +2314,7 @@ gtk_label_class_init (GtkLabelClass *class)
* See [func@Pango.parse_markup].
*/
label_props[PROP_USE_MARKUP] =
- g_param_spec_boolean ("use-markup",
- P_("Use markup"),
- P_("The text of the label includes XML markup. See pango_parse_markup()"),
+ g_param_spec_boolean ("use-markup", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -2330,9 +2324,7 @@ gtk_label_class_init (GtkLabelClass *class)
* %TRUE if the text of the label indicates a mnemonic with _.
*/
label_props[PROP_USE_UNDERLINE] =
- g_param_spec_boolean ("use-underline",
- P_("Use underline"),
- P_("If set, an underline in the text indicates the next character should be used for the mnemonic accelerator key"),
+ g_param_spec_boolean ("use-underline", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -2345,9 +2337,7 @@ gtk_label_class_init (GtkLabelClass *class)
* See [property@Gtk.Label:xalign] for that.
*/
label_props[PROP_JUSTIFY] =
- g_param_spec_enum ("justify",
- P_("Justification"),
- P_("The alignment of the lines in the text of the label relative to each other. This does NOT affect the alignment of the label within its allocation. See GtkLabel:xalign for that"),
+ g_param_spec_enum ("justify", NULL, NULL,
GTK_TYPE_JUSTIFICATION,
GTK_JUSTIFY_LEFT,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -2361,9 +2351,7 @@ gtk_label_class_init (GtkLabelClass *class)
* labels size allocation is positioned in the space available for the label.
*/
label_props[PROP_XALIGN] =
- g_param_spec_float ("xalign",
- P_("X align"),
- P_("The horizontal alignment, from 0 (left) to 1 (right). Reversed for RTL layouts."),
+ g_param_spec_float ("xalign", NULL, NULL,
0.0, 1.0,
0.5,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -2377,9 +2365,7 @@ gtk_label_class_init (GtkLabelClass *class)
* labels size allocation is positioned in the space available for the label.
*/
label_props[PROP_YALIGN] =
- g_param_spec_float ("yalign",
- P_("Y align"),
- P_("The vertical alignment, from 0 (top) to 1 (bottom)"),
+ g_param_spec_float ("yalign", NULL, NULL,
0.0, 1.0,
0.5,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -2390,9 +2376,7 @@ gtk_label_class_init (GtkLabelClass *class)
* %TRUE if the label text will wrap if it gets too wide.
*/
label_props[PROP_WRAP] =
- g_param_spec_boolean ("wrap",
- P_("Line wrap"),
- P_("If set, wrap lines if the text becomes too wide"),
+ g_param_spec_boolean ("wrap", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -2409,9 +2393,7 @@ gtk_label_class_init (GtkLabelClass *class)
* property.
*/
label_props[PROP_WRAP_MODE] =
- g_param_spec_enum ("wrap-mode",
- P_("Line wrap mode"),
- P_("If wrap is set, controls how linewrapping is done"),
+ g_param_spec_enum ("wrap-mode", NULL, NULL,
PANGO_TYPE_WRAP_MODE,
PANGO_WRAP_WORD,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -2430,9 +2412,7 @@ gtk_label_class_init (GtkLabelClass *class)
* Since: 4.6
*/
label_props[PROP_NATURAL_WRAP_MODE] =
- g_param_spec_enum ("natural-wrap-mode",
- P_("Natural wrap mode"),
- P_("If wrap is set, controls linewrapping for natural size requests"),
+ g_param_spec_enum ("natural-wrap-mode", NULL, NULL,
GTK_TYPE_NATURAL_WRAP_MODE,
GTK_NATURAL_WRAP_INHERIT,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -2443,9 +2423,7 @@ gtk_label_class_init (GtkLabelClass *class)
* Whether the label text can be selected with the mouse.
*/
label_props[PROP_SELECTABLE] =
- g_param_spec_boolean ("selectable",
- P_("Selectable"),
- P_("Whether the label text can be selected with the mouse"),
+ g_param_spec_boolean ("selectable", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -2455,9 +2433,7 @@ gtk_label_class_init (GtkLabelClass *class)
* The mnemonic accelerator key for the label.
*/
label_props[PROP_MNEMONIC_KEYVAL] =
- g_param_spec_uint ("mnemonic-keyval",
- P_("Mnemonic key"),
- P_("The mnemonic accelerator key for this label"),
+ g_param_spec_uint ("mnemonic-keyval", NULL, NULL,
0, G_MAXUINT,
GDK_KEY_VoidSymbol,
GTK_PARAM_READABLE);
@@ -2468,9 +2444,7 @@ gtk_label_class_init (GtkLabelClass *class)
* The widget to be activated when the labels mnemonic key is pressed.
*/
label_props[PROP_MNEMONIC_WIDGET] =
- g_param_spec_object ("mnemonic-widget",
- P_("Mnemonic widget"),
- P_("The widget to be activated when the label’s mnemonic key is pressed"),
+ g_param_spec_object ("mnemonic-widget", NULL, NULL,
GTK_TYPE_WIDGET,
GTK_PARAM_READWRITE);
@@ -2489,9 +2463,7 @@ gtk_label_class_init (GtkLabelClass *class)
* and [method@Gtk.Label.set_width_chars].
*/
label_props[PROP_ELLIPSIZE] =
- g_param_spec_enum ("ellipsize",
- P_("Ellipsize"),
- P_("The preferred place to ellipsize the string, if the label does not have enough room to display the entire string"),
+ g_param_spec_enum ("ellipsize", NULL, NULL,
PANGO_TYPE_ELLIPSIZE_MODE,
PANGO_ELLIPSIZE_NONE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -2508,9 +2480,7 @@ gtk_label_class_init (GtkLabelClass *class)
* determine the width of ellipsized and wrapped labels.
*/
label_props[PROP_WIDTH_CHARS] =
- g_param_spec_int ("width-chars",
- P_("Width In Characters"),
- P_("The desired width of the label, in characters"),
+ g_param_spec_int ("width-chars", NULL, NULL,
-1, G_MAXINT,
-1,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -2526,9 +2496,7 @@ gtk_label_class_init (GtkLabelClass *class)
* of text changes would be distracting, e.g. in a statusbar.
*/
label_props[PROP_SINGLE_LINE_MODE] =
- g_param_spec_boolean ("single-line-mode",
- P_("Single Line Mode"),
- P_("Whether the label is in single line mode"),
+ g_param_spec_boolean ("single-line-mode", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -2544,9 +2512,7 @@ gtk_label_class_init (GtkLabelClass *class)
* determine the width of ellipsized and wrapped labels.
*/
label_props[PROP_MAX_WIDTH_CHARS] =
- g_param_spec_int ("max-width-chars",
- P_("Maximum Width In Characters"),
- P_("The desired maximum width of the label, in characters"),
+ g_param_spec_int ("max-width-chars", NULL, NULL,
-1, G_MAXINT,
-1,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -2561,9 +2527,7 @@ gtk_label_class_init (GtkLabelClass *class)
* Set this property to -1 if you don't want to limit the number of lines.
*/
label_props[PROP_LINES] =
- g_param_spec_int ("lines",
- P_("Number of lines"),
- P_("The desired number of lines, when ellipsizing a wrapping label"),
+ g_param_spec_int ("lines", NULL, NULL,
-1, G_MAXINT,
-1,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -2574,9 +2538,7 @@ gtk_label_class_init (GtkLabelClass *class)
* A menu model whose contents will be appended to the context menu.
*/
label_props[PROP_EXTRA_MENU] =
- g_param_spec_object ("extra-menu",
- P_("Extra menu"),
- P_("Menu model to append to the context menu"),
+ g_param_spec_object ("extra-menu", NULL, NULL,
G_TYPE_MENU_MODEL,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtklayoutchild.c b/gtk/gtklayoutchild.c
index b04a37bea1..0b83f15ae1 100644
--- a/gtk/gtklayoutchild.c
+++ b/gtk/gtklayoutchild.c
@@ -123,9 +123,7 @@ gtk_layout_child_class_init (GtkLayoutChildClass *klass)
* The layout manager that created the `GtkLayoutChild` instance.
*/
layout_child_properties[PROP_LAYOUT_MANAGER] =
- g_param_spec_object ("layout-manager",
- "Layout Manager",
- "The layout manager that created this object",
+ g_param_spec_object ("layout-manager", NULL, NULL,
GTK_TYPE_LAYOUT_MANAGER,
GTK_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY);
@@ -136,9 +134,7 @@ gtk_layout_child_class_init (GtkLayoutChildClass *klass)
* The widget that is associated to the `GtkLayoutChild` instance.
*/
layout_child_properties[PROP_CHILD_WIDGET] =
- g_param_spec_object ("child-widget",
- "Child Widget",
- "The child widget that is associated to this object",
+ g_param_spec_object ("child-widget", NULL, NULL,
GTK_TYPE_WIDGET,
GTK_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY);
diff --git a/gtk/gtklevelbar.c b/gtk/gtklevelbar.c
index 22b950067b..a8ce9564fd 100644
--- a/gtk/gtklevelbar.c
+++ b/gtk/gtklevelbar.c
@@ -958,9 +958,7 @@ gtk_level_bar_class_init (GtkLevelBarClass *klass)
* Determines the currently filled value of the level bar.
*/
properties[PROP_VALUE] =
- g_param_spec_double ("value",
- P_("Currently filled value level"),
- P_("Currently filled value level of the level bar"),
+ g_param_spec_double ("value", NULL, NULL,
0.0, G_MAXDOUBLE, 0.0,
G_PARAM_READWRITE|G_PARAM_STATIC_STRINGS|G_PARAM_EXPLICIT_NOTIFY);
@@ -970,9 +968,7 @@ gtk_level_bar_class_init (GtkLevelBarClass *klass)
* Determines the minimum value of the interval that can be displayed by the bar.
*/
properties[PROP_MIN_VALUE] =
- g_param_spec_double ("min-value",
- P_("Minimum value level for the bar"),
- P_("Minimum value level that can be displayed by the bar"),
+ g_param_spec_double ("min-value", NULL, NULL,
0.0, G_MAXDOUBLE, 0.0,
G_PARAM_READWRITE|G_PARAM_STATIC_STRINGS|G_PARAM_EXPLICIT_NOTIFY);
@@ -982,9 +978,7 @@ gtk_level_bar_class_init (GtkLevelBarClass *klass)
* Determines the maximum value of the interval that can be displayed by the bar.
*/
properties[PROP_MAX_VALUE] =
- g_param_spec_double ("max-value",
- P_("Maximum value level for the bar"),
- P_("Maximum value level that can be displayed by the bar"),
+ g_param_spec_double ("max-value", NULL, NULL,
0.0, G_MAXDOUBLE, 1.0,
G_PARAM_READWRITE|G_PARAM_STATIC_STRINGS|G_PARAM_EXPLICIT_NOTIFY);
@@ -1003,9 +997,7 @@ gtk_level_bar_class_init (GtkLevelBarClass *klass)
* [property@Gtk.LevelBar:max-value].
*/
properties[PROP_MODE] =
- g_param_spec_enum ("mode",
- P_("The mode of the value indicator"),
- P_("The mode of the value indicator displayed by the bar"),
+ g_param_spec_enum ("mode", NULL, NULL,
GTK_TYPE_LEVEL_BAR_MODE,
GTK_LEVEL_BAR_MODE_CONTINUOUS,
G_PARAM_READWRITE|G_PARAM_STATIC_STRINGS|G_PARAM_EXPLICIT_NOTIFY);
@@ -1019,9 +1011,7 @@ gtk_level_bar_class_init (GtkLevelBarClass *klass)
* Inverted level bars grow in the opposite direction.
*/
properties[PROP_INVERTED] =
- g_param_spec_boolean ("inverted",
- P_("Inverted"),
- P_("Invert the direction in which the level bar grows"),
+ g_param_spec_boolean ("inverted", NULL, NULL,
FALSE,
G_PARAM_READWRITE|G_PARAM_STATIC_STRINGS|G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtklinkbutton.c b/gtk/gtklinkbutton.c
index 05234ccd00..b6c91aaf8a 100644
--- a/gtk/gtklinkbutton.c
+++ b/gtk/gtklinkbutton.c
@@ -175,9 +175,7 @@ gtk_link_button_class_init (GtkLinkButtonClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_URI,
- g_param_spec_string ("uri",
- P_("URI"),
- P_("The URI bound to this button"),
+ g_param_spec_string ("uri", NULL, NULL,
NULL,
GTK_PARAM_READWRITE));
@@ -190,9 +188,7 @@ gtk_link_button_class_init (GtkLinkButtonClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_VISITED,
- g_param_spec_boolean ("visited",
- P_("Visited"),
- P_("Whether this link has been visited."),
+ g_param_spec_boolean ("visited", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
diff --git a/gtk/gtklistbase.c b/gtk/gtklistbase.c
index e4013df05c..bf0657a04f 100644
--- a/gtk/gtklistbase.c
+++ b/gtk/gtklistbase.c
@@ -1141,9 +1141,7 @@ gtk_list_base_class_init (GtkListBaseClass *klass)
* for details.
*/
properties[PROP_ORIENTATION] =
- g_param_spec_enum ("orientation",
- P_("Orientation"),
- P_("The orientation of the orientable"),
+ g_param_spec_enum ("orientation", NULL, NULL,
GTK_TYPE_ORIENTATION,
GTK_ORIENTATION_VERTICAL,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtklistbox.c b/gtk/gtklistbox.c
index 3a75bc0f3e..e27533087a 100644
--- a/gtk/gtklistbox.c
+++ b/gtk/gtklistbox.c
@@ -500,9 +500,7 @@ gtk_list_box_class_init (GtkListBoxClass *klass)
* The selection mode used by the list box.
*/
properties[PROP_SELECTION_MODE] =
- g_param_spec_enum ("selection-mode",
- P_("Selection mode"),
- P_("The selection mode"),
+ g_param_spec_enum ("selection-mode", NULL, NULL,
GTK_TYPE_SELECTION_MODE,
GTK_SELECTION_SINGLE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -514,9 +512,7 @@ gtk_list_box_class_init (GtkListBoxClass *klass)
* click, or require a double-click.
*/
properties[PROP_ACTIVATE_ON_SINGLE_CLICK] =
- g_param_spec_boolean ("activate-on-single-click",
- P_("Activate on Single Click"),
- P_("Activate row on a single click"),
+ g_param_spec_boolean ("activate-on-single-click", NULL, NULL,
TRUE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -526,9 +522,7 @@ gtk_list_box_class_init (GtkListBoxClass *klass)
* Whether to accept unpaired release events.
*/
properties[PROP_ACCEPT_UNPAIRED_RELEASE] =
- g_param_spec_boolean ("accept-unpaired-release",
- P_("Accept unpaired release"),
- P_("Accept unpaired release"),
+ g_param_spec_boolean ("accept-unpaired-release", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -539,9 +533,7 @@ gtk_list_box_class_init (GtkListBoxClass *klass)
* Whether to show separators between rows.
*/
properties[PROP_SHOW_SEPARATORS] =
- g_param_spec_boolean ("show-separators",
- P_("Show separators"),
- P_("Show separators between rows"),
+ g_param_spec_boolean ("show-separators", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -3554,9 +3546,7 @@ gtk_list_box_row_class_init (GtkListBoxRowClass *klass)
* signal will be emitted for this row.
*/
row_properties[ROW_PROP_ACTIVATABLE] =
- g_param_spec_boolean ("activatable",
- P_("Activatable"),
- P_("Whether this row can be activated"),
+ g_param_spec_boolean ("activatable", NULL, NULL,
TRUE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -3566,9 +3556,7 @@ gtk_list_box_row_class_init (GtkListBoxRowClass *klass)
* Determines whether this row can be selected.
*/
row_properties[ROW_PROP_SELECTABLE] =
- g_param_spec_boolean ("selectable",
- P_("Selectable"),
- P_("Whether this row can be selected"),
+ g_param_spec_boolean ("selectable", NULL, NULL,
TRUE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -3578,9 +3566,7 @@ gtk_list_box_row_class_init (GtkListBoxRowClass *klass)
* The child widget.
*/
row_properties[ROW_PROP_CHILD] =
- g_param_spec_object ("child",
- P_("Child"),
- P_("The child widget"),
+ g_param_spec_object ("child", NULL, NULL,
GTK_TYPE_WIDGET,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtklistitem.c b/gtk/gtklistitem.c
index 47fed45058..df818be758 100644
--- a/gtk/gtklistitem.c
+++ b/gtk/gtklistitem.c
@@ -165,9 +165,7 @@ gtk_list_item_class_init (GtkListItemClass *klass)
* If the item can be activated by the user.
*/
properties[PROP_ACTIVATABLE] =
- g_param_spec_boolean ("activatable",
- P_("Activatable"),
- P_("If the item can be activated by the user"),
+ g_param_spec_boolean ("activatable", NULL, NULL,
TRUE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -177,9 +175,7 @@ gtk_list_item_class_init (GtkListItemClass *klass)
* Widget used for display.
*/
properties[PROP_CHILD] =
- g_param_spec_object ("child",
- P_("Child"),
- P_("Widget used for display"),
+ g_param_spec_object ("child", NULL, NULL,
GTK_TYPE_WIDGET,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -189,9 +185,7 @@ gtk_list_item_class_init (GtkListItemClass *klass)
* Displayed item.
*/
properties[PROP_ITEM] =
- g_param_spec_object ("item",
- P_("Item"),
- P_("Displayed item"),
+ g_param_spec_object ("item", NULL, NULL,
G_TYPE_OBJECT,
G_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -201,9 +195,7 @@ gtk_list_item_class_init (GtkListItemClass *klass)
* Position of the item.
*/
properties[PROP_POSITION] =
- g_param_spec_uint ("position",
- P_("Position"),
- P_("Position of the item"),
+ g_param_spec_uint ("position", NULL, NULL,
0, G_MAXUINT, GTK_INVALID_LIST_POSITION,
G_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -213,9 +205,7 @@ gtk_list_item_class_init (GtkListItemClass *klass)
* If the item can be selected by the user.
*/
properties[PROP_SELECTABLE] =
- g_param_spec_boolean ("selectable",
- P_("Selectable"),
- P_("If the item can be selected by the user"),
+ g_param_spec_boolean ("selectable", NULL, NULL,
TRUE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -225,9 +215,7 @@ gtk_list_item_class_init (GtkListItemClass *klass)
* If the item is currently selected.
*/
properties[PROP_SELECTED] =
- g_param_spec_boolean ("selected",
- P_("Selected"),
- P_("If the item is currently selected"),
+ g_param_spec_boolean ("selected", NULL, NULL,
FALSE,
G_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
diff --git a/gtk/gtklistitemwidget.c b/gtk/gtklistitemwidget.c
index 5a866d291c..fc407fbd83 100644
--- a/gtk/gtklistitemwidget.c
+++ b/gtk/gtklistitemwidget.c
@@ -239,16 +239,12 @@ gtk_list_item_widget_class_init (GtkListItemWidgetClass *klass)
gobject_class->dispose = gtk_list_item_widget_dispose;
properties[PROP_FACTORY] =
- g_param_spec_object ("factory",
- "Factory",
- "Factory managing this list item",
+ g_param_spec_object ("factory", NULL, NULL,
GTK_TYPE_LIST_ITEM_FACTORY,
G_PARAM_WRITABLE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
properties[PROP_SINGLE_CLICK_ACTIVATE] =
- g_param_spec_boolean ("single-click-activate",
- "Single click activate",
- "Activate on single click",
+ g_param_spec_boolean ("single-click-activate", NULL, NULL,
FALSE,
G_PARAM_WRITABLE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
diff --git a/gtk/gtklistview.c b/gtk/gtklistview.c
index e968f8437a..c5217a0348 100644
--- a/gtk/gtklistview.c
+++ b/gtk/gtklistview.c
@@ -815,9 +815,7 @@ gtk_list_view_class_init (GtkListViewClass *klass)
* Factory for populating list items.
*/
properties[PROP_FACTORY] =
- g_param_spec_object ("factory",
- P_("Factory"),
- P_("Factory for populating list items"),
+ g_param_spec_object ("factory", NULL, NULL,
GTK_TYPE_LIST_ITEM_FACTORY,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -827,9 +825,7 @@ gtk_list_view_class_init (GtkListViewClass *klass)
* Model for the items displayed.
*/
properties[PROP_MODEL] =
- g_param_spec_object ("model",
- P_("Model"),
- P_("Model for the items displayed"),
+ g_param_spec_object ("model", NULL, NULL,
GTK_TYPE_SELECTION_MODEL,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -839,9 +835,7 @@ gtk_list_view_class_init (GtkListViewClass *klass)
* Show separators between rows.
*/
properties[PROP_SHOW_SEPARATORS] =
- g_param_spec_boolean ("show-separators",
- P_("Show separators"),
- P_("Show separators between rows"),
+ g_param_spec_boolean ("show-separators", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -851,9 +845,7 @@ gtk_list_view_class_init (GtkListViewClass *klass)
* Activate rows on single click and select them on hover.
*/
properties[PROP_SINGLE_CLICK_ACTIVATE] =
- g_param_spec_boolean ("single-click-activate",
- P_("Single click activate"),
- P_("Activate rows on single click"),
+ g_param_spec_boolean ("single-click-activate", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -863,9 +855,7 @@ gtk_list_view_class_init (GtkListViewClass *klass)
* Allow rubberband selection.
*/
properties[PROP_ENABLE_RUBBERBAND] =
- g_param_spec_boolean ("enable-rubberband",
- P_("Enable rubberband selection"),
- P_("Allow selecting items by dragging with the mouse"),
+ g_param_spec_boolean ("enable-rubberband", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtklockbutton.c b/gtk/gtklockbutton.c
index dda8cc9147..03a68d3077 100644
--- a/gtk/gtklockbutton.c
+++ b/gtk/gtklockbutton.c
@@ -270,9 +270,7 @@ gtk_lock_button_class_init (GtkLockButtonClass *klass)
* The `GPermission object controlling this button.
*/
g_object_class_install_property (gobject_class, PROP_PERMISSION,
- g_param_spec_object ("permission",
- P_("Permission"),
- P_("The GPermission object controlling this button"),
+ g_param_spec_object ("permission", NULL, NULL,
G_TYPE_PERMISSION,
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));
@@ -283,9 +281,7 @@ gtk_lock_button_class_init (GtkLockButtonClass *klass)
* The text to display when prompting the user to lock.
*/
g_object_class_install_property (gobject_class, PROP_TEXT_LOCK,
- g_param_spec_string ("text-lock",
- P_("Lock Text"),
- P_("The text to display when prompting the user to lock"),
+ g_param_spec_string ("text-lock", NULL, NULL,
_("Lock"),
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT |
@@ -297,9 +293,7 @@ gtk_lock_button_class_init (GtkLockButtonClass *klass)
* The text to display when prompting the user to unlock.
*/
g_object_class_install_property (gobject_class, PROP_TEXT_UNLOCK,
- g_param_spec_string ("text-unlock",
- P_("Unlock Text"),
- P_("The text to display when prompting the user to unlock"),
+ g_param_spec_string ("text-unlock", NULL, NULL,
_("Unlock"),
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT |
@@ -311,9 +305,7 @@ gtk_lock_button_class_init (GtkLockButtonClass *klass)
* The tooltip to display when prompting the user to lock.
*/
g_object_class_install_property (gobject_class, PROP_TOOLTIP_LOCK,
- g_param_spec_string ("tooltip-lock",
- P_("Lock Tooltip"),
- P_("The tooltip to display when prompting the user to lock"),
+ g_param_spec_string ("tooltip-lock", NULL, NULL,
_("Dialog is unlocked.\nClick to prevent further changes"),
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT |
@@ -325,9 +317,7 @@ gtk_lock_button_class_init (GtkLockButtonClass *klass)
* The tooltip to display when prompting the user to unlock.
*/
g_object_class_install_property (gobject_class, PROP_TOOLTIP_UNLOCK,
- g_param_spec_string ("tooltip-unlock",
- P_("Unlock Tooltip"),
- P_("The tooltip to display when prompting the user to unlock"),
+ g_param_spec_string ("tooltip-unlock", NULL, NULL,
_("Dialog is locked.\nClick to make changes"),
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT |
@@ -339,9 +329,7 @@ gtk_lock_button_class_init (GtkLockButtonClass *klass)
* The tooltip to display when the user cannot obtain authorization.
*/
g_object_class_install_property (gobject_class, PROP_TOOLTIP_NOT_AUTHORIZED,
- g_param_spec_string ("tooltip-not-authorized",
- P_("Not Authorized Tooltip"),
- P_("The tooltip to display when prompting the user cannot obtain authorization"),
+ g_param_spec_string ("tooltip-not-authorized", NULL, NULL,
_("System policy prevents changes.\nContact your system administrator"),
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT |
diff --git a/gtk/gtkmagnifier.c b/gtk/gtkmagnifier.c
index 5b5b6ab7ac..7bf8b886d7 100644
--- a/gtk/gtkmagnifier.c
+++ b/gtk/gtkmagnifier.c
@@ -183,23 +183,17 @@ gtk_magnifier_class_init (GtkMagnifierClass *klass)
g_object_class_install_property (object_class,
PROP_INSPECTED,
- g_param_spec_object ("inspected",
- P_("Inspected"),
- P_("Inspected widget"),
+ g_param_spec_object ("inspected", NULL, NULL,
GTK_TYPE_WIDGET,
G_PARAM_READWRITE));
g_object_class_install_property (object_class,
PROP_MAGNIFICATION,
- g_param_spec_double ("magnification",
- P_("magnification"),
- P_("magnification"),
+ g_param_spec_double ("magnification", NULL, NULL,
1, G_MAXDOUBLE, 1,
G_PARAM_READWRITE));
g_object_class_install_property (object_class,
PROP_RESIZE,
- g_param_spec_boolean ("resize",
- P_("resize"),
- P_("resize"),
+ g_param_spec_boolean ("resize", NULL, NULL,
FALSE,
G_PARAM_READWRITE));
diff --git a/gtk/gtkmaplistmodel.c b/gtk/gtkmaplistmodel.c
index 0de6b7c7d8..7088f63d7d 100644
--- a/gtk/gtkmaplistmodel.c
+++ b/gtk/gtkmaplistmodel.c
@@ -356,9 +356,7 @@ gtk_map_list_model_class_init (GtkMapListModelClass *class)
* If a map is set for this model
*/
properties[PROP_HAS_MAP] =
- g_param_spec_boolean ("has-map",
- P_("has map"),
- P_("If a map is set for this model"),
+ g_param_spec_boolean ("has-map", NULL, NULL,
FALSE,
GTK_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY);
@@ -368,9 +366,7 @@ gtk_map_list_model_class_init (GtkMapListModelClass *class)
* The model being mapped.
*/
properties[PROP_MODEL] =
- g_param_spec_object ("model",
- P_("Model"),
- P_("The model being mapped"),
+ g_param_spec_object ("model", NULL, NULL,
G_TYPE_LIST_MODEL,
GTK_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtkmediacontrols.c b/gtk/gtkmediacontrols.c
index 8fd3329296..4c175737eb 100644
--- a/gtk/gtkmediacontrols.c
+++ b/gtk/gtkmediacontrols.c
@@ -272,9 +272,7 @@ gtk_media_controls_class_init (GtkMediaControlsClass *klass)
* The media-stream managed by this object or %NULL if none.
*/
properties[PROP_MEDIA_STREAM] =
- g_param_spec_object ("media-stream",
- P_("Media Stream"),
- P_("The media stream managed"),
+ g_param_spec_object ("media-stream", NULL, NULL,
GTK_TYPE_MEDIA_STREAM,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
diff --git a/gtk/gtkmediafile.c b/gtk/gtkmediafile.c
index 33b56a2cf5..fa1f12d2a1 100644
--- a/gtk/gtkmediafile.c
+++ b/gtk/gtkmediafile.c
@@ -155,9 +155,7 @@ gtk_media_file_class_init (GtkMediaFileClass *class)
* The file being played back or %NULL if not playing a file.
*/
properties[PROP_FILE] =
- g_param_spec_object ("file",
- P_("File"),
- P_("File being played back"),
+ g_param_spec_object ("file", NULL, NULL,
G_TYPE_FILE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -169,9 +167,7 @@ gtk_media_file_class_init (GtkMediaFileClass *class)
* This is %NULL when playing a file.
*/
properties[PROP_INPUT_STREAM] =
- g_param_spec_object ("input-stream",
- P_("Input stream"),
- P_("Input stream being played back"),
+ g_param_spec_object ("input-stream", NULL, NULL,
G_TYPE_INPUT_STREAM,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
diff --git a/gtk/gtkmediastream.c b/gtk/gtkmediastream.c
index 5b7df25cca..6b5a7d524f 100644
--- a/gtk/gtkmediastream.c
+++ b/gtk/gtkmediastream.c
@@ -297,9 +297,7 @@ gtk_media_stream_class_init (GtkMediaStreamClass *class)
* audio and video is known.
*/
properties[PROP_PREPARED] =
- g_param_spec_boolean ("prepared",
- P_("Prepared"),
- P_("Whether the stream has finished initializing"),
+ g_param_spec_boolean ("prepared", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -310,9 +308,7 @@ gtk_media_stream_class_init (GtkMediaStreamClass *class)
* that the stream is in.
*/
properties[PROP_ERROR] =
- g_param_spec_boxed ("error",
- P_("Error"),
- P_("Error the stream is in"),
+ g_param_spec_boxed ("error", NULL, NULL,
G_TYPE_ERROR,
G_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -322,9 +318,7 @@ gtk_media_stream_class_init (GtkMediaStreamClass *class)
* Whether the stream contains audio.
*/
properties[PROP_HAS_AUDIO] =
- g_param_spec_boolean ("has-audio",
- P_("Has audio"),
- P_("Whether the stream contains audio"),
+ g_param_spec_boolean ("has-audio", NULL, NULL,
FALSE,
G_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -334,9 +328,7 @@ gtk_media_stream_class_init (GtkMediaStreamClass *class)
* Whether the stream contains video.
*/
properties[PROP_HAS_VIDEO] =
- g_param_spec_boolean ("has-video",
- P_("Has video"),
- P_("Whether the stream contains video"),
+ g_param_spec_boolean ("has-video", NULL, NULL,
FALSE,
G_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -346,9 +338,7 @@ gtk_media_stream_class_init (GtkMediaStreamClass *class)
* Whether the stream is currently playing.
*/
properties[PROP_PLAYING] =
- g_param_spec_boolean ("playing",
- P_("Playing"),
- P_("Whether the stream is playing"),
+ g_param_spec_boolean ("playing", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -358,9 +348,7 @@ gtk_media_stream_class_init (GtkMediaStreamClass *class)
* Set when playback has finished.
*/
properties[PROP_ENDED] =
- g_param_spec_boolean ("ended",
- P_("Ended"),
- P_("Set when playback has finished"),
+ g_param_spec_boolean ("ended", NULL, NULL,
FALSE,
G_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -370,9 +358,7 @@ gtk_media_stream_class_init (GtkMediaStreamClass *class)
* The current presentation timestamp in microseconds.
*/
properties[PROP_TIMESTAMP] =
- g_param_spec_int64 ("timestamp",
- P_("Timestamp"),
- P_("Timestamp in microseconds"),
+ g_param_spec_int64 ("timestamp", NULL, NULL,
0, G_MAXINT64, 0,
G_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -382,9 +368,7 @@ gtk_media_stream_class_init (GtkMediaStreamClass *class)
* The stream's duration in microseconds or 0 if unknown.
*/
properties[PROP_DURATION] =
- g_param_spec_int64 ("duration",
- P_("Duration"),
- P_("Timestamp in microseconds"),
+ g_param_spec_int64 ("duration", NULL, NULL,
0, G_MAXINT64, 0,
G_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -394,9 +378,7 @@ gtk_media_stream_class_init (GtkMediaStreamClass *class)
* Set unless the stream is known to not support seeking.
*/
properties[PROP_SEEKABLE] =
- g_param_spec_boolean ("seekable",
- P_("Seekable"),
- P_("Set unless seeking is not supported"),
+ g_param_spec_boolean ("seekable", NULL, NULL,
TRUE,
G_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -406,9 +388,7 @@ gtk_media_stream_class_init (GtkMediaStreamClass *class)
* Set while a seek is in progress.
*/
properties[PROP_SEEKING] =
- g_param_spec_boolean ("seeking",
- P_("Seeking"),
- P_("Set while a seek is in progress"),
+ g_param_spec_boolean ("seeking", NULL, NULL,
FALSE,
G_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -418,9 +398,7 @@ gtk_media_stream_class_init (GtkMediaStreamClass *class)
* Try to restart the media from the beginning once it ended.
*/
properties[PROP_LOOP] =
- g_param_spec_boolean ("loop",
- P_("Loop"),
- P_("Try to restart the media from the beginning once it ended."),
+ g_param_spec_boolean ("loop", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -430,9 +408,7 @@ gtk_media_stream_class_init (GtkMediaStreamClass *class)
* Whether the audio stream should be muted.
*/
properties[PROP_MUTED] =
- g_param_spec_boolean ("muted",
- P_("Muted"),
- P_("Whether the audio stream should be muted."),
+ g_param_spec_boolean ("muted", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -442,9 +418,7 @@ gtk_media_stream_class_init (GtkMediaStreamClass *class)
* Volume of the audio stream.
*/
properties[PROP_VOLUME] =
- g_param_spec_double ("volume",
- P_("Volume"),
- P_("Volume of the audio stream."),
+ g_param_spec_double ("volume", NULL, NULL,
0.0, 1.0, 1.0,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
diff --git a/gtk/gtkmenubutton.c b/gtk/gtkmenubutton.c
index fa695111b9..0aea0131d7 100644
--- a/gtk/gtkmenubutton.c
+++ b/gtk/gtkmenubutton.c
@@ -410,9 +410,7 @@ gtk_menu_button_class_init (GtkMenuButtonClass *klass)
* with the [property@Gtk.MenuButton:popover] property.
*/
menu_button_props[PROP_MENU_MODEL] =
- g_param_spec_object ("menu-model",
- P_("Menu model"),
- P_("The model from which the popup is made."),
+ g_param_spec_object ("menu-model", NULL, NULL,
G_TYPE_MENU_MODEL,
GTK_PARAM_READWRITE);
@@ -423,9 +421,7 @@ gtk_menu_button_class_init (GtkMenuButtonClass *klass)
* menu or popover will be popped out.
*/
menu_button_props[PROP_DIRECTION] =
- g_param_spec_enum ("direction",
- P_("Direction"),
- P_("The direction the arrow should point."),
+ g_param_spec_enum ("direction", NULL, NULL,
GTK_TYPE_ARROW_TYPE,
GTK_ARROW_DOWN,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -436,9 +432,7 @@ gtk_menu_button_class_init (GtkMenuButtonClass *klass)
* The `GtkPopover` that will be popped up when the button is clicked.
*/
menu_button_props[PROP_POPOVER] =
- g_param_spec_object ("popover",
- P_("Popover"),
- P_("The popover"),
+ g_param_spec_object ("popover", NULL, NULL,
GTK_TYPE_POPOVER,
G_PARAM_READWRITE);
@@ -448,9 +442,7 @@ gtk_menu_button_class_init (GtkMenuButtonClass *klass)
* The name of the icon used to automatically populate the button.
*/
menu_button_props[PROP_ICON_NAME] =
- g_param_spec_string ("icon-name",
- P_("Icon Name"),
- P_("The name of the icon used to automatically populate the button"),
+ g_param_spec_string ("icon-name", NULL, NULL,
NULL,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -462,9 +454,7 @@ gtk_menu_button_class_init (GtkMenuButtonClass *klass)
* Since: 4.4
*/
menu_button_props[PROP_ALWAYS_SHOW_ARROW] =
- g_param_spec_boolean ("always-show-arrow",
- P_("Always Show Arrow"),
- P_("Whether to show a dropdown arrow even when using an icon or a custom child"),
+ g_param_spec_boolean ("always-show-arrow", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -474,9 +464,7 @@ gtk_menu_button_class_init (GtkMenuButtonClass *klass)
* The label for the button.
*/
menu_button_props[PROP_LABEL] =
- g_param_spec_string ("label",
- P_("Label"),
- P_("The label for the button"),
+ g_param_spec_string ("label", NULL, NULL,
NULL,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -486,9 +474,7 @@ gtk_menu_button_class_init (GtkMenuButtonClass *klass)
* If set an underscore in the text indicates a mnemonic.
*/
menu_button_props[PROP_USE_UNDERLINE] =
- g_param_spec_boolean ("use-underline",
- P_("Use underline"),
- P_("If set, an underline in the text indicates the next character should be used for the mnemonic accelerator key"),
+ g_param_spec_boolean ("use-underline", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -498,9 +484,7 @@ gtk_menu_button_class_init (GtkMenuButtonClass *klass)
* Whether the button has a frame.
*/
menu_button_props[PROP_HAS_FRAME] =
- g_param_spec_boolean ("has-frame",
- P_("Has frame"),
- P_("Whether the button has a frame"),
+ g_param_spec_boolean ("has-frame", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -514,9 +498,7 @@ gtk_menu_button_class_init (GtkMenuButtonClass *klass)
* Since: 4.4
*/
menu_button_props[PROP_PRIMARY] =
- g_param_spec_boolean ("primary",
- P_("Primary"),
- P_("Whether the menubutton acts as a primary menu"),
+ g_param_spec_boolean ("primary", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -528,9 +510,7 @@ gtk_menu_button_class_init (GtkMenuButtonClass *klass)
* Since: 4.6
*/
menu_button_props[PROP_CHILD] =
- g_param_spec_object ("child",
- P_("Child"),
- P_("The child widget"),
+ g_param_spec_object ("child", NULL, NULL,
GTK_TYPE_WIDGET,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtkmenutrackeritem.c b/gtk/gtkmenutrackeritem.c
index 9a9732e28a..cccfb48a85 100644
--- a/gtk/gtkmenutrackeritem.c
+++ b/gtk/gtkmenutrackeritem.c
@@ -224,29 +224,29 @@ gtk_menu_tracker_item_class_init (GtkMenuTrackerItemClass *class)
class->finalize = gtk_menu_tracker_item_finalize;
gtk_menu_tracker_item_pspecs[PROP_IS_SEPARATOR] =
- g_param_spec_boolean ("is-separator", "", "", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE);
+ g_param_spec_boolean ("is-separator", NULL, NULL, FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE);
gtk_menu_tracker_item_pspecs[PROP_LABEL] =
- g_param_spec_string ("label", "", "", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE);
+ g_param_spec_string ("label", NULL, NULL, NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE);
gtk_menu_tracker_item_pspecs[PROP_USE_MARKUP] =
- g_param_spec_boolean ("use-markup", "", "", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE);
+ g_param_spec_boolean ("use-markup", NULL, NULL, FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE);
gtk_menu_tracker_item_pspecs[PROP_ICON] =
- g_param_spec_object ("icon", "", "", G_TYPE_ICON, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE);
+ g_param_spec_object ("icon", NULL, NULL, G_TYPE_ICON, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE);
gtk_menu_tracker_item_pspecs[PROP_VERB_ICON] =
- g_param_spec_object ("verb-icon", "", "", G_TYPE_ICON, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE);
+ g_param_spec_object ("verb-icon", NULL, NULL, G_TYPE_ICON, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE);
gtk_menu_tracker_item_pspecs[PROP_SENSITIVE] =
- g_param_spec_boolean ("sensitive", "", "", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE);
+ g_param_spec_boolean ("sensitive", NULL, NULL, FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE);
gtk_menu_tracker_item_pspecs[PROP_ROLE] =
- g_param_spec_enum ("role", "", "",
+ g_param_spec_enum ("role", NULL, NULL,
GTK_TYPE_MENU_TRACKER_ITEM_ROLE, GTK_MENU_TRACKER_ITEM_ROLE_NORMAL,
G_PARAM_STATIC_STRINGS | G_PARAM_READABLE);
gtk_menu_tracker_item_pspecs[PROP_TOGGLED] =
- g_param_spec_boolean ("toggled", "", "", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE);
+ g_param_spec_boolean ("toggled", NULL, NULL, FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE);
gtk_menu_tracker_item_pspecs[PROP_ACCEL] =
- g_param_spec_string ("accel", "", "", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE);
+ g_param_spec_string ("accel", NULL, NULL, NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE);
gtk_menu_tracker_item_pspecs[PROP_SUBMENU_SHOWN] =
- g_param_spec_boolean ("submenu-shown", "", "", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE);
+ g_param_spec_boolean ("submenu-shown", NULL, NULL, FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE);
gtk_menu_tracker_item_pspecs[PROP_IS_VISIBLE] =
- g_param_spec_boolean ("is-visible", "", "", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE);
+ g_param_spec_boolean ("is-visible", NULL, NULL, FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE);
g_object_class_install_properties (class, N_PROPS, gtk_menu_tracker_item_pspecs);
}
diff --git a/gtk/gtkmessagedialog.c b/gtk/gtkmessagedialog.c
index 463d14b3a9..9e2be08d3c 100644
--- a/gtk/gtkmessagedialog.c
+++ b/gtk/gtkmessagedialog.c
@@ -361,17 +361,13 @@ gtk_message_dialog_class_init (GtkMessageDialogClass *class)
*/
g_object_class_install_property (gobject_class,
PROP_MESSAGE_TYPE,
- g_param_spec_enum ("message-type",
- P_("Message Type"),
- P_("The type of message"),
+ g_param_spec_enum ("message-type", NULL, NULL,
GTK_TYPE_MESSAGE_TYPE,
GTK_MESSAGE_INFO,
GTK_PARAM_READWRITE|G_PARAM_CONSTRUCT|G_PARAM_EXPLICIT_NOTIFY));
g_object_class_install_property (gobject_class,
PROP_BUTTONS,
- g_param_spec_enum ("buttons",
- P_("Message Buttons"),
- P_("The buttons shown in the message dialog"),
+ g_param_spec_enum ("buttons", NULL, NULL,
GTK_TYPE_BUTTONS_TYPE,
GTK_BUTTONS_NONE,
GTK_PARAM_WRITABLE|G_PARAM_CONSTRUCT_ONLY));
@@ -384,9 +380,7 @@ gtk_message_dialog_class_init (GtkMessageDialogClass *class)
*/
g_object_class_install_property (gobject_class,
PROP_TEXT,
- g_param_spec_string ("text",
- P_("Text"),
- P_("The primary text of the message dialog"),
+ g_param_spec_string ("text", NULL, NULL,
"",
GTK_PARAM_READWRITE));
/**
@@ -398,9 +392,7 @@ gtk_message_dialog_class_init (GtkMessageDialogClass *class)
*/
g_object_class_install_property (gobject_class,
PROP_USE_MARKUP,
- g_param_spec_boolean ("use-markup",
- P_("Use Markup"),
- P_("The primary text of the title includes Pango markup."),
+ g_param_spec_boolean ("use-markup", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
/**
@@ -410,9 +402,7 @@ gtk_message_dialog_class_init (GtkMessageDialogClass *class)
*/
g_object_class_install_property (gobject_class,
PROP_SECONDARY_TEXT,
- g_param_spec_string ("secondary-text",
- P_("Secondary Text"),
- P_("The secondary text of the message dialog"),
+ g_param_spec_string ("secondary-text", NULL, NULL,
NULL,
GTK_PARAM_READWRITE));
/**
@@ -424,9 +414,7 @@ gtk_message_dialog_class_init (GtkMessageDialogClass *class)
*/
g_object_class_install_property (gobject_class,
PROP_SECONDARY_USE_MARKUP,
- g_param_spec_boolean ("secondary-use-markup",
- P_("Use Markup in secondary"),
- P_("The secondary text includes Pango markup."),
+ g_param_spec_boolean ("secondary-use-markup", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
/**
@@ -439,9 +427,7 @@ gtk_message_dialog_class_init (GtkMessageDialogClass *class)
*/
g_object_class_install_property (gobject_class,
PROP_MESSAGE_AREA,
- g_param_spec_object ("message-area",
- P_("Message area"),
- P_("GtkBox that holds the dialog’s primary and secondary labels"),
+ g_param_spec_object ("message-area", NULL, NULL,
GTK_TYPE_WIDGET,
GTK_PARAM_READABLE));
diff --git a/gtk/gtkmodelbutton.c b/gtk/gtkmodelbutton.c
index 27b5fd6e3f..624f94a305 100644
--- a/gtk/gtkmodelbutton.c
+++ b/gtk/gtkmodelbutton.c
@@ -1167,9 +1167,7 @@ gtk_model_button_class_init (GtkModelButtonClass *class)
* from the action and does not have to be set explicitly.
*/
properties[PROP_ROLE] =
- g_param_spec_enum ("role",
- P_("Role"),
- P_("The role of this button"),
+ g_param_spec_enum ("role", NULL, NULL,
GTK_TYPE_BUTTON_ROLE,
GTK_BUTTON_ROLE_NORMAL,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -1181,9 +1179,7 @@ gtk_model_button_class_init (GtkModelButtonClass *class)
* desired.
*/
properties[PROP_ICON] =
- g_param_spec_object ("icon",
- P_("Icon"),
- P_("The icon"),
+ g_param_spec_object ("icon", NULL, NULL,
G_TYPE_ICON,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -1193,9 +1189,7 @@ gtk_model_button_class_init (GtkModelButtonClass *class)
* The label for the button.
*/
properties[PROP_TEXT] =
- g_param_spec_string ("text",
- P_("Text"),
- P_("The text"),
+ g_param_spec_string ("text", NULL, NULL,
"",
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -1207,9 +1201,7 @@ gtk_model_button_class_init (GtkModelButtonClass *class)
* text will be displayed verbatim.
*/
properties[PROP_USE_MARKUP] =
- g_param_spec_boolean ("use-markup",
- P_("Use markup"),
- P_("The text of the button includes XML markup. See pango_parse_markup()"),
+ g_param_spec_boolean ("use-markup", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -1220,9 +1212,7 @@ gtk_model_button_class_init (GtkModelButtonClass *class)
* GAction.
*/
properties[PROP_ACTIVE] =
- g_param_spec_boolean ("active",
- P_("Active"),
- P_("Active"),
+ g_param_spec_boolean ("active", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -1232,16 +1222,12 @@ gtk_model_button_class_init (GtkModelButtonClass *class)
* The name of a submenu to open when the button is activated. * If this is set, the button should not have an action associated with it.
*/
properties[PROP_MENU_NAME] =
- g_param_spec_string ("menu-name",
- P_("Menu name"),
- P_("The name of the menu to open"),
+ g_param_spec_string ("menu-name", NULL, NULL,
NULL,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
properties[PROP_POPOVER] =
- g_param_spec_object ("popover",
- P_("Popover"),
- P_("Popover to open"),
+ g_param_spec_object ("popover", NULL, NULL,
GTK_TYPE_POPOVER,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -1253,9 +1239,7 @@ gtk_model_button_class_init (GtkModelButtonClass *class)
* horizontal sections of linked buttons.
*/
properties[PROP_ICONIC] =
- g_param_spec_boolean ("iconic",
- P_("Iconic"),
- P_("Whether to prefer the icon over text"),
+ g_param_spec_boolean ("iconic", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -1267,15 +1251,11 @@ gtk_model_button_class_init (GtkModelButtonClass *class)
* the model buttons in a menu.
*/
properties[PROP_INDICATOR_SIZE_GROUP] =
- g_param_spec_object ("indicator-size-group",
- P_("Size group"),
- P_("Size group for checks and radios"),
+ g_param_spec_object ("indicator-size-group", NULL, NULL,
GTK_TYPE_SIZE_GROUP,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
properties[PROP_ACCEL] =
- g_param_spec_string ("accel",
- P_("Accel"),
- P_("The accelerator"),
+ g_param_spec_string ("accel", NULL, NULL,
NULL,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
g_object_class_install_properties (object_class, LAST_PROP, properties);
diff --git a/gtk/gtkmountoperation.c b/gtk/gtkmountoperation.c
index 43760283b4..2d14523e63 100644
--- a/gtk/gtkmountoperation.c
+++ b/gtk/gtkmountoperation.c
@@ -169,9 +169,7 @@ gtk_mount_operation_class_init (GtkMountOperationClass *klass)
*/
g_object_class_install_property (object_class,
PROP_PARENT,
- g_param_spec_object ("parent",
- P_("Parent"),
- P_("The parent window"),
+ g_param_spec_object ("parent", NULL, NULL,
GTK_TYPE_WINDOW,
GTK_PARAM_READWRITE));
@@ -182,9 +180,7 @@ gtk_mount_operation_class_init (GtkMountOperationClass *klass)
*/
g_object_class_install_property (object_class,
PROP_IS_SHOWING,
- g_param_spec_boolean ("is-showing",
- P_("Is Showing"),
- P_("Are we showing a dialog"),
+ g_param_spec_boolean ("is-showing", NULL, NULL,
FALSE,
GTK_PARAM_READABLE));
@@ -195,9 +191,7 @@ gtk_mount_operation_class_init (GtkMountOperationClass *klass)
*/
g_object_class_install_property (object_class,
PROP_DISPLAY,
- g_param_spec_object ("display",
- P_("Display"),
- P_("The display where this window will be displayed."),
+ g_param_spec_object ("display", NULL, NULL,
GDK_TYPE_DISPLAY,
GTK_PARAM_READWRITE));
}
diff --git a/gtk/gtkmultiselection.c b/gtk/gtkmultiselection.c
index bee83622c6..9cf0356c9e 100644
--- a/gtk/gtkmultiselection.c
+++ b/gtk/gtkmultiselection.c
@@ -349,9 +349,7 @@ gtk_multi_selection_class_init (GtkMultiSelectionClass *klass)
* The list managed by this selection.
*/
properties[PROP_MODEL] =
- g_param_spec_object ("model",
- P_("Model"),
- P_("List managed by this selection"),
+ g_param_spec_object ("model", NULL, NULL,
G_TYPE_LIST_MODEL,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
diff --git a/gtk/gtknativedialog.c b/gtk/gtknativedialog.c
index 1c687e0753..ec389f2e53 100644
--- a/gtk/gtknativedialog.c
+++ b/gtk/gtknativedialog.c
@@ -208,9 +208,7 @@ gtk_native_dialog_class_init (GtkNativeDialogClass *class)
* The title of the dialog window
*/
native_props[PROP_TITLE] =
- g_param_spec_string ("title",
- P_("Dialog Title"),
- P_("The title of the file chooser dialog"),
+ g_param_spec_string ("title", NULL, NULL,
NULL,
GTK_PARAM_READWRITE);
@@ -220,9 +218,7 @@ gtk_native_dialog_class_init (GtkNativeDialogClass *class)
* Whether the window should be modal with respect to its transient parent.
*/
native_props[PROP_MODAL] =
- g_param_spec_boolean ("modal",
- P_("Modal"),
- P_("If TRUE, the dialog is modal (other windows are not usable while this one is up)"),
+ g_param_spec_boolean ("modal", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -232,9 +228,7 @@ gtk_native_dialog_class_init (GtkNativeDialogClass *class)
* Whether the window is currently visible.
*/
native_props[PROP_VISIBLE] =
- g_param_spec_boolean ("visible",
- P_("Visible"),
- P_("Whether the dialog is currently visible"),
+ g_param_spec_boolean ("visible", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -244,9 +238,7 @@ gtk_native_dialog_class_init (GtkNativeDialogClass *class)
* The transient parent of the dialog, or %NULL for none.
*/
native_props[PROP_TRANSIENT_FOR] =
- g_param_spec_object ("transient-for",
- P_("Transient for Window"),
- P_("The transient parent of the dialog"),
+ g_param_spec_object ("transient-for", NULL, NULL,
GTK_TYPE_WINDOW,
GTK_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtknoselection.c b/gtk/gtknoselection.c
index 9b48082d6a..d17503b247 100644
--- a/gtk/gtknoselection.c
+++ b/gtk/gtknoselection.c
@@ -197,9 +197,7 @@ gtk_no_selection_class_init (GtkNoSelectionClass *klass)
* The model being managed.
*/
properties[PROP_MODEL] =
- g_param_spec_object ("model",
- P_("The model"),
- P_("The model being managed"),
+ g_param_spec_object ("model", NULL, NULL,
G_TYPE_LIST_MODEL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index 1ad109f4fe..694951eac9 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -582,9 +582,7 @@ gtk_notebook_page_class_init (GtkNotebookPageClass *class)
*/
g_object_class_install_property (object_class,
CHILD_PROP_CHILD,
- g_param_spec_object ("child",
- P_("Child"),
- P_("The child for this page"),
+ g_param_spec_object ("child", NULL, NULL,
GTK_TYPE_WIDGET,
GTK_PARAM_READWRITE|G_PARAM_CONSTRUCT_ONLY));
@@ -595,9 +593,7 @@ gtk_notebook_page_class_init (GtkNotebookPageClass *class)
*/
g_object_class_install_property (object_class,
CHILD_PROP_TAB,
- g_param_spec_object ("tab",
- P_("Tab"),
- P_("The tab widget for this page"),
+ g_param_spec_object ("tab", NULL, NULL,
GTK_TYPE_WIDGET,
GTK_PARAM_READWRITE|G_PARAM_CONSTRUCT_ONLY));
@@ -608,9 +604,7 @@ gtk_notebook_page_class_init (GtkNotebookPageClass *class)
*/
g_object_class_install_property (object_class,
CHILD_PROP_MENU,
- g_param_spec_object ("menu",
- P_("Menu"),
- P_("The label widget displayed in the child’s menu entry"),
+ g_param_spec_object ("menu", NULL, NULL,
GTK_TYPE_WIDGET,
GTK_PARAM_READWRITE|G_PARAM_CONSTRUCT_ONLY));
@@ -621,9 +615,7 @@ gtk_notebook_page_class_init (GtkNotebookPageClass *class)
*/
g_object_class_install_property (object_class,
CHILD_PROP_TAB_LABEL,
- g_param_spec_string ("tab-label",
- P_("Tab label"),
- P_("The text of the tab widget"),
+ g_param_spec_string ("tab-label", NULL, NULL,
NULL,
GTK_PARAM_READWRITE));
@@ -634,9 +626,7 @@ gtk_notebook_page_class_init (GtkNotebookPageClass *class)
*/
g_object_class_install_property (object_class,
CHILD_PROP_MENU_LABEL,
- g_param_spec_string ("menu-label",
- P_("Menu label"),
- P_("The text of the menu widget"),
+ g_param_spec_string ("menu-label", NULL, NULL,
NULL,
GTK_PARAM_READWRITE));
@@ -647,9 +637,7 @@ gtk_notebook_page_class_init (GtkNotebookPageClass *class)
*/
g_object_class_install_property (object_class,
CHILD_PROP_POSITION,
- g_param_spec_int ("position",
- P_("Position"),
- P_("The index of the child in the parent"),
+ g_param_spec_int ("position", NULL, NULL,
-1, G_MAXINT, 0,
GTK_PARAM_READWRITE));
@@ -660,9 +648,7 @@ gtk_notebook_page_class_init (GtkNotebookPageClass *class)
*/
g_object_class_install_property (object_class,
CHILD_PROP_TAB_EXPAND,
- g_param_spec_boolean ("tab-expand",
- P_("Tab expand"),
- P_("Whether to expand the child’s tab"),
+ g_param_spec_boolean ("tab-expand", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -673,9 +659,7 @@ gtk_notebook_page_class_init (GtkNotebookPageClass *class)
*/
g_object_class_install_property (object_class,
CHILD_PROP_TAB_FILL,
- g_param_spec_boolean ("tab-fill",
- P_("Tab fill"),
- P_("Whether the child’s tab should fill the allocated area"),
+ g_param_spec_boolean ("tab-fill", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -686,9 +670,7 @@ gtk_notebook_page_class_init (GtkNotebookPageClass *class)
*/
g_object_class_install_property (object_class,
CHILD_PROP_REORDERABLE,
- g_param_spec_boolean ("reorderable",
- P_("Tab reorderable"),
- P_("Whether the tab is reorderable by user action"),
+ g_param_spec_boolean ("reorderable", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -699,9 +681,7 @@ gtk_notebook_page_class_init (GtkNotebookPageClass *class)
*/
g_object_class_install_property (object_class,
CHILD_PROP_DETACHABLE,
- g_param_spec_boolean ("detachable",
- P_("Tab detachable"),
- P_("Whether the tab is detachable"),
+ g_param_spec_boolean ("detachable", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -1122,9 +1102,7 @@ gtk_notebook_class_init (GtkNotebookClass *class)
* The index of the current page.
*/
properties[PROP_PAGE] =
- g_param_spec_int ("page",
- P_("Page"),
- P_("The index of the current page"),
+ g_param_spec_int ("page", NULL, NULL,
-1, G_MAXINT,
-1,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -1135,9 +1113,7 @@ gtk_notebook_class_init (GtkNotebookClass *class)
* Which side of the notebook holds the tabs.
*/
properties[PROP_TAB_POS] =
- g_param_spec_enum ("tab-pos",
- P_("Tab Position"),
- P_("Which side of the notebook holds the tabs"),
+ g_param_spec_enum ("tab-pos", NULL, NULL,
GTK_TYPE_POSITION_TYPE,
GTK_POS_TOP,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -1148,9 +1124,7 @@ gtk_notebook_class_init (GtkNotebookClass *class)
* Whether tabs should be shown.
*/
properties[PROP_SHOW_TABS] =
- g_param_spec_boolean ("show-tabs",
- P_("Show Tabs"),
- P_("Whether tabs should be shown"),
+ g_param_spec_boolean ("show-tabs", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -1160,9 +1134,7 @@ gtk_notebook_class_init (GtkNotebookClass *class)
* Whether the border should be shown.
*/
properties[PROP_SHOW_BORDER] =
- g_param_spec_boolean ("show-border",
- P_("Show Border"),
- P_("Whether the border should be shown"),
+ g_param_spec_boolean ("show-border", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -1172,9 +1144,7 @@ gtk_notebook_class_init (GtkNotebookClass *class)
* If %TRUE, scroll arrows are added if there are too many pages to fit.
*/
properties[PROP_SCROLLABLE] =
- g_param_spec_boolean ("scrollable",
- P_("Scrollable"),
- P_("If TRUE, scroll arrows are added if there are too many tabs to fit"),
+ g_param_spec_boolean ("scrollable", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -1184,9 +1154,7 @@ gtk_notebook_class_init (GtkNotebookClass *class)
* If %TRUE, pressing the right mouse button on the notebook shows a page switching menu.
*/
properties[PROP_ENABLE_POPUP] =
- g_param_spec_boolean ("enable-popup",
- P_("Enable Popup"),
- P_("If TRUE, pressing the right mouse button on the notebook pops up a menu that you can use to go to a page"),
+ g_param_spec_boolean ("enable-popup", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -1196,9 +1164,7 @@ gtk_notebook_class_init (GtkNotebookClass *class)
* Group name for tab drag and drop.
*/
properties[PROP_GROUP_NAME] =
- g_param_spec_string ("group-name",
- P_("Group Name"),
- P_("Group name for tab drag and drop"),
+ g_param_spec_string ("group-name", NULL, NULL,
NULL,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -1208,9 +1174,7 @@ gtk_notebook_class_init (GtkNotebookClass *class)
* A selection model with the pages.
*/
properties[PROP_PAGES] =
- g_param_spec_object ("pages",
- P_("Pages"),
- P_("The pages of the notebook."),
+ g_param_spec_object ("pages", NULL, NULL,
G_TYPE_LIST_MODEL,
GTK_PARAM_READABLE);
diff --git a/gtk/gtknumericsorter.c b/gtk/gtknumericsorter.c
index bc1227b343..966346c54d 100644
--- a/gtk/gtknumericsorter.c
+++ b/gtk/gtknumericsorter.c
@@ -544,9 +544,7 @@ gtk_numeric_sorter_class_init (GtkNumericSorterClass *class)
* The expression to evaluate on items to get a number to compare with.
*/
properties[PROP_EXPRESSION] =
- gtk_param_spec_expression ("expression",
- P_("Expression"),
- P_("Expression to compare with"),
+ gtk_param_spec_expression ("expression", NULL, NULL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
/**
@@ -555,9 +553,7 @@ gtk_numeric_sorter_class_init (GtkNumericSorterClass *class)
* Whether the sorter will sort smaller numbers first.
*/
properties[PROP_SORT_ORDER] =
- g_param_spec_enum ("sort-order",
- P_("Sort order"),
- P_("Whether to sort smaller numbers first"),
+ g_param_spec_enum ("sort-order", NULL, NULL,
GTK_TYPE_SORT_TYPE,
GTK_SORT_ASCENDING,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtkorientable.c b/gtk/gtkorientable.c
index c8b2a2f9d7..d56b182143 100644
--- a/gtk/gtkorientable.c
+++ b/gtk/gtkorientable.c
@@ -52,9 +52,7 @@ gtk_orientable_default_init (GtkOrientableInterface *iface)
* The orientation of the orientable.
**/
g_object_interface_install_property (iface,
- g_param_spec_enum ("orientation",
- P_("Orientation"),
- P_("The orientation of the orientable"),
+ g_param_spec_enum ("orientation", NULL, NULL,
GTK_TYPE_ORIENTATION,
GTK_ORIENTATION_HORIZONTAL,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
diff --git a/gtk/gtkoverlay.c b/gtk/gtkoverlay.c
index 4fba2b476a..e1f4f128b2 100644
--- a/gtk/gtkoverlay.c
+++ b/gtk/gtkoverlay.c
@@ -317,9 +317,7 @@ gtk_overlay_class_init (GtkOverlayClass *klass)
g_object_class_install_property (object_class,
PROP_CHILD,
- g_param_spec_object ("child",
- P_("Child"),
- P_("The child widget"),
+ g_param_spec_object ("child", NULL, NULL,
GTK_TYPE_WIDGET,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
diff --git a/gtk/gtkoverlaylayout.c b/gtk/gtkoverlaylayout.c
index 93c88c746d..3d75d3082b 100644
--- a/gtk/gtkoverlaylayout.c
+++ b/gtk/gtkoverlaylayout.c
@@ -137,9 +137,7 @@ gtk_overlay_layout_child_class_init (GtkOverlayLayoutChildClass *klass)
* measurement.
*/
child_props[PROP_MEASURE] =
- g_param_spec_boolean ("measure",
- P_("Measure"),
- P_("Include in size measurement"),
+ g_param_spec_boolean ("measure", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -149,9 +147,7 @@ gtk_overlay_layout_child_class_init (GtkOverlayLayoutChildClass *klass)
* Whether the child should be clipped to fit the parent's size.
*/
child_props[PROP_CLIP_OVERLAY] =
- g_param_spec_boolean ("clip-overlay",
- P_("Clip Overlay"),
- P_("Clip the overlay child widget so as to fit the parent"),
+ g_param_spec_boolean ("clip-overlay", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtkpadcontroller.c b/gtk/gtkpadcontroller.c
index d49dc00e10..6e5700a0a3 100644
--- a/gtk/gtkpadcontroller.c
+++ b/gtk/gtkpadcontroller.c
@@ -368,15 +368,11 @@ gtk_pad_controller_class_init (GtkPadControllerClass *klass)
object_class->finalize = gtk_pad_controller_finalize;
pspecs[PROP_ACTION_GROUP] =
- g_param_spec_object ("action-group",
- P_("Action group"),
- P_("Action group to launch actions from"),
+ g_param_spec_object ("action-group", NULL, NULL,
G_TYPE_ACTION_GROUP,
GTK_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY);
pspecs[PROP_PAD] =
- g_param_spec_object ("pad",
- P_("Pad device"),
- P_("Pad device to control"),
+ g_param_spec_object ("pad", NULL, NULL,
GDK_TYPE_DEVICE,
GTK_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY);
diff --git a/gtk/gtkpaned.c b/gtk/gtkpaned.c
index bc7591a3d7..e5508fc645 100644
--- a/gtk/gtkpaned.c
+++ b/gtk/gtkpaned.c
@@ -422,9 +422,7 @@ gtk_paned_class_init (GtkPanedClass *class)
* Position of the separator in pixels, from the left/top.
*/
paned_props[PROP_POSITION] =
- g_param_spec_int ("position",
- P_("Position"),
- P_("Position of paned separator in pixels (0 means all the way to the left/top)"),
+ g_param_spec_int ("position", NULL, NULL,
0, G_MAXINT, 0,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -434,9 +432,7 @@ gtk_paned_class_init (GtkPanedClass *class)
* Whether the [property@Gtk.Paned:position] property has been set.
*/
paned_props[PROP_POSITION_SET] =
- g_param_spec_boolean ("position-set",
- P_("Position Set"),
- P_("TRUE if the Position property should be used"),
+ g_param_spec_boolean ("position-set", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -450,9 +446,7 @@ gtk_paned_class_init (GtkPanedClass *class)
* of the widget's children.
*/
paned_props[PROP_MIN_POSITION] =
- g_param_spec_int ("min-position",
- P_("Minimal Position"),
- P_("Smallest possible value for the “position” property"),
+ g_param_spec_int ("min-position", NULL, NULL,
0, G_MAXINT, 0,
GTK_PARAM_READABLE|G_PARAM_EXPLICIT_NOTIFY);
@@ -466,9 +460,7 @@ gtk_paned_class_init (GtkPanedClass *class)
* of the widget's children.
*/
paned_props[PROP_MAX_POSITION] =
- g_param_spec_int ("max-position",
- P_("Maximal Position"),
- P_("Largest possible value for the “position” property"),
+ g_param_spec_int ("max-position", NULL, NULL,
0, G_MAXINT, G_MAXINT,
GTK_PARAM_READABLE|G_PARAM_EXPLICIT_NOTIFY);
@@ -481,9 +473,7 @@ gtk_paned_class_init (GtkPanedClass *class)
* [class@Gtk.Notebook]s, whose tab rows would otherwise merge visually.
*/
paned_props[PROP_WIDE_HANDLE] =
- g_param_spec_boolean ("wide-handle",
- P_("Wide Handle"),
- P_("Whether the paned should have a prominent handle"),
+ g_param_spec_boolean ("wide-handle", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -494,9 +484,7 @@ gtk_paned_class_init (GtkPanedClass *class)
* along with the paned widget.
*/
paned_props[PROP_RESIZE_START_CHILD] =
- g_param_spec_boolean ("resize-start-child",
- P_("Resize first child"),
- P_("If TRUE, the first child expands and shrinks along with the paned widget"),
+ g_param_spec_boolean ("resize-start-child", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -507,9 +495,7 @@ gtk_paned_class_init (GtkPanedClass *class)
* along with the paned widget.
*/
paned_props[PROP_RESIZE_END_CHILD] =
- g_param_spec_boolean ("resize-end-child",
- P_("Resize second child"),
- P_("If TRUE, the second child expands and shrinks along with the paned widget"),
+ g_param_spec_boolean ("resize-end-child", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -520,9 +506,7 @@ gtk_paned_class_init (GtkPanedClass *class)
* than its requisition.
*/
paned_props[PROP_SHRINK_START_CHILD] =
- g_param_spec_boolean ("shrink-start-child",
- P_("Shrink first child"),
- P_("If TRUE, the first child can be made smaller than its requisition"),
+ g_param_spec_boolean ("shrink-start-child", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -533,9 +517,7 @@ gtk_paned_class_init (GtkPanedClass *class)
* than its requisition.
*/
paned_props[PROP_SHRINK_END_CHILD] =
- g_param_spec_boolean ("shrink-end-child",
- P_("Shrink second child"),
- P_("If TRUE, the second child can be made smaller than its requisition"),
+ g_param_spec_boolean ("shrink-end-child", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -545,9 +527,7 @@ gtk_paned_class_init (GtkPanedClass *class)
* The first child.
*/
paned_props[PROP_START_CHILD] =
- g_param_spec_object ("start-child",
- P_("First child"),
- P_("The first child"),
+ g_param_spec_object ("start-child", NULL, NULL,
GTK_TYPE_WIDGET,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -557,9 +537,7 @@ gtk_paned_class_init (GtkPanedClass *class)
* The second child.
*/
paned_props[PROP_END_CHILD] =
- g_param_spec_object ("end-child",
- P_("Second child"),
- P_("The second child"),
+ g_param_spec_object ("end-child", NULL, NULL,
GTK_TYPE_WIDGET,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtkpasswordentry.c b/gtk/gtkpasswordentry.c
index f0b90f942f..b0ab04836f 100644
--- a/gtk/gtkpasswordentry.c
+++ b/gtk/gtkpasswordentry.c
@@ -463,9 +463,7 @@ gtk_password_entry_class_init (GtkPasswordEntryClass *klass)
* when it is empty and unfocused.
*/
props[PROP_PLACEHOLDER_TEXT] =
- g_param_spec_string ("placeholder-text",
- P_("Placeholder text"),
- P_("Show text in the entry when it’s empty and unfocused"),
+ g_param_spec_string ("placeholder-text", NULL, NULL,
NULL,
GTK_PARAM_READWRITE);
@@ -475,9 +473,7 @@ gtk_password_entry_class_init (GtkPasswordEntryClass *klass)
* Whether to activate the default widget when Enter is pressed.
*/
props[PROP_ACTIVATES_DEFAULT] =
- g_param_spec_boolean ("activates-default",
- P_("Activates default"),
- P_("Whether to activate the default widget (such as the default button in a dialog) when Enter is pressed"),
+ g_param_spec_boolean ("activates-default", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -487,9 +483,7 @@ gtk_password_entry_class_init (GtkPasswordEntryClass *klass)
* Whether to show an icon for revealing the content.
*/
props[PROP_SHOW_PEEK_ICON] =
- g_param_spec_boolean ("show-peek-icon",
- P_("Show Peek Icon"),
- P_("Whether to show an icon for revealing the content"),
+ g_param_spec_boolean ("show-peek-icon", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -500,9 +494,7 @@ gtk_password_entry_class_init (GtkPasswordEntryClass *klass)
* the context menu.
*/
props[PROP_EXTRA_MENU] =
- g_param_spec_object ("extra-menu",
- P_("Extra menu"),
- P_("Model menu to append to the context menu"),
+ g_param_spec_object ("extra-menu", NULL, NULL,
G_TYPE_MENU_MODEL,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtkpicture.c b/gtk/gtkpicture.c
index cf7cd61f83..8de6cc0832 100644
--- a/gtk/gtkpicture.c
+++ b/gtk/gtkpicture.c
@@ -328,9 +328,7 @@ gtk_picture_class_init (GtkPictureClass *class)
* The `GdkPaintable` to be displayed by this `GtkPicture`.
*/
properties[PROP_PAINTABLE] =
- g_param_spec_object ("paintable",
- P_("Paintable"),
- P_("The GdkPaintable to display"),
+ g_param_spec_object ("paintable", NULL, NULL,
GDK_TYPE_PAINTABLE,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -340,9 +338,7 @@ gtk_picture_class_init (GtkPictureClass *class)
* The `GFile` that is displayed or %NULL if none.
*/
properties[PROP_FILE] =
- g_param_spec_object ("file",
- P_("File"),
- P_("File to load and display"),
+ g_param_spec_object ("file", NULL, NULL,
G_TYPE_FILE,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -352,9 +348,7 @@ gtk_picture_class_init (GtkPictureClass *class)
* The alternative textual description for the picture.
*/
properties[PROP_ALTERNATIVE_TEXT] =
- g_param_spec_string ("alternative-text",
- P_("Alternative text"),
- P_("The alternative textual description"),
+ g_param_spec_string ("alternative-text", NULL, NULL,
NULL,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -365,9 +359,7 @@ gtk_picture_class_init (GtkPictureClass *class)
* ratio.
*/
properties[PROP_KEEP_ASPECT_RATIO] =
- g_param_spec_boolean ("keep-aspect-ratio",
- P_("Keep aspect ratio"),
- P_("Render contents respecting the aspect ratio"),
+ g_param_spec_boolean ("keep-aspect-ratio", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -377,9 +369,7 @@ gtk_picture_class_init (GtkPictureClass *class)
* If the `GtkPicture` can be made smaller than the natural size of its contents.
*/
properties[PROP_CAN_SHRINK] =
- g_param_spec_boolean ("can-shrink",
- P_("Can shrink"),
- P_("Allow self to be smaller than contents"),
+ g_param_spec_boolean ("can-shrink", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c
index 89f5b69ff1..f4d28454a1 100644
--- a/gtk/gtkplacessidebar.c
+++ b/gtk/gtkplacessidebar.c
@@ -4324,52 +4324,36 @@ gtk_places_sidebar_class_init (GtkPlacesSidebarClass *class)
GTK_TYPE_PLACES_OPEN_FLAGS);
properties[PROP_LOCATION] =
- g_param_spec_object ("location",
- P_("Location to Select"),
- P_("The location to highlight in the sidebar"),
+ g_param_spec_object ("location", NULL, NULL,
G_TYPE_FILE,
GTK_PARAM_READWRITE);
properties[PROP_OPEN_FLAGS] =
- g_param_spec_flags ("open-flags",
- P_("Open Flags"),
- P_("Modes in which the calling application can open locations selected in the sidebar"),
+ g_param_spec_flags ("open-flags", NULL, NULL,
GTK_TYPE_PLACES_OPEN_FLAGS,
GTK_PLACES_OPEN_NORMAL,
GTK_PARAM_READWRITE);
properties[PROP_SHOW_RECENT] =
- g_param_spec_boolean ("show-recent",
- P_("Show recent files"),
- P_("Whether the sidebar includes a builtin shortcut for recent files"),
+ g_param_spec_boolean ("show-recent", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE);
properties[PROP_SHOW_DESKTOP] =
- g_param_spec_boolean ("show-desktop",
- P_("Show “Desktop”"),
- P_("Whether the sidebar includes a builtin shortcut to the Desktop folder"),
+ g_param_spec_boolean ("show-desktop", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE);
properties[PROP_SHOW_ENTER_LOCATION] =
- g_param_spec_boolean ("show-enter-location",
- P_("Show “Enter Location”"),
- P_("Whether the sidebar includes a builtin shortcut to manually enter a location"),
+ g_param_spec_boolean ("show-enter-location", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE);
properties[PROP_SHOW_TRASH] =
- g_param_spec_boolean ("show-trash",
- P_("Show “Trash”"),
- P_("Whether the sidebar includes a builtin shortcut to the Trash location"),
+ g_param_spec_boolean ("show-trash", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE);
properties[PROP_SHOW_OTHER_LOCATIONS] =
- g_param_spec_boolean ("show-other-locations",
- P_("Show “Other locations”"),
- P_("Whether the sidebar includes an item to show external locations"),
+ g_param_spec_boolean ("show-other-locations", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE);
properties[PROP_SHOW_STARRED_LOCATION] =
- g_param_spec_boolean ("show-starred-location",
- P_("Show “Starred Location”"),
- P_("Whether the sidebar includes an item to show starred files"),
+ g_param_spec_boolean ("show-starred-location", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE);
diff --git a/gtk/gtkplacesview.c b/gtk/gtkplacesview.c
index cb13276513..d62f8f2a40 100644
--- a/gtk/gtkplacesview.c
+++ b/gtk/gtkplacesview.c
@@ -2244,23 +2244,17 @@ gtk_places_view_class_init (GtkPlacesViewClass *klass)
G_TYPE_STRING);
properties[PROP_LOADING] =
- g_param_spec_boolean ("loading",
- P_("Loading"),
- P_("Whether the view is loading locations"),
+ g_param_spec_boolean ("loading", NULL, NULL,
FALSE,
GTK_PARAM_READABLE);
properties[PROP_FETCHING_NETWORKS] =
- g_param_spec_boolean ("fetching-networks",
- P_("Fetching networks"),
- P_("Whether the view is fetching networks"),
+ g_param_spec_boolean ("fetching-networks", NULL, NULL,
FALSE,
GTK_PARAM_READABLE);
properties[PROP_OPEN_FLAGS] =
- g_param_spec_flags ("open-flags",
- P_("Open Flags"),
- P_("Modes in which the calling application can open locations selected in the sidebar"),
+ g_param_spec_flags ("open-flags", NULL, NULL,
GTK_TYPE_PLACES_OPEN_FLAGS,
GTK_PLACES_OPEN_NORMAL,
GTK_PARAM_READWRITE);
diff --git a/gtk/gtkplacesviewrow.c b/gtk/gtkplacesviewrow.c
index 51af16c465..d48a422e26 100644
--- a/gtk/gtkplacesviewrow.c
+++ b/gtk/gtkplacesviewrow.c
@@ -336,51 +336,37 @@ gtk_places_view_row_class_init (GtkPlacesViewRowClass *klass)
widget_class->size_allocate = gtk_places_view_row_size_allocate;
properties[PROP_ICON] =
- g_param_spec_object ("icon",
- P_("Icon of the row"),
- P_("The icon representing the volume"),
+ g_param_spec_object ("icon", NULL, NULL,
G_TYPE_ICON,
G_PARAM_READWRITE);
properties[PROP_NAME] =
- g_param_spec_string ("name",
- P_("Name of the volume"),
- P_("The name of the volume"),
+ g_param_spec_string ("name", NULL, NULL,
"",
G_PARAM_READWRITE);
properties[PROP_PATH] =
- g_param_spec_string ("path",
- P_("Path of the volume"),
- P_("The path of the volume"),
+ g_param_spec_string ("path", NULL, NULL,
"",
G_PARAM_READWRITE);
properties[PROP_VOLUME] =
- g_param_spec_object ("volume",
- P_("Volume represented by the row"),
- P_("The volume represented by the row"),
+ g_param_spec_object ("volume", NULL, NULL,
G_TYPE_VOLUME,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY);
properties[PROP_MOUNT] =
- g_param_spec_object ("mount",
- P_("Mount represented by the row"),
- P_("The mount point represented by the row, if any"),
+ g_param_spec_object ("mount", NULL, NULL,
G_TYPE_MOUNT,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY);
properties[PROP_FILE] =
- g_param_spec_object ("file",
- P_("File represented by the row"),
- P_("The file represented by the row, if any"),
+ g_param_spec_object ("file", NULL, NULL,
G_TYPE_FILE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY);
properties[PROP_IS_NETWORK] =
- g_param_spec_boolean ("is-network",
- P_("Whether the row represents a network location"),
- P_("Whether the row represents a network location"),
+ g_param_spec_boolean ("is-network", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY);
diff --git a/gtk/gtkpopover.c b/gtk/gtkpopover.c
index 2f4a33493e..d6f976daa7 100644
--- a/gtk/gtkpopover.c
+++ b/gtk/gtkpopover.c
@@ -1817,9 +1817,7 @@ gtk_popover_class_init (GtkPopoverClass *klass)
* Rectangle in the parent widget that the popover points to.
*/
properties[PROP_POINTING_TO] =
- g_param_spec_boxed ("pointing-to",
- P_("Pointing to"),
- P_("Rectangle the bubble window points to"),
+ g_param_spec_boxed ("pointing-to", NULL, NULL,
GDK_TYPE_RECTANGLE,
GTK_PARAM_READWRITE);
@@ -1829,9 +1827,7 @@ gtk_popover_class_init (GtkPopoverClass *klass)
* How to place the popover, relative to its parent.
*/
properties[PROP_POSITION] =
- g_param_spec_enum ("position",
- P_("Position"),
- P_("Position to place the bubble window"),
+ g_param_spec_enum ("position", NULL, NULL,
GTK_TYPE_POSITION_TYPE, GTK_POS_BOTTOM,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -1841,9 +1837,7 @@ gtk_popover_class_init (GtkPopoverClass *klass)
* Whether to dismiss the popover on outside clicks.
*/
properties[PROP_AUTOHIDE] =
- g_param_spec_boolean ("autohide",
- P_("Autohide"),
- P_("Whether to dismiss the popover on outside clicks"),
+ g_param_spec_boolean ("autohide", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -1853,9 +1847,7 @@ gtk_popover_class_init (GtkPopoverClass *klass)
* The default widget inside the popover.
*/
properties[PROP_DEFAULT_WIDGET] =
- g_param_spec_object ("default-widget",
- P_("Default widget"),
- P_("The default widget"),
+ g_param_spec_object ("default-widget", NULL, NULL,
GTK_TYPE_WIDGET,
GTK_PARAM_READWRITE|G_PARAM_STATIC_STRINGS|G_PARAM_EXPLICIT_NOTIFY);
@@ -1865,9 +1857,7 @@ gtk_popover_class_init (GtkPopoverClass *klass)
* Whether to draw an arrow.
*/
properties[PROP_HAS_ARROW] =
- g_param_spec_boolean ("has-arrow",
- P_("Has Arrow"),
- P_("Whether to draw an arrow"),
+ g_param_spec_boolean ("has-arrow", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -1877,9 +1867,7 @@ gtk_popover_class_init (GtkPopoverClass *klass)
* Whether mnemonics are currently visible in this popover.
*/
properties[PROP_MNEMONICS_VISIBLE] =
- g_param_spec_boolean ("mnemonics-visible",
- P_("Mnemonics visible"),
- P_("Whether mnemonics are currently visible in this popover"),
+ g_param_spec_boolean ("mnemonics-visible", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -1889,9 +1877,7 @@ gtk_popover_class_init (GtkPopoverClass *klass)
* The child widget.
*/
properties[PROP_CHILD] =
- g_param_spec_object ("child",
- P_("Child"),
- P_("The child widget"),
+ g_param_spec_object ("child", NULL, NULL,
GTK_TYPE_WIDGET,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -1903,9 +1889,7 @@ gtk_popover_class_init (GtkPopoverClass *klass)
* This is used to implement the expected behavior of submenus.
*/
properties[PROP_CASCADE_POPDOWN] =
- g_param_spec_boolean ("cascade-popdown",
- P_("Cascade popdown"),
- P_("Whether the popover pops down after a child popover"),
+ g_param_spec_boolean ("cascade-popdown", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtkpopovermenu.c b/gtk/gtkpopovermenu.c
index b2b9aab1ae..7b5a02cd7c 100644
--- a/gtk/gtkpopovermenu.c
+++ b/gtk/gtkpopovermenu.c
@@ -595,9 +595,7 @@ gtk_popover_menu_class_init (GtkPopoverMenuClass *klass)
*/
g_object_class_install_property (object_class,
PROP_VISIBLE_SUBMENU,
- g_param_spec_string ("visible-submenu",
- P_("Visible submenu"),
- P_("The name of the visible submenu"),
+ g_param_spec_string ("visible-submenu", NULL, NULL,
NULL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
@@ -608,9 +606,7 @@ gtk_popover_menu_class_init (GtkPopoverMenuClass *klass)
*/
g_object_class_install_property (object_class,
PROP_MENU_MODEL,
- g_param_spec_object ("menu-model",
- P_("Menu model"),
- P_("The model from which the menu is made."),
+ g_param_spec_object ("menu-model", NULL, NULL,
G_TYPE_MENU_MODEL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
diff --git a/gtk/gtkpopovermenubar.c b/gtk/gtkpopovermenubar.c
index a3fbd8fb09..2df1a22858 100644
--- a/gtk/gtkpopovermenubar.c
+++ b/gtk/gtkpopovermenubar.c
@@ -632,9 +632,7 @@ gtk_popover_menu_bar_class_init (GtkPopoverMenuBarClass *klass)
* The model should only contain submenus as toplevel elements.
*/
bar_props[PROP_MENU_MODEL] =
- g_param_spec_object ("menu-model",
- P_("Menu model"),
- P_("The model from which the bar is made."),
+ g_param_spec_object ("menu-model", NULL, NULL,
G_TYPE_MENU_MODEL,
GTK_PARAM_READWRITE);
diff --git a/gtk/gtkprintbackend.c b/gtk/gtkprintbackend.c
index 9e84ba3088..9e628a5704 100644
--- a/gtk/gtkprintbackend.c
+++ b/gtk/gtkprintbackend.c
@@ -268,9 +268,7 @@ gtk_print_backend_class_init (GtkPrintBackendClass *class)
g_object_class_install_property (object_class,
PROP_STATUS,
- g_param_spec_int ("status",
- "Status",
- "The status of the print backend",
+ g_param_spec_int ("status", NULL, NULL,
GTK_PRINT_BACKEND_STATUS_UNKNOWN,
GTK_PRINT_BACKEND_STATUS_UNAVAILABLE,
GTK_PRINT_BACKEND_STATUS_UNKNOWN,
diff --git a/gtk/gtkprinter.c b/gtk/gtkprinter.c
index 1507637157..0593d1573a 100644
--- a/gtk/gtkprinter.c
+++ b/gtk/gtkprinter.c
@@ -119,9 +119,7 @@ gtk_printer_class_init (GtkPrinterClass *class)
*/
g_object_class_install_property (G_OBJECT_CLASS (class),
PROP_NAME,
- g_param_spec_string ("name",
- P_("Name"),
- P_("Name of the printer"),
+ g_param_spec_string ("name", NULL, NULL,
"",
GTK_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
@@ -132,9 +130,7 @@ gtk_printer_class_init (GtkPrinterClass *class)
*/
g_object_class_install_property (G_OBJECT_CLASS (class),
PROP_BACKEND,
- g_param_spec_object ("backend",
- P_("Backend"),
- P_("Backend for the printer"),
+ g_param_spec_object ("backend", NULL, NULL,
GTK_TYPE_PRINT_BACKEND,
GTK_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
@@ -145,9 +141,7 @@ gtk_printer_class_init (GtkPrinterClass *class)
*/
g_object_class_install_property (G_OBJECT_CLASS (class),
PROP_IS_VIRTUAL,
- g_param_spec_boolean ("is-virtual",
- P_("Is Virtual"),
- P_("FALSE if this represents a real hardware printer"),
+ g_param_spec_boolean ("is-virtual", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
@@ -158,9 +152,7 @@ gtk_printer_class_init (GtkPrinterClass *class)
*/
g_object_class_install_property (G_OBJECT_CLASS (class),
PROP_ACCEPTS_PDF,
- g_param_spec_boolean ("accepts-pdf",
- P_("Accepts PDF"),
- P_("TRUE if this printer can accept PDF"),
+ g_param_spec_boolean ("accepts-pdf", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
@@ -171,9 +163,7 @@ gtk_printer_class_init (GtkPrinterClass *class)
*/
g_object_class_install_property (G_OBJECT_CLASS (class),
PROP_ACCEPTS_PS,
- g_param_spec_boolean ("accepts-ps",
- P_("Accepts PostScript"),
- P_("TRUE if this printer can accept PostScript"),
+ g_param_spec_boolean ("accepts-ps", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
@@ -184,9 +174,7 @@ gtk_printer_class_init (GtkPrinterClass *class)
*/
g_object_class_install_property (G_OBJECT_CLASS (class),
PROP_STATE_MESSAGE,
- g_param_spec_string ("state-message",
- P_("State Message"),
- P_("String giving the current state of the printer"),
+ g_param_spec_string ("state-message", NULL, NULL,
"",
GTK_PARAM_READABLE));
@@ -197,9 +185,7 @@ gtk_printer_class_init (GtkPrinterClass *class)
*/
g_object_class_install_property (G_OBJECT_CLASS (class),
PROP_LOCATION,
- g_param_spec_string ("location",
- P_("Location"),
- P_("The location of the printer"),
+ g_param_spec_string ("location", NULL, NULL,
"",
GTK_PARAM_READABLE));
@@ -210,9 +196,7 @@ gtk_printer_class_init (GtkPrinterClass *class)
*/
g_object_class_install_property (G_OBJECT_CLASS (class),
PROP_ICON_NAME,
- g_param_spec_string ("icon-name",
- P_("Icon Name"),
- P_("The icon name to use for the printer"),
+ g_param_spec_string ("icon-name", NULL, NULL,
"printer",
GTK_PARAM_READABLE));
@@ -223,9 +207,7 @@ gtk_printer_class_init (GtkPrinterClass *class)
*/
g_object_class_install_property (G_OBJECT_CLASS (class),
PROP_JOB_COUNT,
- g_param_spec_int ("job-count",
- P_("Job Count"),
- P_("Number of jobs queued in the printer"),
+ g_param_spec_int ("job-count", NULL, NULL,
0,
G_MAXINT,
0,
@@ -241,9 +223,7 @@ gtk_printer_class_init (GtkPrinterClass *class)
*/
g_object_class_install_property (G_OBJECT_CLASS (class),
PROP_PAUSED,
- g_param_spec_boolean ("paused",
- P_("Paused Printer"),
- P_("TRUE if this printer is paused"),
+ g_param_spec_boolean ("paused", NULL, NULL,
FALSE,
GTK_PARAM_READABLE));
@@ -254,9 +234,7 @@ gtk_printer_class_init (GtkPrinterClass *class)
*/
g_object_class_install_property (G_OBJECT_CLASS (class),
PROP_ACCEPTING_JOBS,
- g_param_spec_boolean ("accepting-jobs",
- P_("Accepting Jobs"),
- P_("TRUE if this printer is accepting new jobs"),
+ g_param_spec_boolean ("accepting-jobs", NULL, NULL,
TRUE,
GTK_PARAM_READABLE));
diff --git a/gtk/gtkprinteroption.c b/gtk/gtkprinteroption.c
index 3844fad593..7140c1f737 100644
--- a/gtk/gtkprinteroption.c
+++ b/gtk/gtkprinteroption.c
@@ -99,9 +99,7 @@ gtk_printer_option_class_init (GtkPrinterOptionClass *class)
g_object_class_install_property (G_OBJECT_CLASS (class),
PROP_VALUE,
- g_param_spec_string ("value",
- P_("Option Value"),
- P_("Value of the option"),
+ g_param_spec_string ("value", NULL, NULL,
"",
GTK_PARAM_READWRITE));
}
diff --git a/gtk/gtkprinteroptionwidget.c b/gtk/gtkprinteroptionwidget.c
index 0ccb6caeda..0ddef897ab 100644
--- a/gtk/gtkprinteroptionwidget.c
+++ b/gtk/gtkprinteroptionwidget.c
@@ -125,9 +125,7 @@ gtk_printer_option_widget_class_init (GtkPrinterOptionWidgetClass *class)
g_object_class_install_property (object_class,
PROP_SOURCE,
- g_param_spec_object ("source",
- P_("Source option"),
- P_("The PrinterOption backing this widget"),
+ g_param_spec_object ("source", NULL, NULL,
GTK_TYPE_PRINTER_OPTION,
GTK_PARAM_READWRITE | G_PARAM_CONSTRUCT));
@@ -359,13 +357,13 @@ gtk_string_pair_class_init (GtkStringPairClass *class)
object_class->set_property = gtk_string_pair_set_property;
object_class->get_property = gtk_string_pair_get_property;
- pspec = g_param_spec_string ("string", "String", "String",
+ pspec = g_param_spec_string ("string", NULL, NULL,
NULL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
g_object_class_install_property (object_class, PROP_STRING, pspec);
- pspec = g_param_spec_string ("id", "ID", "ID",
+ pspec = g_param_spec_string ("id", NULL, NULL,
NULL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
diff --git a/gtk/gtkprintjob.c b/gtk/gtkprintjob.c
index d04c506a7e..c9441948d5 100644
--- a/gtk/gtkprintjob.c
+++ b/gtk/gtkprintjob.c
@@ -143,9 +143,7 @@ gtk_print_job_class_init (GtkPrintJobClass *class)
*/
g_object_class_install_property (object_class,
PROP_TITLE,
- g_param_spec_string ("title",
- P_("Title"),
- P_("Title of the print job"),
+ g_param_spec_string ("title", NULL, NULL,
NULL,
GTK_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY));
@@ -157,9 +155,7 @@ gtk_print_job_class_init (GtkPrintJobClass *class)
*/
g_object_class_install_property (object_class,
PROP_PRINTER,
- g_param_spec_object ("printer",
- P_("Printer"),
- P_("Printer to print the job to"),
+ g_param_spec_object ("printer", NULL, NULL,
GTK_TYPE_PRINTER,
GTK_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY));
@@ -171,9 +167,7 @@ gtk_print_job_class_init (GtkPrintJobClass *class)
*/
g_object_class_install_property (object_class,
PROP_SETTINGS,
- g_param_spec_object ("settings",
- P_("Settings"),
- P_("Printer settings"),
+ g_param_spec_object ("settings", NULL, NULL,
GTK_TYPE_PRINT_SETTINGS,
GTK_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY));
@@ -185,9 +179,7 @@ gtk_print_job_class_init (GtkPrintJobClass *class)
*/
g_object_class_install_property (object_class,
PROP_PAGE_SETUP,
- g_param_spec_object ("page-setup",
- P_("Page Setup"),
- P_("Page Setup"),
+ g_param_spec_object ("page-setup", NULL, NULL,
GTK_TYPE_PAGE_SETUP,
GTK_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY));
@@ -200,11 +192,7 @@ gtk_print_job_class_init (GtkPrintJobClass *class)
*/
g_object_class_install_property (object_class,
PROP_TRACK_PRINT_STATUS,
- g_param_spec_boolean ("track-print-status",
- P_("Track Print Status"),
- P_("TRUE if the print job will continue to emit "
- "status-changed signals after the print data "
- "has been sent to the printer or print server."),
+ g_param_spec_boolean ("track-print-status", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE));
diff --git a/gtk/gtkprintoperation.c b/gtk/gtkprintoperation.c
index d3a7be011e..365bb91ee1 100644
--- a/gtk/gtkprintoperation.c
+++ b/gtk/gtkprintoperation.c
@@ -1082,9 +1082,7 @@ gtk_print_operation_class_init (GtkPrintOperationClass *class)
*/
g_object_class_install_property (gobject_class,
PROP_DEFAULT_PAGE_SETUP,
- g_param_spec_object ("default-page-setup",
- P_("Default Page Setup"),
- P_("The GtkPageSetup used by default"),
+ g_param_spec_object ("default-page-setup", NULL, NULL,
GTK_TYPE_PAGE_SETUP,
GTK_PARAM_READWRITE));
@@ -1099,9 +1097,7 @@ gtk_print_operation_class_init (GtkPrintOperationClass *class)
*/
g_object_class_install_property (gobject_class,
PROP_PRINT_SETTINGS,
- g_param_spec_object ("print-settings",
- P_("Print Settings"),
- P_("The GtkPrintSettings used for initializing the dialog"),
+ g_param_spec_object ("print-settings", NULL, NULL,
GTK_TYPE_PRINT_SETTINGS,
GTK_PARAM_READWRITE));
@@ -1116,9 +1112,7 @@ gtk_print_operation_class_init (GtkPrintOperationClass *class)
*/
g_object_class_install_property (gobject_class,
PROP_JOB_NAME,
- g_param_spec_string ("job-name",
- P_("Job Name"),
- P_("A string used for identifying the print job."),
+ g_param_spec_string ("job-name", NULL, NULL,
"",
GTK_PARAM_READWRITE));
@@ -1139,9 +1133,7 @@ gtk_print_operation_class_init (GtkPrintOperationClass *class)
*/
g_object_class_install_property (gobject_class,
PROP_N_PAGES,
- g_param_spec_int ("n-pages",
- P_("Number of Pages"),
- P_("The number of pages in the document."),
+ g_param_spec_int ("n-pages", NULL, NULL,
-1,
G_MAXINT,
-1,
@@ -1159,9 +1151,7 @@ gtk_print_operation_class_init (GtkPrintOperationClass *class)
*/
g_object_class_install_property (gobject_class,
PROP_CURRENT_PAGE,
- g_param_spec_int ("current-page",
- P_("Current Page"),
- P_("The current page in the document"),
+ g_param_spec_int ("current-page", NULL, NULL,
-1,
G_MAXINT,
-1,
@@ -1181,9 +1171,7 @@ gtk_print_operation_class_init (GtkPrintOperationClass *class)
*/
g_object_class_install_property (gobject_class,
PROP_USE_FULL_PAGE,
- g_param_spec_boolean ("use-full-page",
- P_("Use full page"),
- P_("TRUE if the origin of the context should be at the corner of the page and not the corner of the imageable area"),
+ g_param_spec_boolean ("use-full-page", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -1200,9 +1188,7 @@ gtk_print_operation_class_init (GtkPrintOperationClass *class)
*/
g_object_class_install_property (gobject_class,
PROP_TRACK_PRINT_STATUS,
- g_param_spec_boolean ("track-print-status",
- P_("Track Print Status"),
- P_("TRUE if the print operation will continue to report on the print job status after the print data has been sent to the printer or print server."),
+ g_param_spec_boolean ("track-print-status", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -1215,9 +1201,7 @@ gtk_print_operation_class_init (GtkPrintOperationClass *class)
*/
g_object_class_install_property (gobject_class,
PROP_UNIT,
- g_param_spec_enum ("unit",
- P_("Unit"),
- P_("The unit in which distances can be measured in the context"),
+ g_param_spec_enum ("unit", NULL, NULL,
GTK_TYPE_UNIT,
GTK_UNIT_NONE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -1230,9 +1214,7 @@ gtk_print_operation_class_init (GtkPrintOperationClass *class)
*/
g_object_class_install_property (gobject_class,
PROP_SHOW_PROGRESS,
- g_param_spec_boolean ("show-progress",
- P_("Show Dialog"),
- P_("TRUE if a progress dialog is shown while printing."),
+ g_param_spec_boolean ("show-progress", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -1252,9 +1234,7 @@ gtk_print_operation_class_init (GtkPrintOperationClass *class)
*/
g_object_class_install_property (gobject_class,
PROP_ALLOW_ASYNC,
- g_param_spec_boolean ("allow-async",
- P_("Allow Async"),
- P_("TRUE if print process may run asynchronous."),
+ g_param_spec_boolean ("allow-async", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -1274,9 +1254,7 @@ gtk_print_operation_class_init (GtkPrintOperationClass *class)
*/
g_object_class_install_property (gobject_class,
PROP_EXPORT_FILENAME,
- g_param_spec_string ("export-filename",
- P_("Export filename"),
- P_("Export filename"),
+ g_param_spec_string ("export-filename", NULL, NULL,
NULL,
GTK_PARAM_READWRITE));
@@ -1287,9 +1265,7 @@ gtk_print_operation_class_init (GtkPrintOperationClass *class)
*/
g_object_class_install_property (gobject_class,
PROP_STATUS,
- g_param_spec_enum ("status",
- P_("Status"),
- P_("The status of the print operation"),
+ g_param_spec_enum ("status", NULL, NULL,
GTK_TYPE_PRINT_STATUS,
GTK_PRINT_STATUS_INITIAL,
GTK_PARAM_READABLE|G_PARAM_EXPLICIT_NOTIFY));
@@ -1307,9 +1283,7 @@ gtk_print_operation_class_init (GtkPrintOperationClass *class)
*/
g_object_class_install_property (gobject_class,
PROP_STATUS_STRING,
- g_param_spec_string ("status-string",
- P_("Status String"),
- P_("A human-readable description of the status"),
+ g_param_spec_string ("status-string", NULL, NULL,
"",
GTK_PARAM_READABLE));
@@ -1325,9 +1299,7 @@ gtk_print_operation_class_init (GtkPrintOperationClass *class)
*/
g_object_class_install_property (gobject_class,
PROP_CUSTOM_TAB_LABEL,
- g_param_spec_string ("custom-tab-label",
- P_("Custom tab label"),
- P_("Label for the tab containing custom widgets."),
+ g_param_spec_string ("custom-tab-label", NULL, NULL,
NULL,
GTK_PARAM_READWRITE));
@@ -1340,9 +1312,7 @@ gtk_print_operation_class_init (GtkPrintOperationClass *class)
*/
g_object_class_install_property (gobject_class,
PROP_SUPPORT_SELECTION,
- g_param_spec_boolean ("support-selection",
- P_("Support Selection"),
- P_("TRUE if the print operation will support print of selection."),
+ g_param_spec_boolean ("support-selection", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -1356,9 +1326,7 @@ gtk_print_operation_class_init (GtkPrintOperationClass *class)
*/
g_object_class_install_property (gobject_class,
PROP_HAS_SELECTION,
- g_param_spec_boolean ("has-selection",
- P_("Has Selection"),
- P_("TRUE if a selection exists."),
+ g_param_spec_boolean ("has-selection", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -1371,9 +1339,7 @@ gtk_print_operation_class_init (GtkPrintOperationClass *class)
*/
g_object_class_install_property (gobject_class,
PROP_EMBED_PAGE_SETUP,
- g_param_spec_boolean ("embed-page-setup",
- P_("Embed Page Setup"),
- P_("TRUE if page setup combos are embedded in GtkPrintUnixDialog"),
+ g_param_spec_boolean ("embed-page-setup", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -1393,9 +1359,7 @@ gtk_print_operation_class_init (GtkPrintOperationClass *class)
*/
g_object_class_install_property (gobject_class,
PROP_N_PAGES_TO_PRINT,
- g_param_spec_int ("n-pages-to-print",
- P_("Number of Pages To Print"),
- P_("The number of pages that will be printed."),
+ g_param_spec_int ("n-pages-to-print", NULL, NULL,
-1,
G_MAXINT,
-1,
diff --git a/gtk/gtkprintunixdialog.c b/gtk/gtkprintunixdialog.c
index d6c98d41ec..14c15264ad 100644
--- a/gtk/gtkprintunixdialog.c
+++ b/gtk/gtkprintunixdialog.c
@@ -383,9 +383,7 @@ gtk_print_unix_dialog_class_init (GtkPrintUnixDialogClass *class)
*/
g_object_class_install_property (object_class,
PROP_PAGE_SETUP,
- g_param_spec_object ("page-setup",
- P_("Page Setup"),
- P_("The GtkPageSetup to use"),
+ g_param_spec_object ("page-setup", NULL, NULL,
GTK_TYPE_PAGE_SETUP,
GTK_PARAM_READWRITE));
@@ -396,9 +394,7 @@ gtk_print_unix_dialog_class_init (GtkPrintUnixDialogClass *class)
*/
g_object_class_install_property (object_class,
PROP_CURRENT_PAGE,
- g_param_spec_int ("current-page",
- P_("Current Page"),
- P_("The current page in the document"),
+ g_param_spec_int ("current-page", NULL, NULL,
-1,
G_MAXINT,
-1,
@@ -411,9 +407,7 @@ gtk_print_unix_dialog_class_init (GtkPrintUnixDialogClass *class)
*/
g_object_class_install_property (object_class,
PROP_PRINT_SETTINGS,
- g_param_spec_object ("print-settings",
- P_("Print Settings"),
- P_("The GtkPrintSettings used for initializing the dialog"),
+ g_param_spec_object ("print-settings", NULL, NULL,
GTK_TYPE_PRINT_SETTINGS,
GTK_PARAM_READWRITE));
@@ -424,9 +418,7 @@ gtk_print_unix_dialog_class_init (GtkPrintUnixDialogClass *class)
*/
g_object_class_install_property (object_class,
PROP_SELECTED_PRINTER,
- g_param_spec_object ("selected-printer",
- P_("Selected Printer"),
- P_("The GtkPrinter which is selected"),
+ g_param_spec_object ("selected-printer", NULL, NULL,
GTK_TYPE_PRINTER,
GTK_PARAM_READABLE));
@@ -437,9 +429,7 @@ gtk_print_unix_dialog_class_init (GtkPrintUnixDialogClass *class)
*/
g_object_class_install_property (object_class,
PROP_MANUAL_CAPABILITIES,
- g_param_spec_flags ("manual-capabilities",
- P_("Manual Capabilities"),
- P_("Capabilities the application can handle"),
+ g_param_spec_flags ("manual-capabilities", NULL, NULL,
GTK_TYPE_PRINT_CAPABILITIES,
0,
GTK_PARAM_READWRITE));
@@ -451,9 +441,7 @@ gtk_print_unix_dialog_class_init (GtkPrintUnixDialogClass *class)
*/
g_object_class_install_property (object_class,
PROP_SUPPORT_SELECTION,
- g_param_spec_boolean ("support-selection",
- P_("Support Selection"),
- P_("Whether the dialog supports selection"),
+ g_param_spec_boolean ("support-selection", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE));
@@ -464,9 +452,7 @@ gtk_print_unix_dialog_class_init (GtkPrintUnixDialogClass *class)
*/
g_object_class_install_property (object_class,
PROP_HAS_SELECTION,
- g_param_spec_boolean ("has-selection",
- P_("Has Selection"),
- P_("Whether the application has a selection"),
+ g_param_spec_boolean ("has-selection", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE));
@@ -477,9 +463,7 @@ gtk_print_unix_dialog_class_init (GtkPrintUnixDialogClass *class)
*/
g_object_class_install_property (object_class,
PROP_EMBED_PAGE_SETUP,
- g_param_spec_boolean ("embed-page-setup",
- P_("Embed Page Setup"),
- P_("TRUE if page setup combos are embedded in GtkPrintUnixDialog"),
+ g_param_spec_boolean ("embed-page-setup", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE));
diff --git a/gtk/gtkprogressbar.c b/gtk/gtkprogressbar.c
index ba5897821c..ac4526971f 100644
--- a/gtk/gtkprogressbar.c
+++ b/gtk/gtkprogressbar.c
@@ -184,9 +184,7 @@ gtk_progress_bar_class_init (GtkProgressBarClass *class)
* Invert the direction in which the progress bar grows.
*/
progress_props[PROP_INVERTED] =
- g_param_spec_boolean ("inverted",
- P_("Inverted"),
- P_("Invert the direction in which the progress bar grows"),
+ g_param_spec_boolean ("inverted", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -196,9 +194,7 @@ gtk_progress_bar_class_init (GtkProgressBarClass *class)
* The fraction of total work that has been completed.
*/
progress_props[PROP_FRACTION] =
- g_param_spec_double ("fraction",
- P_("Fraction"),
- P_("The fraction of total work that has been completed"),
+ g_param_spec_double ("fraction", NULL, NULL,
0.0, 1.0,
0.0,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -209,9 +205,7 @@ gtk_progress_bar_class_init (GtkProgressBarClass *class)
* The fraction of total progress to move the bounding block when pulsed.
*/
progress_props[PROP_PULSE_STEP] =
- g_param_spec_double ("pulse-step",
- P_("Pulse Step"),
- P_("The fraction of total progress to move the bouncing block when pulsed"),
+ g_param_spec_double ("pulse-step", NULL, NULL,
0.0, 1.0,
0.1,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -222,9 +216,7 @@ gtk_progress_bar_class_init (GtkProgressBarClass *class)
* Text to be displayed in the progress bar.
*/
progress_props[PROP_TEXT] =
- g_param_spec_string ("text",
- P_("Text"),
- P_("Text to be displayed in the progress bar"),
+ g_param_spec_string ("text", NULL, NULL,
NULL,
GTK_PARAM_READWRITE);
@@ -243,9 +235,7 @@ gtk_progress_bar_class_init (GtkProgressBarClass *class)
* to %TRUE and [property@Gtk.ProgressBar:text] to the empty string (not %NULL).
*/
progress_props[PROP_SHOW_TEXT] =
- g_param_spec_boolean ("show-text",
- P_("Show text"),
- P_("Whether the progress is shown as text."),
+ g_param_spec_boolean ("show-text", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -263,10 +253,7 @@ gtk_progress_bar_class_init (GtkProgressBarClass *class)
* progress bar's width is [method@Gtk.Widget.set_size_request].
*/
progress_props[PROP_ELLIPSIZE] =
- g_param_spec_enum ("ellipsize",
- P_("Ellipsize"),
- P_("The preferred place to ellipsize the string, if the progress bar "
- "does not have enough room to display the entire string, if at all."),
+ g_param_spec_enum ("ellipsize", NULL, NULL,
PANGO_TYPE_ELLIPSIZE_MODE,
PANGO_ELLIPSIZE_NONE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtkpropertylookuplistmodel.c b/gtk/gtkpropertylookuplistmodel.c
index caccf6653c..3d5038d87a 100644
--- a/gtk/gtkpropertylookuplistmodel.c
+++ b/gtk/gtkpropertylookuplistmodel.c
@@ -369,9 +369,7 @@ gtk_property_lookup_list_model_class_init (GtkPropertyLookupListModelClass *klas
* The `GType` for elements of this object
*/
properties[PROP_ITEM_TYPE] =
- g_param_spec_gtype ("item-type",
- P_("Item type"),
- P_("The type of elements of this object"),
+ g_param_spec_gtype ("item-type", NULL, NULL,
G_TYPE_OBJECT,
GTK_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_EXPLICIT_NOTIFY);
@@ -381,9 +379,7 @@ gtk_property_lookup_list_model_class_init (GtkPropertyLookupListModelClass *klas
* Name of the property used for lookups
*/
properties[PROP_PROPERTY] =
- g_param_spec_string ("property",
- P_("type"),
- P_("Name of the property used for lookups"),
+ g_param_spec_string ("property", NULL, NULL,
NULL,
GTK_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_EXPLICIT_NOTIFY);
@@ -393,9 +389,7 @@ gtk_property_lookup_list_model_class_init (GtkPropertyLookupListModelClass *klas
* The root object
*/
properties[PROP_OBJECT] =
- g_param_spec_object ("object",
- P_("Object"),
- P_("The root object"),
+ g_param_spec_object ("object", NULL, NULL,
G_TYPE_LIST_MODEL,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c
index f185ab6763..b5e95ba084 100644
--- a/gtk/gtkrange.c
+++ b/gtk/gtkrange.c
@@ -368,9 +368,7 @@ gtk_range_class_init (GtkRangeClass *class)
* The adjustment that is controlled by the range.
*/
properties[PROP_ADJUSTMENT] =
- g_param_spec_object ("adjustment",
- P_("Adjustment"),
- P_("The GtkAdjustment that contains the current value of this range object"),
+ g_param_spec_object ("adjustment", NULL, NULL,
GTK_TYPE_ADJUSTMENT,
GTK_PARAM_READWRITE|G_PARAM_CONSTRUCT);
@@ -380,9 +378,7 @@ gtk_range_class_init (GtkRangeClass *class)
* If %TRUE, the direction in which the slider moves is inverted.
*/
properties[PROP_INVERTED] =
- g_param_spec_boolean ("inverted",
- P_("Inverted"),
- P_("Invert direction slider moves to increase range value"),
+ g_param_spec_boolean ("inverted", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -393,9 +389,7 @@ gtk_range_class_init (GtkRangeClass *class)
* on the trough.
*/
properties[PROP_SHOW_FILL_LEVEL] =
- g_param_spec_boolean ("show-fill-level",
- P_("Show Fill Level"),
- P_("Whether to display a fill level indicator graphics on trough."),
+ g_param_spec_boolean ("show-fill-level", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -406,9 +400,7 @@ gtk_range_class_init (GtkRangeClass *class)
* upper boundary set by the fill level.
*/
properties[PROP_RESTRICT_TO_FILL_LEVEL] =
- g_param_spec_boolean ("restrict-to-fill-level",
- P_("Restrict to Fill Level"),
- P_("Whether to restrict the upper boundary to the fill level."),
+ g_param_spec_boolean ("restrict-to-fill-level", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -418,9 +410,7 @@ gtk_range_class_init (GtkRangeClass *class)
* The fill level (e.g. prebuffering of a network stream).
*/
properties[PROP_FILL_LEVEL] =
- g_param_spec_double ("fill-level",
- P_("Fill Level"),
- P_("The fill level."),
+ g_param_spec_double ("fill-level", NULL, NULL,
-G_MAXDOUBLE, G_MAXDOUBLE,
G_MAXDOUBLE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -434,9 +424,7 @@ gtk_range_class_init (GtkRangeClass *class)
* See [signal@Gtk.Range::change-value].
*/
properties[PROP_ROUND_DIGITS] =
- g_param_spec_int ("round-digits",
- P_("Round Digits"),
- P_("The number of digits to round the value to."),
+ g_param_spec_int ("round-digits", NULL, NULL,
-1, G_MAXINT,
-1,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtkrecentmanager.c b/gtk/gtkrecentmanager.c
index 32dd595beb..ecd1c0a224 100644
--- a/gtk/gtkrecentmanager.c
+++ b/gtk/gtkrecentmanager.c
@@ -267,9 +267,7 @@ gtk_recent_manager_class_init (GtkRecentManagerClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_FILENAME,
- g_param_spec_string ("filename",
- P_("Filename"),
- P_("The full path to the file to be used to store and read the list"),
+ g_param_spec_string ("filename", NULL, NULL,
NULL,
(G_PARAM_CONSTRUCT_ONLY | GTK_PARAM_READWRITE)));
@@ -280,9 +278,7 @@ gtk_recent_manager_class_init (GtkRecentManagerClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_SIZE,
- g_param_spec_int ("size",
- P_("Size"),
- P_("The size of the recently used resources list"),
+ g_param_spec_int ("size", NULL, NULL,
-1, G_MAXINT, 0,
GTK_PARAM_READABLE));
diff --git a/gtk/gtkrevealer.c b/gtk/gtkrevealer.c
index 25148b907c..35a6ce28ab 100644
--- a/gtk/gtkrevealer.c
+++ b/gtk/gtkrevealer.c
@@ -315,9 +315,7 @@ gtk_revealer_class_init (GtkRevealerClass *klass)
* The type of animation used to transition.
*/
props[PROP_TRANSITION_TYPE] =
- g_param_spec_enum ("transition-type",
- P_("Transition type"),
- P_("The type of animation used to transition"),
+ g_param_spec_enum ("transition-type", NULL, NULL,
GTK_TYPE_REVEALER_TRANSITION_TYPE,
GTK_REVEALER_TRANSITION_TYPE_SLIDE_DOWN,
GTK_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_EXPLICIT_NOTIFY);
@@ -328,9 +326,7 @@ gtk_revealer_class_init (GtkRevealerClass *klass)
* The animation duration, in milliseconds.
*/
props[PROP_TRANSITION_DURATION] =
- g_param_spec_uint ("transition-duration",
- P_("Transition duration"),
- P_("The animation duration, in milliseconds"),
+ g_param_spec_uint ("transition-duration", NULL, NULL,
0, G_MAXUINT, 250,
GTK_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_EXPLICIT_NOTIFY);
@@ -340,9 +336,7 @@ gtk_revealer_class_init (GtkRevealerClass *klass)
* Whether the revealer should reveal the child.
*/
props[PROP_REVEAL_CHILD] =
- g_param_spec_boolean ("reveal-child",
- P_("Reveal Child"),
- P_("Whether the container should reveal the child"),
+ g_param_spec_boolean ("reveal-child", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_EXPLICIT_NOTIFY);
@@ -352,9 +346,7 @@ gtk_revealer_class_init (GtkRevealerClass *klass)
* Whether the child is revealed and the animation target reached.
*/
props[PROP_CHILD_REVEALED] =
- g_param_spec_boolean ("child-revealed",
- P_("Child Revealed"),
- P_("Whether the child is revealed and the animation target reached"),
+ g_param_spec_boolean ("child-revealed", NULL, NULL,
FALSE,
GTK_PARAM_READABLE);
@@ -364,9 +356,7 @@ gtk_revealer_class_init (GtkRevealerClass *klass)
* The child widget.
*/
props[PROP_CHILD] =
- g_param_spec_object ("child",
- P_("Child"),
- P_("The child widget"),
+ g_param_spec_object ("child", NULL, NULL,
GTK_TYPE_WIDGET,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtkscale.c b/gtk/gtkscale.c
index d9620e9461..7d289d9363 100644
--- a/gtk/gtkscale.c
+++ b/gtk/gtkscale.c
@@ -677,9 +677,7 @@ gtk_scale_class_init (GtkScaleClass *class)
* The number of decimal places that are displayed in the value.
*/
properties[PROP_DIGITS] =
- g_param_spec_int ("digits",
- P_("Digits"),
- P_("The number of decimal places that are displayed in the value"),
+ g_param_spec_int ("digits", NULL, NULL,
-1, MAX_DIGITS,
1,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -690,9 +688,7 @@ gtk_scale_class_init (GtkScaleClass *class)
* Whether the current value is displayed as a string next to the slider.
*/
properties[PROP_DRAW_VALUE] =
- g_param_spec_boolean ("draw-value",
- P_("Draw Value"),
- P_("Whether the current value is displayed as a string next to the slider"),
+ g_param_spec_boolean ("draw-value", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -702,9 +698,7 @@ gtk_scale_class_init (GtkScaleClass *class)
* Whether the scale has an origin.
*/
properties[PROP_HAS_ORIGIN] =
- g_param_spec_boolean ("has-origin",
- P_("Has Origin"),
- P_("Whether the scale has an origin"),
+ g_param_spec_boolean ("has-origin", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -714,9 +708,7 @@ gtk_scale_class_init (GtkScaleClass *class)
* The position in which the current value is displayed.
*/
properties[PROP_VALUE_POS] =
- g_param_spec_enum ("value-pos",
- P_("Value Position"),
- P_("The position in which the current value is displayed"),
+ g_param_spec_enum ("value-pos", NULL, NULL,
GTK_TYPE_POSITION_TYPE,
GTK_POS_TOP,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtkscalebutton.c b/gtk/gtkscalebutton.c
index 311ea01192..4cda343249 100644
--- a/gtk/gtkscalebutton.c
+++ b/gtk/gtkscalebutton.c
@@ -193,9 +193,7 @@ gtk_scale_button_class_init (GtkScaleButtonClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_VALUE,
- g_param_spec_double ("value",
- P_("Value"),
- P_("The value of the scale"),
+ g_param_spec_double ("value", NULL, NULL,
-G_MAXDOUBLE,
G_MAXDOUBLE,
0,
@@ -208,9 +206,7 @@ gtk_scale_button_class_init (GtkScaleButtonClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_ADJUSTMENT,
- g_param_spec_object ("adjustment",
- P_("Adjustment"),
- P_("The GtkAdjustment that contains the current value of this scale button object"),
+ g_param_spec_object ("adjustment", NULL, NULL,
GTK_TYPE_ADJUSTMENT,
GTK_PARAM_READWRITE));
@@ -236,9 +232,7 @@ gtk_scale_button_class_init (GtkScaleButtonClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_ICONS,
- g_param_spec_boxed ("icons",
- P_("Icons"),
- P_("List of icon names"),
+ g_param_spec_boxed ("icons", NULL, NULL,
G_TYPE_STRV,
GTK_PARAM_READWRITE));
diff --git a/gtk/gtkscrollable.c b/gtk/gtkscrollable.c
index 4df0c170f6..1ffb11be9f 100644
--- a/gtk/gtkscrollable.c
+++ b/gtk/gtkscrollable.c
@@ -71,11 +71,7 @@ gtk_scrollable_default_init (GtkScrollableInterface *iface)
*
* This adjustment is shared between the scrollable widget and its parent.
*/
- pspec = g_param_spec_object ("hadjustment",
- P_("Horizontal adjustment"),
- P_("Horizontal adjustment that is shared "
- "between the scrollable widget and its "
- "controller"),
+ pspec = g_param_spec_object ("hadjustment", NULL, NULL,
GTK_TYPE_ADJUSTMENT,
GTK_PARAM_READWRITE | G_PARAM_CONSTRUCT);
g_object_interface_install_property (iface, pspec);
@@ -87,11 +83,7 @@ gtk_scrollable_default_init (GtkScrollableInterface *iface)
*
* This adjustment is shared between the scrollable widget and its parent.
*/
- pspec = g_param_spec_object ("vadjustment",
- P_("Vertical adjustment"),
- P_("Vertical adjustment that is shared "
- "between the scrollable widget and its "
- "controller"),
+ pspec = g_param_spec_object ("vadjustment", NULL, NULL,
GTK_TYPE_ADJUSTMENT,
GTK_PARAM_READWRITE | G_PARAM_CONSTRUCT);
g_object_interface_install_property (iface, pspec);
@@ -101,9 +93,7 @@ gtk_scrollable_default_init (GtkScrollableInterface *iface)
*
* Determines when horizontal scrolling should start.
*/
- pspec = g_param_spec_enum ("hscroll-policy",
- P_("Horizontal Scrollable Policy"),
- P_("How the size of the content should be determined"),
+ pspec = g_param_spec_enum ("hscroll-policy", NULL, NULL,
GTK_TYPE_SCROLLABLE_POLICY,
GTK_SCROLL_MINIMUM,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -114,9 +104,7 @@ gtk_scrollable_default_init (GtkScrollableInterface *iface)
*
* Determines when vertical scrolling should start.
*/
- pspec = g_param_spec_enum ("vscroll-policy",
- P_("Vertical Scrollable Policy"),
- P_("How the size of the content should be determined"),
+ pspec = g_param_spec_enum ("vscroll-policy", NULL, NULL,
GTK_TYPE_SCROLLABLE_POLICY,
GTK_SCROLL_MINIMUM,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtkscrollbar.c b/gtk/gtkscrollbar.c
index 50d8be5081..9a38ed2fd4 100644
--- a/gtk/gtkscrollbar.c
+++ b/gtk/gtkscrollbar.c
@@ -217,9 +217,7 @@ gtk_scrollbar_class_init (GtkScrollbarClass *class)
* The `GtkAdjustment` controlled by this scrollbar.
*/
props[PROP_ADJUSTMENT] =
- g_param_spec_object ("adjustment",
- P_("Adjustment"),
- P_("The GtkAdjustment that contains the current value of this scrollbar"),
+ g_param_spec_object ("adjustment", NULL, NULL,
GTK_TYPE_ADJUSTMENT,
GTK_PARAM_READWRITE|G_PARAM_CONSTRUCT);
diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c
index be1739b6ea..d2768d3ae0 100644
--- a/gtk/gtkscrolledwindow.c
+++ b/gtk/gtkscrolledwindow.c
@@ -602,9 +602,7 @@ gtk_scrolled_window_class_init (GtkScrolledWindowClass *class)
* The `GtkAdjustment` for the horizontal position.
*/
properties[PROP_HADJUSTMENT] =
- g_param_spec_object ("hadjustment",
- P_("Horizontal Adjustment"),
- P_("The GtkAdjustment for the horizontal position"),
+ g_param_spec_object ("hadjustment", NULL, NULL,
GTK_TYPE_ADJUSTMENT,
GTK_PARAM_READWRITE|G_PARAM_CONSTRUCT);
@@ -614,9 +612,7 @@ gtk_scrolled_window_class_init (GtkScrolledWindowClass *class)
* The `GtkAdjustment` for the vertical position.
*/
properties[PROP_VADJUSTMENT] =
- g_param_spec_object ("vadjustment",
- P_("Vertical Adjustment"),
- P_("The GtkAdjustment for the vertical position"),
+ g_param_spec_object ("vadjustment", NULL, NULL,
GTK_TYPE_ADJUSTMENT,
GTK_PARAM_READWRITE|G_PARAM_CONSTRUCT);
@@ -629,9 +625,7 @@ gtk_scrolled_window_class_init (GtkScrolledWindowClass *class)
* this property.
*/
properties[PROP_HSCROLLBAR_POLICY] =
- g_param_spec_enum ("hscrollbar-policy",
- P_("Horizontal Scrollbar Policy"),
- P_("When the horizontal scrollbar is displayed"),
+ g_param_spec_enum ("hscrollbar-policy", NULL, NULL,
GTK_TYPE_POLICY_TYPE,
GTK_POLICY_AUTOMATIC,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -645,9 +639,7 @@ gtk_scrolled_window_class_init (GtkScrolledWindowClass *class)
* this property.
*/
properties[PROP_VSCROLLBAR_POLICY] =
- g_param_spec_enum ("vscrollbar-policy",
- P_("Vertical Scrollbar Policy"),
- P_("When the vertical scrollbar is displayed"),
+ g_param_spec_enum ("vscrollbar-policy", NULL, NULL,
GTK_TYPE_POLICY_TYPE,
GTK_POLICY_AUTOMATIC,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -658,9 +650,7 @@ gtk_scrolled_window_class_init (GtkScrolledWindowClass *class)
* Where the contents are located with respect to the scrollbars.
*/
properties[PROP_WINDOW_PLACEMENT] =
- g_param_spec_enum ("window-placement",
- P_("Window Placement"),
- P_("Where the contents are located with respect to the scrollbars."),
+ g_param_spec_enum ("window-placement", NULL, NULL,
GTK_TYPE_CORNER_TYPE,
GTK_CORNER_TOP_LEFT,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -671,9 +661,7 @@ gtk_scrolled_window_class_init (GtkScrolledWindowClass *class)
* Whether to draw a frame around the contents.
*/
properties[PROP_HAS_FRAME] =
- g_param_spec_boolean ("has-frame",
- P_("Has Frame"),
- P_("Whether to draw a frame around the contents"),
+ g_param_spec_boolean ("has-frame", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -683,9 +671,7 @@ gtk_scrolled_window_class_init (GtkScrolledWindowClass *class)
* The minimum content width of @scrolled_window.
*/
properties[PROP_MIN_CONTENT_WIDTH] =
- g_param_spec_int ("min-content-width",
- P_("Minimum Content Width"),
- P_("The minimum width that the scrolled window will allocate to its content"),
+ g_param_spec_int ("min-content-width", NULL, NULL,
-1, G_MAXINT, -1,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -695,9 +681,7 @@ gtk_scrolled_window_class_init (GtkScrolledWindowClass *class)
* The minimum content height of @scrolled_window.
*/
properties[PROP_MIN_CONTENT_HEIGHT] =
- g_param_spec_int ("min-content-height",
- P_("Minimum Content Height"),
- P_("The minimum height that the scrolled window will allocate to its content"),
+ g_param_spec_int ("min-content-height", NULL, NULL,
-1, G_MAXINT, -1,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -709,9 +693,7 @@ gtk_scrolled_window_class_init (GtkScrolledWindowClass *class)
* Kinetic scrolling only applies to devices with source %GDK_SOURCE_TOUCHSCREEN.
*/
properties[PROP_KINETIC_SCROLLING] =
- g_param_spec_boolean ("kinetic-scrolling",
- P_("Kinetic Scrolling"),
- P_("Kinetic scrolling mode."),
+ g_param_spec_boolean ("kinetic-scrolling", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -728,9 +710,7 @@ gtk_scrolled_window_class_init (GtkScrolledWindowClass *class)
* the [property@Gtk.Settings:gtk-overlay-scrolling] setting.
*/
properties[PROP_OVERLAY_SCROLLING] =
- g_param_spec_boolean ("overlay-scrolling",
- P_("Overlay Scrolling"),
- P_("Overlay scrolling mode"),
+ g_param_spec_boolean ("overlay-scrolling", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -740,9 +720,7 @@ gtk_scrolled_window_class_init (GtkScrolledWindowClass *class)
* The maximum content width of @scrolled_window.
*/
properties[PROP_MAX_CONTENT_WIDTH] =
- g_param_spec_int ("max-content-width",
- P_("Maximum Content Width"),
- P_("The maximum width that the scrolled window will allocate to its content"),
+ g_param_spec_int ("max-content-width", NULL, NULL,
-1, G_MAXINT, -1,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -752,9 +730,7 @@ gtk_scrolled_window_class_init (GtkScrolledWindowClass *class)
* The maximum content height of @scrolled_window.
*/
properties[PROP_MAX_CONTENT_HEIGHT] =
- g_param_spec_int ("max-content-height",
- P_("Maximum Content Height"),
- P_("The maximum height that the scrolled window will allocate to its content"),
+ g_param_spec_int ("max-content-height", NULL, NULL,
-1, G_MAXINT, -1,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -768,9 +744,7 @@ gtk_scrolled_window_class_init (GtkScrolledWindowClass *class)
* enough space for the natural size of the child.
*/
properties[PROP_PROPAGATE_NATURAL_WIDTH] =
- g_param_spec_boolean ("propagate-natural-width",
- P_("Propagate Natural Width"),
- P_("Propagate Natural Width"),
+ g_param_spec_boolean ("propagate-natural-width", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -784,9 +758,7 @@ gtk_scrolled_window_class_init (GtkScrolledWindowClass *class)
* enough space for the natural size of the child.
*/
properties[PROP_PROPAGATE_NATURAL_HEIGHT] =
- g_param_spec_boolean ("propagate-natural-height",
- P_("Propagate Natural Height"),
- P_("Propagate Natural Height"),
+ g_param_spec_boolean ("propagate-natural-height", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -796,9 +768,7 @@ gtk_scrolled_window_class_init (GtkScrolledWindowClass *class)
* The child widget.
*/
properties[PROP_CHILD] =
- g_param_spec_object ("child",
- P_("Child"),
- P_("The child widget"),
+ g_param_spec_object ("child", NULL, NULL,
GTK_TYPE_WIDGET,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtksearchbar.c b/gtk/gtksearchbar.c
index edb9094db8..05f8a4d08a 100644
--- a/gtk/gtksearchbar.c
+++ b/gtk/gtksearchbar.c
@@ -307,9 +307,7 @@ gtk_search_bar_class_init (GtkSearchBarClass *klass)
*
* Whether the search mode is on and the search bar shown.
*/
- widget_props[PROP_SEARCH_MODE_ENABLED] = g_param_spec_boolean ("search-mode-enabled",
- P_("Search Mode Enabled"),
- P_("Whether the search mode is on and the search bar shown"),
+ widget_props[PROP_SEARCH_MODE_ENABLED] = g_param_spec_boolean ("search-mode-enabled", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -318,9 +316,7 @@ gtk_search_bar_class_init (GtkSearchBarClass *klass)
*
* Whether to show the close button in the search bar.
*/
- widget_props[PROP_SHOW_CLOSE_BUTTON] = g_param_spec_boolean ("show-close-button",
- P_("Show Close Button"),
- P_("Whether to show the close button in the toolbar"),
+ widget_props[PROP_SHOW_CLOSE_BUTTON] = g_param_spec_boolean ("show-close-button", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_CONSTRUCT|G_PARAM_EXPLICIT_NOTIFY);
@@ -329,9 +325,7 @@ gtk_search_bar_class_init (GtkSearchBarClass *klass)
*
* The child widget.
*/
- widget_props[PROP_CHILD] = g_param_spec_object ("child",
- P_("Child"),
- P_("The child widget"),
+ widget_props[PROP_CHILD] = g_param_spec_object ("child", NULL, NULL,
GTK_TYPE_WIDGET,
GTK_PARAM_READWRITE|G_PARAM_CONSTRUCT|G_PARAM_EXPLICIT_NOTIFY);
@@ -341,9 +335,7 @@ gtk_search_bar_class_init (GtkSearchBarClass *klass)
* The key capture widget.
*/
widget_props[PROP_KEY_CAPTURE_WIDGET]
- = g_param_spec_object ("key-capture-widget",
- P_("Key Capture Widget"),
- P_("Key Capture Widget"),
+ = g_param_spec_object ("key-capture-widget", NULL, NULL,
GTK_TYPE_WIDGET,
GTK_PARAM_READWRITE|G_PARAM_CONSTRUCT|G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtksearchentry.c b/gtk/gtksearchentry.c
index d583ca0d90..dcf5f9cf6f 100644
--- a/gtk/gtksearchentry.c
+++ b/gtk/gtksearchentry.c
@@ -305,9 +305,7 @@ gtk_search_entry_class_init (GtkSearchEntryClass *klass)
* when it is empty and unfocused.
*/
props[PROP_PLACEHOLDER_TEXT] =
- g_param_spec_string ("placeholder-text",
- P_("Placeholder text"),
- P_("Show text in the entry when it’s empty and unfocused"),
+ g_param_spec_string ("placeholder-text", NULL, NULL,
NULL,
GTK_PARAM_READWRITE);
@@ -317,9 +315,7 @@ gtk_search_entry_class_init (GtkSearchEntryClass *klass)
* Whether to activate the default widget when Enter is pressed.
*/
props[PROP_ACTIVATES_DEFAULT] =
- g_param_spec_boolean ("activates-default",
- P_("Activates default"),
- P_("Whether to activate the default widget (such as the default button in a dialog) when Enter is pressed"),
+ g_param_spec_boolean ("activates-default", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -332,9 +328,7 @@ gtk_search_entry_class_init (GtkSearchEntryClass *klass)
* Since: 4.8
*/
props[PROP_SEARCH_DELAY] =
- g_param_spec_uint ("search-delay",
- P_("Search delay"),
- P_("The delay from last keypress to the search-changed signal. If this is not set, it defaults to 150ms"),
+ g_param_spec_uint ("search-delay", NULL, NULL,
0, G_MAXUINT, 150,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtkselectionfiltermodel.c b/gtk/gtkselectionfiltermodel.c
index 398b88bc30..3745721d82 100644
--- a/gtk/gtkselectionfiltermodel.c
+++ b/gtk/gtkselectionfiltermodel.c
@@ -226,9 +226,7 @@ gtk_selection_filter_model_class_init (GtkSelectionFilterModelClass *class)
* The model being filtered.
*/
properties[PROP_MODEL] =
- g_param_spec_object ("model",
- P_("Model"),
- P_("The model being filtered"),
+ g_param_spec_object ("model", NULL, NULL,
GTK_TYPE_SELECTION_MODEL,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtksettings.c b/gtk/gtksettings.c
index fb303bb2e4..aeeba2ac6f 100644
--- a/gtk/gtksettings.c
+++ b/gtk/gtksettings.c
@@ -337,9 +337,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
* a double click, in milliseconds.
*/
result = settings_install_property_parser (class,
- g_param_spec_int ("gtk-double-click-time",
- P_("Double Click Time"),
- P_("Maximum time allowed between two clicks for them to be considered a double click (in milliseconds)"),
+ g_param_spec_int ("gtk-double-click-time", NULL, NULL,
0, G_MAXINT, 400,
GTK_PARAM_READWRITE));
g_assert (result == PROP_DOUBLE_CLICK_TIME);
@@ -351,9 +349,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
* a double click, in pixels.
*/
result = settings_install_property_parser (class,
- g_param_spec_int ("gtk-double-click-distance",
- P_("Double Click Distance"),
- P_("Maximum distance allowed between two clicks for them to be considered a double click (in pixels)"),
+ g_param_spec_int ("gtk-double-click-distance", NULL, NULL,
0, G_MAXINT, 5,
GTK_PARAM_READWRITE));
g_assert (result == PROP_DOUBLE_CLICK_DISTANCE);
@@ -367,9 +363,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
* which allows more flexible control over cursor blinking.
*/
result = settings_install_property_parser (class,
- g_param_spec_boolean ("gtk-cursor-blink",
- P_("Cursor Blink"),
- P_("Whether the cursor should blink"),
+ g_param_spec_boolean ("gtk-cursor-blink", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE));
g_assert (result == PROP_CURSOR_BLINK);
@@ -380,9 +374,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
* Length of the cursor blink cycle, in milliseconds.
*/
result = settings_install_property_parser (class,
- g_param_spec_int ("gtk-cursor-blink-time",
- P_("Cursor Blink Time"),
- P_("Length of the cursor blink cycle, in milliseconds"),
+ g_param_spec_int ("gtk-cursor-blink-time", NULL, NULL,
100, G_MAXINT, 1200,
GTK_PARAM_READWRITE));
g_assert (result == PROP_CURSOR_BLINK_TIME);
@@ -398,9 +390,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
* [property@Gtk.Settings:gtk-cursor-blink] to %FALSE.
*/
result = settings_install_property_parser (class,
- g_param_spec_int ("gtk-cursor-blink-timeout",
- P_("Cursor Blink Timeout"),
- P_("Time after which the cursor stops blinking, in seconds"),
+ g_param_spec_int ("gtk-cursor-blink-timeout", NULL, NULL,
1, G_MAXINT, 10,
GTK_PARAM_READWRITE));
g_assert (result == PROP_CURSOR_BLINK_TIMEOUT);
@@ -412,9 +402,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
* right-to-left text.
*/
result = settings_install_property_parser (class,
- g_param_spec_boolean ("gtk-split-cursor",
- P_("Split Cursor"),
- P_("Whether two cursors should be displayed for mixed left-to-right and right-to-left text"),
+ g_param_spec_boolean ("gtk-split-cursor", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE));
g_assert (result == PROP_SPLIT_CURSOR);
@@ -425,9 +413,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
* The aspect ratio of the text caret.
*/
result = settings_install_property_parser (class,
- g_param_spec_double ("gtk-cursor-aspect-ratio",
- P_("Cursor Aspect Ratio"),
- P_("The aspect ratio of the text caret"),
+ g_param_spec_double ("gtk-cursor-aspect-ratio", NULL, NULL,
0.0, 1.0, 0.04,
GTK_PARAM_READWRITE));
g_assert (result == PROP_CURSOR_ASPECT_RATIO);
@@ -441,9 +427,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
* GTK finds the CSS stylesheet for a theme.
*/
result = settings_install_property_parser (class,
- g_param_spec_string ("gtk-theme-name",
- P_("Theme Name"),
- P_("Name of theme to load"),
+ g_param_spec_string ("gtk-theme-name", NULL, NULL,
DEFAULT_THEME_NAME,
GTK_PARAM_READWRITE));
g_assert (result == PROP_THEME_NAME);
@@ -457,9 +441,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
* GTK handles icon themes.
*/
result = settings_install_property_parser (class,
- g_param_spec_string ("gtk-icon-theme-name",
- P_("Icon Theme Name"),
- P_("Name of icon theme to use"),
+ g_param_spec_string ("gtk-icon-theme-name", NULL, NULL,
DEFAULT_ICON_THEME,
GTK_PARAM_READWRITE));
g_assert (result == PROP_ICON_THEME_NAME);
@@ -470,9 +452,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
* The number of pixels the cursor can move before dragging.
*/
result = settings_install_property_parser (class,
- g_param_spec_int ("gtk-dnd-drag-threshold",
- P_("Drag threshold"),
- P_("Number of pixels the cursor can move before dragging"),
+ g_param_spec_int ("gtk-dnd-drag-threshold", NULL, NULL,
1, G_MAXINT, 8,
GTK_PARAM_READWRITE));
g_assert (result == PROP_DND_DRAG_THRESHOLD);
@@ -485,9 +465,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
* GTK uses the family name and size from this string.
*/
result = settings_install_property_parser (class,
- g_param_spec_string ("gtk-font-name",
- P_("Font Name"),
- P_("The default font family and size to use"),
+ g_param_spec_string ("gtk-font-name", NULL, NULL,
"Sans 10",
GTK_PARAM_READWRITE));
g_assert (result == PROP_FONT_NAME);
@@ -500,9 +478,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
* The values are 0 for no, 1 for yes, or -1 for the system default.
*/
result = settings_install_property_parser (class,
- g_param_spec_int ("gtk-xft-antialias",
- P_("Xft Antialias"),
- P_("Whether to antialias Xft fonts; 0=no, 1=yes, -1=default"),
+ g_param_spec_int ("gtk-xft-antialias", NULL, NULL,
-1, 1, -1,
GTK_PARAM_READWRITE));
@@ -516,9 +492,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
* The values are 0 for no, 1 for yes, or -1 for the system default.
*/
result = settings_install_property_parser (class,
- g_param_spec_int ("gtk-xft-hinting",
- P_("Xft Hinting"),
- P_("Whether to hint Xft fonts; 0=no, 1=yes, -1=default"),
+ g_param_spec_int ("gtk-xft-hinting", NULL, NULL,
-1, 1, -1,
GTK_PARAM_READWRITE));
@@ -533,9 +507,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
* hintmedium, hintfull.
*/
result = settings_install_property_parser (class,
- g_param_spec_string ("gtk-xft-hintstyle",
- P_("Xft Hint Style"),
- P_("What degree of hinting to use; hintnone, hintslight, hintmedium, or hintfull"),
+ g_param_spec_string ("gtk-xft-hintstyle", NULL, NULL,
NULL,
GTK_PARAM_READWRITE));
@@ -549,9 +521,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
* The possible values are none, rgb, bgr, vrgb, vbgr.
*/
result = settings_install_property_parser (class,
- g_param_spec_string ("gtk-xft-rgba",
- P_("Xft RGBA"),
- P_("Type of subpixel antialiasing; none, rgb, bgr, vrgb, vbgr"),
+ g_param_spec_string ("gtk-xft-rgba", NULL, NULL,
NULL,
GTK_PARAM_READWRITE));
@@ -566,9 +536,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
* -1 to use the default value.
*/
result = settings_install_property_parser (class,
- g_param_spec_int ("gtk-xft-dpi",
- P_("Xft DPI"),
- P_("Resolution for Xft, in 1024 * dots/inch. -1 to use default value"),
+ g_param_spec_int ("gtk-xft-dpi", NULL, NULL,
-1, 1024*1024, -1,
GTK_PARAM_READWRITE));
@@ -585,9 +553,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
* Since: 4.6
*/
result = settings_install_property_parser (class,
- g_param_spec_boolean ("gtk-hint-font-metrics",
- P_("Hint Font Metrics"),
- P_("Whether hinting should be applied to font metrics"),
+ g_param_spec_boolean ("gtk-hint-font-metrics", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE));
@@ -601,9 +567,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
* Use %NULL to use the default theme.
*/
result = settings_install_property_parser (class,
- g_param_spec_string ("gtk-cursor-theme-name",
- P_("Cursor theme name"),
- P_("Name of the cursor theme to use, or NULL to use the default theme"),
+ g_param_spec_string ("gtk-cursor-theme-name", NULL, NULL,
NULL,
GTK_PARAM_READWRITE));
g_assert (result == PROP_CURSOR_THEME_NAME);
@@ -616,9 +580,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
* 0 means to use the default size.
*/
result = settings_install_property_parser (class,
- g_param_spec_int ("gtk-cursor-theme-size",
- P_("Cursor theme size"),
- P_("Size to use for cursors, or 0 to use the default size"),
+ g_param_spec_int ("gtk-cursor-theme-size", NULL, NULL,
0, 128, 0,
GTK_PARAM_READWRITE));
@@ -630,9 +592,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
* Whether buttons in dialogs should use the alternative button order.
*/
result = settings_install_property_parser (class,
- g_param_spec_boolean ("gtk-alternative-button-order",
- P_("Alternative button order"),
- P_("Whether buttons in dialogs should use the alternative button order"),
+ g_param_spec_boolean ("gtk-alternative-button-order", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE));
g_assert (result == PROP_ALTERNATIVE_BUTTON_ORDER);
@@ -647,9 +607,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
* in ascending order. When set to %TRUE, this order will be inverted.
*/
result = settings_install_property_parser (class,
- g_param_spec_boolean ("gtk-alternative-sort-arrows",
- P_("Alternative sort indicator direction"),
- P_("Whether the direction of the sort indicators in list and tree views is inverted compared to the default (where down means ascending)"),
+ g_param_spec_boolean ("gtk-alternative-sort-arrows", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE));
g_assert (result == PROP_ALTERNATIVE_SORT_ARROWS);
@@ -660,9 +618,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
* Whether to enable toolkit-wide animations.
*/
result = settings_install_property_parser (class,
- g_param_spec_boolean ("gtk-enable-animations",
- P_("Enable Animations"),
- P_("Whether to enable toolkit-wide animations."),
+ g_param_spec_boolean ("gtk-enable-animations", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE));
@@ -679,9 +635,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
* ways, such as flashing the window or similar visual effects.
*/
result = settings_install_property_parser (class,
- g_param_spec_boolean ("gtk-error-bell",
- P_("Error Bell"),
- P_("When TRUE, keyboard navigation and other errors will cause a beep"),
+ g_param_spec_boolean ("gtk-error-bell", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE));
@@ -697,9 +651,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
* and may include "file", "cups", "lpr" or "papi".
*/
result = settings_install_property_parser (class,
- g_param_spec_string ("gtk-print-backends",
- P_("Default print backend"),
- P_("List of the GtkPrintBackend backends to use by default"),
+ g_param_spec_string ("gtk-print-backends", NULL, NULL,
GTK_PRINT_BACKENDS,
GTK_PARAM_READWRITE));
g_assert (result == PROP_PRINT_BACKENDS);
@@ -719,9 +671,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
* file and the print settings file when it is done.
*/
result = settings_install_property_parser (class,
- g_param_spec_string ("gtk-print-preview-command",
- P_("Default command to run when displaying a print preview"),
- P_("Command to run when displaying a print preview"),
+ g_param_spec_string ("gtk-print-preview-command", NULL, NULL,
PRINT_PREVIEW_COMMAND,
GTK_PARAM_READWRITE));
g_assert (result == PROP_PRINT_PREVIEW_COMMAND);
@@ -733,9 +683,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
* activated.
*/
result = settings_install_property_parser (class,
- g_param_spec_boolean ("gtk-enable-accels",
- P_("Enable Accelerators"),
- P_("Whether menu items should have accelerators"),
+ g_param_spec_boolean ("gtk-enable-accels", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE));
g_assert (result == PROP_ENABLE_ACCELS);
@@ -753,9 +701,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
* See [class@Gtk.IMContext].
*/
result = settings_install_property_parser (class,
- g_param_spec_string ("gtk-im-module",
- P_("Default IM module"),
- P_("Which IM module should be used by default"),
+ g_param_spec_string ("gtk-im-module", NULL, NULL,
NULL,
GTK_PARAM_READWRITE));
g_assert (result == PROP_IM_MODULE);
@@ -771,9 +717,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
* item will be removed.
*/
result = settings_install_property_parser (class,
- g_param_spec_int ("gtk-recent-files-max-age",
- P_("Recent Files Max Age"),
- P_("Maximum age of recently used files, in days"),
+ g_param_spec_int ("gtk-recent-files-max-age", NULL, NULL,
-1, G_MAXINT,
30,
GTK_PARAM_READWRITE));
@@ -785,9 +729,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
* Timestamp of the curent fontconfig configuration.
*/
result = settings_install_property_parser (class,
- g_param_spec_uint ("gtk-fontconfig-timestamp",
- P_("Fontconfig configuration timestamp"),
- P_("Timestamp of current fontconfig configuration"),
+ g_param_spec_uint ("gtk-fontconfig-timestamp", NULL, NULL,
0, G_MAXUINT, 0,
GTK_PARAM_READWRITE));
@@ -805,9 +747,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
* a loadable module like the one that comes with libcanberra.
*/
result = settings_install_property_parser (class,
- g_param_spec_string ("gtk-sound-theme-name",
- P_("Sound Theme Name"),
- P_("XDG sound theme name"),
+ g_param_spec_string ("gtk-sound-theme-name", NULL, NULL,
"freedesktop",
GTK_PARAM_READWRITE));
g_assert (result == PROP_SOUND_THEME_NAME);
@@ -824,10 +764,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
* module like the one that comes with libcanberra.
*/
result = settings_install_property_parser (class,
- g_param_spec_boolean ("gtk-enable-input-feedback-sounds",
- /* Translators: this means sounds that are played as feedback to user input */
- P_("Audible Input Feedback"),
- P_("Whether to play event sounds as feedback to user input"),
+ g_param_spec_boolean ("gtk-enable-input-feedback-sounds", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE));
g_assert (result == PROP_ENABLE_INPUT_FEEDBACK_SOUNDS);
@@ -844,9 +781,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
* module like the one that comes with libcanberra.
*/
result = settings_install_property_parser (class,
- g_param_spec_boolean ("gtk-enable-event-sounds",
- P_("Enable Event Sounds"),
- P_("Whether to play any event sounds at all"),
+ g_param_spec_boolean ("gtk-enable-event-sounds", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE));
g_assert (result == PROP_ENABLE_EVENT_SOUNDS);
@@ -866,9 +801,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
* mouse button.
*/
result = settings_install_property_parser (class,
- g_param_spec_boolean ("gtk-primary-button-warps-slider",
- P_("Primary button warps slider"),
- P_("Whether a primary click on the trough should warp the slider into position"),
+ g_param_spec_boolean ("gtk-primary-button-warps-slider", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE));
g_assert (result == PROP_PRIMARY_BUTTON_WARPS_SLIDER);
@@ -892,9 +825,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
* (web browser, text editor...).
*/
result = settings_install_property_parser (class,
- g_param_spec_boolean ("gtk-application-prefer-dark-theme",
- P_("Application prefers a dark theme"),
- P_("Whether the application prefers to have a dark theme."),
+ g_param_spec_boolean ("gtk-application-prefer-dark-theme", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE));
g_assert (result == PROP_APPLICATION_PREFER_DARK_THEME);
@@ -905,9 +836,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
* Whether to select the contents of an entry when it is focused.
*/
result = settings_install_property_parser (class,
- g_param_spec_boolean ("gtk-entry-select-on-focus",
- P_("Select on focus"),
- P_("Whether to select the contents of an entry when it is focused"),
+ g_param_spec_boolean ("gtk-entry-select-on-focus", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE));
g_assert (result == PROP_ENTRY_SELECT_ON_FOCUS);
@@ -922,9 +851,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
* last char. 600 is a good value for enabling it.
*/
result = settings_install_property_parser (class,
- g_param_spec_uint ("gtk-entry-password-hint-timeout",
- P_("Password Hint Timeout"),
- P_("How long to show the last input character in hidden entries"),
+ g_param_spec_uint ("gtk-entry-password-hint-timeout", NULL, NULL,
0, G_MAXUINT,
0,
GTK_PARAM_READWRITE));
@@ -937,9 +864,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
* label when it is focused.
*/
result = settings_install_property_parser (class,
- g_param_spec_boolean ("gtk-label-select-on-focus",
- P_("Select on focus"),
- P_("Whether to select the contents of a selectable label when it is focused"),
+ g_param_spec_boolean ("gtk-label-select-on-focus", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE));
g_assert (result == PROP_LABEL_SELECT_ON_FOCUS);
@@ -951,11 +876,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
* the app menu, %FALSE if the app should display it itself.
*/
result = settings_install_property_parser (class,
- g_param_spec_boolean ("gtk-shell-shows-app-menu",
- P_("Desktop shell shows app menu"),
- P_("Set to TRUE if the desktop environment "
- "is displaying the app menu, FALSE if "
- "the app should display it itself."),
+ g_param_spec_boolean ("gtk-shell-shows-app-menu", NULL, NULL,
FALSE, GTK_PARAM_READWRITE));
g_assert (result == PROP_SHELL_SHOWS_APP_MENU);
@@ -966,11 +887,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
* the menubar, %FALSE if the app should display it itself.
*/
result = settings_install_property_parser (class,
- g_param_spec_boolean ("gtk-shell-shows-menubar",
- P_("Desktop shell shows the menubar"),
- P_("Set to TRUE if the desktop environment "
- "is displaying the menubar, FALSE if "
- "the app should display it itself."),
+ g_param_spec_boolean ("gtk-shell-shows-menubar", NULL, NULL,
FALSE, GTK_PARAM_READWRITE));
g_assert (result == PROP_SHELL_SHOWS_MENUBAR);
@@ -981,11 +898,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
* the desktop folder, %FALSE if not.
*/
result = settings_install_property_parser (class,
- g_param_spec_boolean ("gtk-shell-shows-desktop",
- P_("Desktop environment shows the desktop folder"),
- P_("Set to TRUE if the desktop environment "
- "is displaying the desktop folder, FALSE "
- "if not."),
+ g_param_spec_boolean ("gtk-shell-shows-desktop", NULL, NULL,
TRUE, GTK_PARAM_READWRITE));
g_assert (result == PROP_SHELL_SHOWS_DESKTOP);
@@ -1014,9 +927,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
* [property@Gtk.HeaderBar:decoration-layout] property.
*/
result = settings_install_property_parser (class,
- g_param_spec_string ("gtk-decoration-layout",
- P_("Decoration Layout"),
- P_("The layout for window decorations"),
+ g_param_spec_string ("gtk-decoration-layout", NULL, NULL,
"menu:minimize,maximize,close", GTK_PARAM_READWRITE));
g_assert (result == PROP_DECORATION_LAYOUT);
@@ -1030,9 +941,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
* or none.
*/
result = settings_install_property_parser (class,
- g_param_spec_string ("gtk-titlebar-double-click",
- P_("Titlebar double-click action"),
- P_("The action to take on titlebar double-click"),
+ g_param_spec_string ("gtk-titlebar-double-click", NULL, NULL,
"toggle-maximize", GTK_PARAM_READWRITE));
g_assert (result == PROP_TITLEBAR_DOUBLE_CLICK);
@@ -1046,9 +955,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
* or none.
*/
result = settings_install_property_parser (class,
- g_param_spec_string ("gtk-titlebar-middle-click",
- P_("Titlebar middle-click action"),
- P_("The action to take on titlebar middle-click"),
+ g_param_spec_string ("gtk-titlebar-middle-click", NULL, NULL,
"none", GTK_PARAM_READWRITE));
g_assert (result == PROP_TITLEBAR_MIDDLE_CLICK);
@@ -1062,9 +969,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
* or none.
*/
result = settings_install_property_parser (class,
- g_param_spec_string ("gtk-titlebar-right-click",
- P_("Titlebar right-click action"),
- P_("The action to take on titlebar right-click"),
+ g_param_spec_string ("gtk-titlebar-right-click", NULL, NULL,
"menu", GTK_PARAM_READWRITE));
g_assert (result == PROP_TITLEBAR_RIGHT_CLICK);
@@ -1079,9 +984,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
* directly, or message dialogs.
*/
result = settings_install_property_parser (class,
- g_param_spec_boolean ("gtk-dialogs-use-header",
- P_("Dialogs use header bar"),
- P_("Whether builtin GTK dialogs should use a header bar instead of an action area."),
+ g_param_spec_boolean ("gtk-dialogs-use-header", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE));
g_assert (result == PROP_DIALOGS_USE_HEADER);
@@ -1093,9 +996,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
* 'PRIMARY' clipboard content at the cursor location.
*/
result = settings_install_property_parser (class,
- g_param_spec_boolean ("gtk-enable-primary-paste",
- P_("Enable primary paste"),
- P_("Whether a middle click on a mouse should paste the “PRIMARY” clipboard content at the cursor location."),
+ g_param_spec_boolean ("gtk-enable-primary-paste", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE));
g_assert (result == PROP_ENABLE_PRIMARY_PASTE);
@@ -1109,9 +1010,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
* If set to %FALSE, the list will always be empty.
*/
result = settings_install_property_parser (class,
- g_param_spec_boolean ("gtk-recent-files-enabled",
- P_("Recent Files Enabled"),
- P_("Whether GTK remembers recent files"),
+ g_param_spec_boolean ("gtk-recent-files-enabled", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE));
g_assert (result == PROP_RECENT_FILES_ENABLED);
@@ -1124,9 +1023,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
* See [class@Gtk.GestureLongPress].
*/
result = settings_install_property_parser (class,
- g_param_spec_uint ("gtk-long-press-time",
- P_("Long press time"),
- P_("Time for a button/touch press to be considered a long press (in milliseconds)"),
+ g_param_spec_uint ("gtk-long-press-time", NULL, NULL,
0, G_MAXINT, 500,
GTK_PARAM_READWRITE));
g_assert (result == PROP_LONG_PRESS_TIME);
@@ -1140,9 +1037,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
* This is useful when using a screen reader.
*/
result = settings_install_property_parser (class,
- g_param_spec_boolean ("gtk-keynav-use-caret",
- P_("Whether to show cursor in text"),
- P_("Whether to show cursor in text"),
+ g_param_spec_boolean ("gtk-keynav-use-caret", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE));
g_assert (result == PROP_KEYNAV_USE_CARET);
@@ -1156,9 +1051,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
* scrollbars.
*/
result = settings_install_property_parser (class,
- g_param_spec_boolean ("gtk-overlay-scrolling",
- P_("Whether to use overlay scrollbars"),
- P_("Whether to use overlay scrollbars"),
+ g_param_spec_boolean ("gtk-overlay-scrolling", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE));
g_assert (result == PROP_OVERLAY_SCROLLING);
diff --git a/gtk/gtkshortcut.c b/gtk/gtkshortcut.c
index 37620b6fb4..198746bec1 100644
--- a/gtk/gtkshortcut.c
+++ b/gtk/gtkshortcut.c
@@ -152,9 +152,7 @@ gtk_shortcut_class_init (GtkShortcutClass *klass)
* The action that gets activated by this shortcut.
*/
properties[PROP_ACTION] =
- g_param_spec_object ("action",
- P_("Action"),
- P_("The action activated by this shortcut"),
+ g_param_spec_object ("action", NULL, NULL,
GTK_TYPE_SHORTCUT_ACTION,
G_PARAM_READWRITE |
G_PARAM_EXPLICIT_NOTIFY |
@@ -166,9 +164,7 @@ gtk_shortcut_class_init (GtkShortcutClass *klass)
* Arguments passed to activation.
*/
properties[PROP_ARGUMENTS] =
- g_param_spec_variant ("arguments",
- P_("Arguments"),
- P_("Arguments passed to activation"),
+ g_param_spec_variant ("arguments", NULL, NULL,
G_VARIANT_TYPE_ANY,
NULL,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -179,9 +175,7 @@ gtk_shortcut_class_init (GtkShortcutClass *klass)
* The trigger that triggers this shortcut.
*/
properties[PROP_TRIGGER] =
- g_param_spec_object ("trigger",
- P_("Trigger"),
- P_("The trigger for this shortcut"),
+ g_param_spec_object ("trigger", NULL, NULL,
GTK_TYPE_SHORTCUT_TRIGGER,
G_PARAM_READWRITE |
G_PARAM_EXPLICIT_NOTIFY |
diff --git a/gtk/gtkshortcutaction.c b/gtk/gtkshortcutaction.c
index 969cdba46d..8239b0916c 100644
--- a/gtk/gtkshortcutaction.c
+++ b/gtk/gtkshortcutaction.c
@@ -946,9 +946,7 @@ gtk_signal_action_class_init (GtkSignalActionClass *klass)
* The name of the signal to emit.
*/
signal_props[SIGNAL_PROP_SIGNAL_NAME] =
- g_param_spec_string (I_("signal-name"),
- P_("Signal Name"),
- P_("The name of the signal to emit"),
+ g_param_spec_string (I_("signal-name"), NULL, NULL,
NULL,
G_PARAM_STATIC_STRINGS |
G_PARAM_READWRITE |
@@ -1188,9 +1186,7 @@ gtk_named_action_class_init (GtkNamedActionClass *klass)
* The name of the action to activate.
*/
named_props[NAMED_PROP_ACTION_NAME] =
- g_param_spec_string (I_("action-name"),
- P_("Action Name"),
- P_("The name of the action to activate"),
+ g_param_spec_string (I_("action-name"), NULL, NULL,
NULL,
G_PARAM_STATIC_STRINGS |
G_PARAM_READWRITE |
diff --git a/gtk/gtkshortcutcontroller.c b/gtk/gtkshortcutcontroller.c
index 5eb0187022..969242366e 100644
--- a/gtk/gtkshortcutcontroller.c
+++ b/gtk/gtkshortcutcontroller.c
@@ -568,9 +568,7 @@ gtk_shortcut_controller_class_init (GtkShortcutControllerClass *klass)
* The modifiers that need to be pressed to allow mnemonics activation.
*/
properties[PROP_MNEMONICS_MODIFIERS] =
- g_param_spec_flags ("mnemonic-modifiers",
- P_("Mnemonic modifiers"),
- P_("The modifiers to be pressed to allow mnemonics activation"),
+ g_param_spec_flags ("mnemonic-modifiers", NULL, NULL,
GDK_TYPE_MODIFIER_TYPE,
GDK_ALT_MASK,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -581,9 +579,7 @@ gtk_shortcut_controller_class_init (GtkShortcutControllerClass *klass)
* A list model to take shortcuts from.
*/
properties[PROP_MODEL] =
- g_param_spec_object ("model",
- P_("Model"),
- P_("A list model to take shortcuts from"),
+ g_param_spec_object ("model", NULL, NULL,
G_TYPE_LIST_MODEL,
G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -593,9 +589,7 @@ gtk_shortcut_controller_class_init (GtkShortcutControllerClass *klass)
* What scope the shortcuts will be handled in.
*/
properties[PROP_SCOPE] =
- g_param_spec_enum ("scope",
- P_("Scope"),
- P_("What scope the shortcuts will be handled in"),
+ g_param_spec_enum ("scope", NULL, NULL,
GTK_TYPE_SHORTCUT_SCOPE,
GTK_SHORTCUT_SCOPE_LOCAL,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
diff --git a/gtk/gtkshortcutlabel.c b/gtk/gtkshortcutlabel.c
index 1332fa47c5..53a227ab00 100644
--- a/gtk/gtkshortcutlabel.c
+++ b/gtk/gtkshortcutlabel.c
@@ -482,7 +482,7 @@ gtk_shortcut_label_class_init (GtkShortcutLabelClass *klass)
* for the accepted syntax.
*/
properties[PROP_ACCELERATOR] =
- g_param_spec_string ("accelerator", P_("Accelerator"), P_("Accelerator"),
+ g_param_spec_string ("accelerator", NULL, NULL,
NULL,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
@@ -492,7 +492,7 @@ gtk_shortcut_label_class_init (GtkShortcutLabelClass *klass)
* The text that is displayed when no accelerator is set.
*/
properties[PROP_DISABLED_TEXT] =
- g_param_spec_string ("disabled-text", P_("Disabled text"), P_("Disabled text"),
+ g_param_spec_string ("disabled-text", NULL, NULL,
NULL,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
diff --git a/gtk/gtkshortcutsgroup.c b/gtk/gtkshortcutsgroup.c
index 4c8cebd703..d51c12a3ba 100644
--- a/gtk/gtkshortcutsgroup.c
+++ b/gtk/gtkshortcutsgroup.c
@@ -276,7 +276,7 @@ gtk_shortcuts_group_class_init (GtkShortcutsGroupClass *klass)
* The title for this group of shortcuts.
*/
properties[PROP_TITLE] =
- g_param_spec_string ("title", P_("Title"), P_("Title"),
+ g_param_spec_string ("title", NULL, NULL,
"",
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
@@ -291,7 +291,7 @@ gtk_shortcuts_group_class_init (GtkShortcutsGroupClass *klass)
* Set this to %NULL to make the group always visible.
*/
properties[PROP_VIEW] =
- g_param_spec_string ("view", P_("View"), P_("View"),
+ g_param_spec_string ("view", NULL, NULL,
NULL,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
@@ -303,9 +303,7 @@ gtk_shortcuts_group_class_init (GtkShortcutsGroupClass *klass)
* This is used internally by GTK, and must not be modified by applications.
*/
properties[PROP_ACCEL_SIZE_GROUP] =
- g_param_spec_object ("accel-size-group",
- P_("Accelerator Size Group"),
- P_("Accelerator Size Group"),
+ g_param_spec_object ("accel-size-group", NULL, NULL,
GTK_TYPE_SIZE_GROUP,
(G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
@@ -317,9 +315,7 @@ gtk_shortcuts_group_class_init (GtkShortcutsGroupClass *klass)
* This is used internally by GTK, and must not be modified by applications.
*/
properties[PROP_TITLE_SIZE_GROUP] =
- g_param_spec_object ("title-size-group",
- P_("Title Size Group"),
- P_("Title Size Group"),
+ g_param_spec_object ("title-size-group", NULL, NULL,
GTK_TYPE_SIZE_GROUP,
(G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
@@ -331,7 +327,7 @@ gtk_shortcuts_group_class_init (GtkShortcutsGroupClass *klass)
* This is used internally by GTK, and is not useful for applications.
*/
properties[PROP_HEIGHT] =
- g_param_spec_uint ("height", P_("Height"), P_("Height"),
+ g_param_spec_uint ("height", NULL, NULL,
0, G_MAXUINT, 1,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
diff --git a/gtk/gtkshortcutssection.c b/gtk/gtkshortcutssection.c
index 1e9038a240..c7c5e5739e 100644
--- a/gtk/gtkshortcutssection.c
+++ b/gtk/gtkshortcutssection.c
@@ -293,7 +293,7 @@ gtk_shortcuts_section_class_init (GtkShortcutsSectionClass *klass)
* to this string will make this section shown in the `GtkShortcutsWindow`.
*/
properties[PROP_SECTION_NAME] =
- g_param_spec_string ("section-name", P_("Section Name"), P_("Section Name"),
+ g_param_spec_string ("section-name", NULL, NULL,
NULL,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
@@ -309,7 +309,7 @@ gtk_shortcuts_section_class_init (GtkShortcutsSectionClass *klass)
* for this purpose.
*/
properties[PROP_VIEW_NAME] =
- g_param_spec_string ("view-name", P_("View Name"), P_("View Name"),
+ g_param_spec_string ("view-name", NULL, NULL,
NULL,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY));
@@ -323,7 +323,7 @@ gtk_shortcuts_section_class_init (GtkShortcutsSectionClass *klass)
* since the section selector will not be shown in this case.
*/
properties[PROP_TITLE] =
- g_param_spec_string ("title", P_("Title"), P_("Title"),
+ g_param_spec_string ("title", NULL, NULL,
NULL,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
@@ -337,7 +337,7 @@ gtk_shortcuts_section_class_init (GtkShortcutsSectionClass *klass)
* value of 15 should work in most cases.
*/
properties[PROP_MAX_HEIGHT] =
- g_param_spec_uint ("max-height", P_("Maximum Height"), P_("Maximum Height"),
+ g_param_spec_uint ("max-height", NULL, NULL,
0, G_MAXUINT, 15,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY));
diff --git a/gtk/gtkshortcutsshortcut.c b/gtk/gtkshortcutsshortcut.c
index d04e367198..cf685d33c3 100644
--- a/gtk/gtkshortcutsshortcut.c
+++ b/gtk/gtkshortcutsshortcut.c
@@ -580,9 +580,7 @@ gtk_shortcuts_shortcut_class_init (GtkShortcutsShortcutClass *klass)
* in .ui files.
*/
properties[PROP_ACCELERATOR] =
- g_param_spec_string ("accelerator",
- P_("Accelerator"),
- P_("The accelerator keys for shortcuts of type “Accelerator”"),
+ g_param_spec_string ("accelerator", NULL, NULL,
NULL,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
@@ -597,9 +595,7 @@ gtk_shortcuts_shortcut_class_init (GtkShortcutsShortcutClass *klass)
* For the other predefined gesture types, GTK provides an icon on its own.
*/
properties[PROP_ICON] =
- g_param_spec_object ("icon",
- P_("Icon"),
- P_("The icon to show for shortcuts of type “Other Gesture”"),
+ g_param_spec_object ("icon", NULL, NULL,
G_TYPE_ICON,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
@@ -609,9 +605,7 @@ gtk_shortcuts_shortcut_class_init (GtkShortcutsShortcutClass *klass)
* %TRUE if an icon has been set.
*/
properties[PROP_ICON_SET] =
- g_param_spec_boolean ("icon-set",
- P_("Icon Set"),
- P_("Whether an icon has been set"),
+ g_param_spec_boolean ("icon-set", NULL, NULL,
FALSE,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
@@ -624,9 +618,7 @@ gtk_shortcuts_shortcut_class_init (GtkShortcutsShortcutClass *klass)
* This should be a short string that can fit in a single line.
*/
properties[PROP_TITLE] =
- g_param_spec_string ("title",
- P_("Title"),
- P_("A short description for the shortcut"),
+ g_param_spec_string ("title", NULL, NULL,
"",
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
@@ -640,9 +632,7 @@ gtk_shortcuts_shortcut_class_init (GtkShortcutsShortcutClass *klass)
* types, GTK provides a subtitle on its own.
*/
properties[PROP_SUBTITLE] =
- g_param_spec_string ("subtitle",
- P_("Subtitle"),
- P_("A short description for the gesture"),
+ g_param_spec_string ("subtitle", NULL, NULL,
"",
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
@@ -652,9 +642,7 @@ gtk_shortcuts_shortcut_class_init (GtkShortcutsShortcutClass *klass)
* %TRUE if a subtitle has been set.
*/
properties[PROP_SUBTITLE_SET] =
- g_param_spec_boolean ("subtitle-set",
- P_("Subtitle Set"),
- P_("Whether a subtitle has been set"),
+ g_param_spec_boolean ("subtitle-set", NULL, NULL,
FALSE,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
@@ -666,9 +654,7 @@ gtk_shortcuts_shortcut_class_init (GtkShortcutsShortcutClass *klass)
* This is used internally by GTK, and must not be modified by applications.
*/
properties[PROP_ACCEL_SIZE_GROUP] =
- g_param_spec_object ("accel-size-group",
- P_("Accelerator Size Group"),
- P_("Accelerator Size Group"),
+ g_param_spec_object ("accel-size-group", NULL, NULL,
GTK_TYPE_SIZE_GROUP,
(G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
@@ -680,9 +666,7 @@ gtk_shortcuts_shortcut_class_init (GtkShortcutsShortcutClass *klass)
* This is used internally by GTK, and must not be modified by applications.
*/
properties[PROP_TITLE_SIZE_GROUP] =
- g_param_spec_object ("title-size-group",
- P_("Title Size Group"),
- P_("Title Size Group"),
+ g_param_spec_object ("title-size-group", NULL, NULL,
GTK_TYPE_SIZE_GROUP,
(G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
@@ -695,9 +679,7 @@ gtk_shortcuts_shortcut_class_init (GtkShortcutsShortcutClass *klass)
* set this property to %GTK_TEXT_DIR_NONE.
*/
properties[PROP_DIRECTION] =
- g_param_spec_enum ("direction",
- P_("Direction"),
- P_("Text direction for which this shortcut is active"),
+ g_param_spec_enum ("direction", NULL, NULL,
GTK_TYPE_TEXT_DIRECTION,
GTK_TEXT_DIR_NONE,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY));
@@ -708,9 +690,7 @@ gtk_shortcuts_shortcut_class_init (GtkShortcutsShortcutClass *klass)
* The type of shortcut that is represented.
*/
properties[PROP_SHORTCUT_TYPE] =
- g_param_spec_enum ("shortcut-type",
- P_("Shortcut Type"),
- P_("The type of shortcut that is represented"),
+ g_param_spec_enum ("shortcut-type", NULL, NULL,
GTK_TYPE_SHORTCUT_TYPE,
GTK_SHORTCUT_ACCELERATOR,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY));
@@ -726,9 +706,7 @@ gtk_shortcuts_shortcut_class_init (GtkShortcutsShortcutClass *klass)
* setting [property@Gtk.ShortcutsShortcut:accelerator] is not necessary.
*/
properties[PROP_ACTION_NAME] =
- g_param_spec_string ("action-name",
- P_("Action Name"),
- P_("The name of the action"),
+ g_param_spec_string ("action-name", NULL, NULL,
NULL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtkshortcutswindow.c b/gtk/gtkshortcutswindow.c
index 6eff6a0ef1..7c864ec5cd 100644
--- a/gtk/gtkshortcutswindow.c
+++ b/gtk/gtkshortcutswindow.c
@@ -749,7 +749,7 @@ gtk_shortcuts_window_class_init (GtkShortcutsWindowClass *klass)
* objects that are in this shortcuts window.
*/
properties[PROP_SECTION_NAME] =
- g_param_spec_string ("section-name", P_("Section Name"), P_("Section Name"),
+ g_param_spec_string ("section-name", NULL, NULL,
"internal-search",
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
@@ -765,7 +765,7 @@ gtk_shortcuts_window_class_init (GtkShortcutsWindowClass *klass)
* Set this to %NULL to show all groups.
*/
properties[PROP_VIEW_NAME] =
- g_param_spec_string ("view-name", P_("View Name"), P_("View Name"),
+ g_param_spec_string ("view-name", NULL, NULL,
NULL,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
diff --git a/gtk/gtkshortcuttrigger.c b/gtk/gtkshortcuttrigger.c
index bd4cfce061..2d7b5b8ade 100644
--- a/gtk/gtkshortcuttrigger.c
+++ b/gtk/gtkshortcuttrigger.c
@@ -657,9 +657,7 @@ gtk_keyval_trigger_class_init (GtkKeyvalTriggerClass *klass)
* The key value for the trigger.
*/
keyval_props[KEYVAL_PROP_KEYVAL] =
- g_param_spec_uint (I_("keyval"),
- P_("Key value"),
- P_("The key value for the trigger"),
+ g_param_spec_uint (I_("keyval"), NULL, NULL,
0, G_MAXINT,
0,
G_PARAM_STATIC_STRINGS |
@@ -672,9 +670,7 @@ gtk_keyval_trigger_class_init (GtkKeyvalTriggerClass *klass)
* The key modifiers for the trigger.
*/
keyval_props[KEYVAL_PROP_MODIFIERS] =
- g_param_spec_flags (I_("modifiers"),
- P_("Modifiers"),
- P_("The key modifiers for the trigger"),
+ g_param_spec_flags (I_("modifiers"), NULL, NULL,
GDK_TYPE_MODIFIER_TYPE,
0,
G_PARAM_STATIC_STRINGS |
@@ -913,9 +909,7 @@ gtk_mnemonic_trigger_class_init (GtkMnemonicTriggerClass *klass)
* The key value for the trigger.
*/
mnemonic_props[KEYVAL_PROP_KEYVAL] =
- g_param_spec_uint (I_("keyval"),
- P_("Key value"),
- P_("The key value for the trigger"),
+ g_param_spec_uint (I_("keyval"), NULL, NULL,
0, G_MAXINT,
0,
G_PARAM_STATIC_STRINGS |
@@ -1159,9 +1153,7 @@ gtk_alternative_trigger_class_init (GtkAlternativeTriggerClass *klass)
* The first `GtkShortcutTrigger` to check.
*/
alternative_props[ALTERNATIVE_PROP_FIRST] =
- g_param_spec_object (I_("first"),
- P_("First"),
- P_("The first trigger to check"),
+ g_param_spec_object (I_("first"), NULL, NULL,
GTK_TYPE_SHORTCUT_TRIGGER,
G_PARAM_STATIC_STRINGS |
G_PARAM_CONSTRUCT_ONLY |
@@ -1173,9 +1165,7 @@ gtk_alternative_trigger_class_init (GtkAlternativeTriggerClass *klass)
* The second `GtkShortcutTrigger` to check.
*/
alternative_props[ALTERNATIVE_PROP_SECOND] =
- g_param_spec_object (I_("second"),
- P_("Second"),
- P_("The second trigger to check"),
+ g_param_spec_object (I_("second"), NULL, NULL,
GTK_TYPE_SHORTCUT_TRIGGER,
G_PARAM_STATIC_STRINGS |
G_PARAM_CONSTRUCT_ONLY |
diff --git a/gtk/gtksidebarrow.c b/gtk/gtksidebarrow.c
index 8dc2af293b..a471705aa6 100644
--- a/gtk/gtksidebarrow.c
+++ b/gtk/gtksidebarrow.c
@@ -475,66 +475,50 @@ gtk_sidebar_row_class_init (GtkSidebarRowClass *klass)
object_class->finalize = gtk_sidebar_row_finalize;
properties [PROP_SIDEBAR] =
- g_param_spec_object ("sidebar",
- "Sidebar",
- "Sidebar",
+ g_param_spec_object ("sidebar", NULL, NULL,
GTK_TYPE_PLACES_SIDEBAR,
(G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS));
properties [PROP_START_ICON] =
- g_param_spec_object ("start-icon",
- "start-icon",
- "The start icon.",
+ g_param_spec_object ("start-icon", NULL, NULL,
G_TYPE_ICON,
(G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));
properties [PROP_END_ICON] =
- g_param_spec_object ("end-icon",
- "end-icon",
- "The end icon.",
+ g_param_spec_object ("end-icon", NULL, NULL,
G_TYPE_ICON,
(G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));
properties [PROP_LABEL] =
- g_param_spec_string ("label",
- "label",
- "The label text.",
+ g_param_spec_string ("label", NULL, NULL,
NULL,
(G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));
properties [PROP_TOOLTIP] =
- g_param_spec_string ("tooltip",
- "Tooltip",
- "Tooltip",
+ g_param_spec_string ("tooltip", NULL, NULL,
NULL,
(G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));
properties [PROP_EJECTABLE] =
- g_param_spec_boolean ("ejectable",
- "Ejectable",
- "Ejectable",
+ g_param_spec_boolean ("ejectable", NULL, NULL,
FALSE,
(G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));
properties [PROP_ORDER_INDEX] =
- g_param_spec_int ("order-index",
- "OrderIndex",
- "Order Index",
+ g_param_spec_int ("order-index", NULL, NULL,
0, G_MAXINT, 0,
(G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));
properties [PROP_SECTION_TYPE] =
- g_param_spec_enum ("section-type",
- "section type",
- "The section type.",
+ g_param_spec_enum ("section-type", NULL, NULL,
GTK_TYPE_PLACES_SECTION_TYPE,
GTK_PLACES_SECTION_INVALID,
(G_PARAM_READWRITE |
@@ -542,9 +526,7 @@ gtk_sidebar_row_class_init (GtkSidebarRowClass *klass)
G_PARAM_CONSTRUCT_ONLY));
properties [PROP_PLACE_TYPE] =
- g_param_spec_enum ("place-type",
- "place type",
- "The place type.",
+ g_param_spec_enum ("place-type", NULL, NULL,
GTK_TYPE_PLACES_PLACE_TYPE,
GTK_PLACES_INVALID,
(G_PARAM_READWRITE |
@@ -552,53 +534,41 @@ gtk_sidebar_row_class_init (GtkSidebarRowClass *klass)
G_PARAM_CONSTRUCT_ONLY));
properties [PROP_URI] =
- g_param_spec_string ("uri",
- "Uri",
- "Uri",
+ g_param_spec_string ("uri", NULL, NULL,
NULL,
(G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS));
properties [PROP_DRIVE] =
- g_param_spec_object ("drive",
- "Drive",
- "Drive",
+ g_param_spec_object ("drive", NULL, NULL,
G_TYPE_DRIVE,
(G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS));
properties [PROP_VOLUME] =
- g_param_spec_object ("volume",
- "Volume",
- "Volume",
+ g_param_spec_object ("volume", NULL, NULL,
G_TYPE_VOLUME,
(G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS));
properties [PROP_MOUNT] =
- g_param_spec_object ("mount",
- "Mount",
- "Mount",
+ g_param_spec_object ("mount", NULL, NULL,
G_TYPE_MOUNT,
(G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS));
properties [PROP_CLOUD_PROVIDER_ACCOUNT] =
- g_param_spec_object ("cloud-provider-account",
- "CloudProvidersAccount",
- "CloudProvidersAccount",
+ g_param_spec_object ("cloud-provider-account", NULL, NULL,
G_TYPE_OBJECT,
(G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));
properties [PROP_PLACEHOLDER] =
- g_param_spec_boolean ("placeholder",
- "Placeholder",
- "Placeholder",
+ g_param_spec_boolean ("placeholder", NULL, NULL,
FALSE,
(G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |
diff --git a/gtk/gtksingleselection.c b/gtk/gtksingleselection.c
index d0d50c7304..27d62845f9 100644
--- a/gtk/gtksingleselection.c
+++ b/gtk/gtksingleselection.c
@@ -383,9 +383,7 @@ gtk_single_selection_class_init (GtkSingleSelectionClass *klass)
* If the selection will always select an item.
*/
properties[PROP_AUTOSELECT] =
- g_param_spec_boolean ("autoselect",
- P_("Autoselect"),
- P_("If the selection will always select an item"),
+ g_param_spec_boolean ("autoselect", NULL, NULL,
TRUE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -395,9 +393,7 @@ gtk_single_selection_class_init (GtkSingleSelectionClass *klass)
* If unselecting the selected item is allowed.
*/
properties[PROP_CAN_UNSELECT] =
- g_param_spec_boolean ("can-unselect",
- P_("Can unselect"),
- P_("If unselecting the selected item is allowed"),
+ g_param_spec_boolean ("can-unselect", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -407,9 +403,7 @@ gtk_single_selection_class_init (GtkSingleSelectionClass *klass)
* Position of the selected item.
*/
properties[PROP_SELECTED] =
- g_param_spec_uint ("selected",
- P_("Selected"),
- P_("Position of the selected item"),
+ g_param_spec_uint ("selected", NULL, NULL,
0, G_MAXUINT, GTK_INVALID_LIST_POSITION,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -419,9 +413,7 @@ gtk_single_selection_class_init (GtkSingleSelectionClass *klass)
* The selected item.
*/
properties[PROP_SELECTED_ITEM] =
- g_param_spec_object ("selected-item",
- P_("Selected Item"),
- P_("The selected item"),
+ g_param_spec_object ("selected-item", NULL, NULL,
G_TYPE_OBJECT,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
@@ -431,9 +423,7 @@ gtk_single_selection_class_init (GtkSingleSelectionClass *klass)
* The model being managed.
*/
properties[PROP_MODEL] =
- g_param_spec_object ("model",
- P_("The model"),
- P_("The model being managed"),
+ g_param_spec_object ("model", NULL, NULL,
G_TYPE_LIST_MODEL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
diff --git a/gtk/gtksizegroup.c b/gtk/gtksizegroup.c
index 4d8e760748..96845e7526 100644
--- a/gtk/gtksizegroup.c
+++ b/gtk/gtksizegroup.c
@@ -224,10 +224,7 @@ gtk_size_group_class_init (GtkSizeGroupClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_MODE,
- g_param_spec_enum ("mode",
- P_("Mode"),
- P_("The directions in which the size group affects the requested sizes"
- " of its component widgets"),
+ g_param_spec_enum ("mode", NULL, NULL,
GTK_TYPE_SIZE_GROUP_MODE,
GTK_SIZE_GROUP_HORIZONTAL,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
diff --git a/gtk/gtkslicelistmodel.c b/gtk/gtkslicelistmodel.c
index 2642d514a5..3af75754ed 100644
--- a/gtk/gtkslicelistmodel.c
+++ b/gtk/gtkslicelistmodel.c
@@ -256,9 +256,7 @@ gtk_slice_list_model_class_init (GtkSliceListModelClass *class)
* Child model to take slice from.
*/
properties[PROP_MODEL] =
- g_param_spec_object ("model",
- P_("Model"),
- P_("Child model to take slice from"),
+ g_param_spec_object ("model", NULL, NULL,
G_TYPE_LIST_MODEL,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -268,9 +266,7 @@ gtk_slice_list_model_class_init (GtkSliceListModelClass *class)
* Offset of slice.
*/
properties[PROP_OFFSET] =
- g_param_spec_uint ("offset",
- P_("Offset"),
- P_("Offset of slice"),
+ g_param_spec_uint ("offset", NULL, NULL,
0, G_MAXUINT, 0,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -280,9 +276,7 @@ gtk_slice_list_model_class_init (GtkSliceListModelClass *class)
* Maximum size of slice.
*/
properties[PROP_SIZE] =
- g_param_spec_uint ("size",
- P_("Size"),
- P_("Maximum size of slice"),
+ g_param_spec_uint ("size", NULL, NULL,
0, G_MAXUINT, DEFAULT_SIZE,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtksortlistmodel.c b/gtk/gtksortlistmodel.c
index 2d706ba521..46155cb60d 100644
--- a/gtk/gtksortlistmodel.c
+++ b/gtk/gtksortlistmodel.c
@@ -784,9 +784,7 @@ gtk_sort_list_model_class_init (GtkSortListModelClass *class)
* If the model should sort items incrementally.
*/
properties[PROP_INCREMENTAL] =
- g_param_spec_boolean ("incremental",
- P_("Incremental"),
- P_("Sort items incrementally"),
+ g_param_spec_boolean ("incremental", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -796,9 +794,7 @@ gtk_sort_list_model_class_init (GtkSortListModelClass *class)
* The model being sorted.
*/
properties[PROP_MODEL] =
- g_param_spec_object ("model",
- P_("Model"),
- P_("The model being sorted"),
+ g_param_spec_object ("model", NULL, NULL,
G_TYPE_LIST_MODEL,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -808,9 +804,7 @@ gtk_sort_list_model_class_init (GtkSortListModelClass *class)
* Estimate of unsorted items remaining.
*/
properties[PROP_PENDING] =
- g_param_spec_uint ("pending",
- P_("Pending"),
- P_("Estimate of unsorted items remaining"),
+ g_param_spec_uint ("pending", NULL, NULL,
0, G_MAXUINT, 0,
GTK_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY);
@@ -820,9 +814,7 @@ gtk_sort_list_model_class_init (GtkSortListModelClass *class)
* The sorter for this model.
*/
properties[PROP_SORTER] =
- g_param_spec_object ("sorter",
- P_("Sorter"),
- P_("The sorter for this model"),
+ g_param_spec_object ("sorter", NULL, NULL,
GTK_TYPE_SORTER,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtkspinbutton.c b/gtk/gtkspinbutton.c
index 72b7934f54..e65d623b30 100644
--- a/gtk/gtkspinbutton.c
+++ b/gtk/gtkspinbutton.c
@@ -371,9 +371,7 @@ gtk_spin_button_class_init (GtkSpinButtonClass *class)
* The adjustment that holds the value of the spin button.
*/
spinbutton_props[PROP_ADJUSTMENT] =
- g_param_spec_object ("adjustment",
- P_("Adjustment"),
- P_("The adjustment that holds the value of the spin button"),
+ g_param_spec_object ("adjustment", NULL, NULL,
GTK_TYPE_ADJUSTMENT,
GTK_PARAM_READWRITE);
@@ -383,9 +381,7 @@ gtk_spin_button_class_init (GtkSpinButtonClass *class)
* The acceleration rate when you hold down a button or key.
*/
spinbutton_props[PROP_CLIMB_RATE] =
- g_param_spec_double ("climb-rate",
- P_("Climb Rate"),
- P_("The acceleration rate when you hold down a button or key"),
+ g_param_spec_double ("climb-rate", NULL, NULL,
0.0, G_MAXDOUBLE, 0.0,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -395,9 +391,7 @@ gtk_spin_button_class_init (GtkSpinButtonClass *class)
* The number of decimal places to display.
*/
spinbutton_props[PROP_DIGITS] =
- g_param_spec_uint ("digits",
- P_("Digits"),
- P_("The number of decimal places to display"),
+ g_param_spec_uint ("digits", NULL, NULL,
0, MAX_DIGITS, 0,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -408,9 +402,7 @@ gtk_spin_button_class_init (GtkSpinButtonClass *class)
* nearest step increment.
*/
spinbutton_props[PROP_SNAP_TO_TICKS] =
- g_param_spec_boolean ("snap-to-ticks",
- P_("Snap to Ticks"),
- P_("Whether erroneous values are automatically changed to a spin button’s nearest step increment"),
+ g_param_spec_boolean ("snap-to-ticks", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -420,9 +412,7 @@ gtk_spin_button_class_init (GtkSpinButtonClass *class)
* Whether non-numeric characters should be ignored.
*/
spinbutton_props[PROP_NUMERIC] =
- g_param_spec_boolean ("numeric",
- P_("Numeric"),
- P_("Whether non-numeric characters should be ignored"),
+ g_param_spec_boolean ("numeric", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -432,9 +422,7 @@ gtk_spin_button_class_init (GtkSpinButtonClass *class)
* Whether a spin button should wrap upon reaching its limits.
*/
spinbutton_props[PROP_WRAP] =
- g_param_spec_boolean ("wrap",
- P_("Wrap"),
- P_("Whether a spin button should wrap upon reaching its limits"),
+ g_param_spec_boolean ("wrap", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -445,9 +433,7 @@ gtk_spin_button_class_init (GtkSpinButtonClass *class)
* is acceptable.
*/
spinbutton_props[PROP_UPDATE_POLICY] =
- g_param_spec_enum ("update-policy",
- P_("Update Policy"),
- P_("Whether the spin button should update always, or only when the value is legal"),
+ g_param_spec_enum ("update-policy", NULL, NULL,
GTK_TYPE_SPIN_BUTTON_UPDATE_POLICY,
GTK_UPDATE_ALWAYS,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -458,9 +444,7 @@ gtk_spin_button_class_init (GtkSpinButtonClass *class)
* The current value.
*/
spinbutton_props[PROP_VALUE] =
- g_param_spec_double ("value",
- P_("Value"),
- P_("Reads the current value, or sets a new value"),
+ g_param_spec_double ("value", NULL, NULL,
-G_MAXDOUBLE, G_MAXDOUBLE, 0.0,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtkspinner.c b/gtk/gtkspinner.c
index 163911552d..4d487e1c4a 100644
--- a/gtk/gtkspinner.c
+++ b/gtk/gtkspinner.c
@@ -225,9 +225,7 @@ gtk_spinner_class_init (GtkSpinnerClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_SPINNING,
- g_param_spec_boolean ("spinning",
- P_("Spinning"),
- P_("Whether the spinner is spinning"),
+ g_param_spec_boolean ("spinning", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
diff --git a/gtk/gtkstack.c b/gtk/gtkstack.c
index facf7ca3eb..c6a292f21b 100644
--- a/gtk/gtkstack.c
+++ b/gtk/gtkstack.c
@@ -411,9 +411,7 @@ gtk_stack_page_class_init (GtkStackPageClass *class)
* The child that this page is for.
*/
stack_page_props[CHILD_PROP_CHILD] =
- g_param_spec_object ("child",
- P_("Child"),
- P_("The child of the page"),
+ g_param_spec_object ("child", NULL, NULL,
GTK_TYPE_WIDGET,
GTK_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY);
@@ -423,9 +421,7 @@ gtk_stack_page_class_init (GtkStackPageClass *class)
* The name of the child page.
*/
stack_page_props[CHILD_PROP_NAME] =
- g_param_spec_string ("name",
- P_("Name"),
- P_("The name of the child page"),
+ g_param_spec_string ("name", NULL, NULL,
NULL,
GTK_PARAM_READWRITE);
@@ -435,9 +431,7 @@ gtk_stack_page_class_init (GtkStackPageClass *class)
* The title of the child page.
*/
stack_page_props[CHILD_PROP_TITLE] =
- g_param_spec_string ("title",
- P_("Title"),
- P_("The title of the child page"),
+ g_param_spec_string ("title", NULL, NULL,
NULL,
GTK_PARAM_READWRITE);
@@ -447,9 +441,7 @@ gtk_stack_page_class_init (GtkStackPageClass *class)
* The icon name of the child page.
*/
stack_page_props[CHILD_PROP_ICON_NAME] =
- g_param_spec_string ("icon-name",
- P_("Icon name"),
- P_("The icon name of the child page"),
+ g_param_spec_string ("icon-name", NULL, NULL,
NULL,
GTK_PARAM_READWRITE);
@@ -463,9 +455,7 @@ gtk_stack_page_class_init (GtkStackPageClass *class)
* attention and it is not the current one.
*/
stack_page_props[CHILD_PROP_NEEDS_ATTENTION] =
- g_param_spec_boolean ("needs-attention",
- P_("Needs Attention"),
- P_("Whether this page needs attention"),
+ g_param_spec_boolean ("needs-attention", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -475,9 +465,7 @@ gtk_stack_page_class_init (GtkStackPageClass *class)
* Whether this page is visible.
*/
stack_page_props[CHILD_PROP_VISIBLE] =
- g_param_spec_boolean ("visible",
- P_("Visible"),
- P_("Whether this page is visible"),
+ g_param_spec_boolean ("visible", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -487,9 +475,7 @@ gtk_stack_page_class_init (GtkStackPageClass *class)
* If set, an underline in the title indicates a mnemonic.
*/
stack_page_props[CHILD_PROP_USE_UNDERLINE] =
- g_param_spec_boolean ("use-underline",
- P_("Use underline"),
- P_("If set, an underline in the title indicates the next character should be used for the mnemonic accelerator key"),
+ g_param_spec_boolean ("use-underline", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -817,7 +803,7 @@ gtk_stack_class_init (GtkStackClass *klass)
* %TRUE if the stack allocates the same width for all children.
*/
stack_props[PROP_HHOMOGENEOUS] =
- g_param_spec_boolean ("hhomogeneous", P_("Horizontally homogeneous"), P_("Horizontally homogeneous sizing"),
+ g_param_spec_boolean ("hhomogeneous", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -827,7 +813,7 @@ gtk_stack_class_init (GtkStackClass *klass)
* %TRUE if the stack allocates the same height for all children.
*/
stack_props[PROP_VHOMOGENEOUS] =
- g_param_spec_boolean ("vhomogeneous", P_("Vertically homogeneous"), P_("Vertically homogeneous sizing"),
+ g_param_spec_boolean ("vhomogeneous", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -837,7 +823,7 @@ gtk_stack_class_init (GtkStackClass *klass)
* The widget currently visible in the stack.
*/
stack_props[PROP_VISIBLE_CHILD] =
- g_param_spec_object ("visible-child", P_("Visible child"), P_("The widget currently visible in the stack"),
+ g_param_spec_object ("visible-child", NULL, NULL,
GTK_TYPE_WIDGET,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -847,7 +833,7 @@ gtk_stack_class_init (GtkStackClass *klass)
* The name of the widget currently visible in the stack.
*/
stack_props[PROP_VISIBLE_CHILD_NAME] =
- g_param_spec_string ("visible-child-name", P_("Name of visible child"), P_("The name of the widget currently visible in the stack"),
+ g_param_spec_string ("visible-child-name", NULL, NULL,
NULL,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -857,7 +843,7 @@ gtk_stack_class_init (GtkStackClass *klass)
* The animation duration, in milliseconds.
*/
stack_props[PROP_TRANSITION_DURATION] =
- g_param_spec_uint ("transition-duration", P_("Transition duration"), P_("The animation duration, in milliseconds"),
+ g_param_spec_uint ("transition-duration", NULL, NULL,
0, G_MAXUINT, 200,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -867,7 +853,7 @@ gtk_stack_class_init (GtkStackClass *klass)
* The type of animation used to transition.
*/
stack_props[PROP_TRANSITION_TYPE] =
- g_param_spec_enum ("transition-type", P_("Transition type"), P_("The type of animation used to transition"),
+ g_param_spec_enum ("transition-type", NULL, NULL,
GTK_TYPE_STACK_TRANSITION_TYPE, GTK_STACK_TRANSITION_TYPE_NONE,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -877,7 +863,7 @@ gtk_stack_class_init (GtkStackClass *klass)
* Whether or not the transition is currently running.
*/
stack_props[PROP_TRANSITION_RUNNING] =
- g_param_spec_boolean ("transition-running", P_("Transition running"), P_("Whether or not the transition is currently running"),
+ g_param_spec_boolean ("transition-running", NULL, NULL,
FALSE,
GTK_PARAM_READABLE);
@@ -887,7 +873,7 @@ gtk_stack_class_init (GtkStackClass *klass)
* Whether or not the size should smoothly change during the transition.
*/
stack_props[PROP_INTERPOLATE_SIZE] =
- g_param_spec_boolean ("interpolate-size", P_("Interpolate size"), P_("Whether or not the size should smoothly change when changing between differently sized children"),
+ g_param_spec_boolean ("interpolate-size", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -897,7 +883,7 @@ gtk_stack_class_init (GtkStackClass *klass)
* A selection model with the stack pages.
*/
stack_props[PROP_PAGES] =
- g_param_spec_object ("pages", P_("Pages"), P_("A selection model with the stacks pages"),
+ g_param_spec_object ("pages", NULL, NULL,
GTK_TYPE_SELECTION_MODEL,
GTK_PARAM_READABLE);
diff --git a/gtk/gtkstacksidebar.c b/gtk/gtkstacksidebar.c
index 49d26de430..675c12aeeb 100644
--- a/gtk/gtkstacksidebar.c
+++ b/gtk/gtkstacksidebar.c
@@ -366,8 +366,7 @@ gtk_stack_sidebar_class_init (GtkStackSidebarClass *klass)
* The stack.
*/
obj_properties[PROP_STACK] =
- g_param_spec_object (I_("stack"), P_("Stack"),
- P_("Associated stack for this GtkStackSidebar"),
+ g_param_spec_object (I_("stack"), NULL, NULL,
GTK_TYPE_STACK,
G_PARAM_READWRITE|G_PARAM_STATIC_STRINGS|G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtkstackswitcher.c b/gtk/gtkstackswitcher.c
index a77bca8300..cd1e24bd73 100644
--- a/gtk/gtkstackswitcher.c
+++ b/gtk/gtkstackswitcher.c
@@ -549,9 +549,7 @@ gtk_stack_switcher_class_init (GtkStackSwitcherClass *class)
*/
g_object_class_install_property (object_class,
PROP_STACK,
- g_param_spec_object ("stack",
- P_("Stack"),
- P_("Stack"),
+ g_param_spec_object ("stack", NULL, NULL,
GTK_TYPE_STACK,
GTK_PARAM_READWRITE |
G_PARAM_CONSTRUCT));
diff --git a/gtk/gtkstringfilter.c b/gtk/gtkstringfilter.c
index c4f3c9e630..2a33071cf4 100644
--- a/gtk/gtkstringfilter.c
+++ b/gtk/gtkstringfilter.c
@@ -253,9 +253,7 @@ gtk_string_filter_class_init (GtkStringFilterClass *class)
* The expression to evaluate on item to get a string to compare with.
*/
properties[PROP_EXPRESSION] =
- gtk_param_spec_expression ("expression",
- P_("Expression"),
- P_("Expression to compare with"),
+ gtk_param_spec_expression ("expression", NULL, NULL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
/**
@@ -264,9 +262,7 @@ gtk_string_filter_class_init (GtkStringFilterClass *class)
* If matching is case sensitive.
*/
properties[PROP_IGNORE_CASE] =
- g_param_spec_boolean ("ignore-case",
- P_("Ignore case"),
- P_("If matching is case sensitive"),
+ g_param_spec_boolean ("ignore-case", NULL, NULL,
TRUE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -276,9 +272,7 @@ gtk_string_filter_class_init (GtkStringFilterClass *class)
* If exact matches are necessary or if substrings are allowed.
*/
properties[PROP_MATCH_MODE] =
- g_param_spec_enum ("match-mode",
- P_("Match mode"),
- P_("If exact matches are necessary or if substrings are allowed"),
+ g_param_spec_enum ("match-mode", NULL, NULL,
GTK_TYPE_STRING_FILTER_MATCH_MODE,
GTK_STRING_FILTER_MATCH_MODE_SUBSTRING,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -289,9 +283,7 @@ gtk_string_filter_class_init (GtkStringFilterClass *class)
* The search term.
*/
properties[PROP_SEARCH] =
- g_param_spec_string ("search",
- P_("Search"),
- P_("The search term"),
+ g_param_spec_string ("search", NULL, NULL,
NULL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtkstringlist.c b/gtk/gtkstringlist.c
index 2b12cb957f..74beb96a86 100644
--- a/gtk/gtkstringlist.c
+++ b/gtk/gtkstringlist.c
@@ -134,7 +134,7 @@ gtk_string_object_class_init (GtkStringObjectClass *class)
*
* The string.
*/
- pspec = g_param_spec_string ("string", "String", "String",
+ pspec = g_param_spec_string ("string", NULL, NULL,
NULL,
G_PARAM_READABLE |
G_PARAM_STATIC_STRINGS);
diff --git a/gtk/gtkstringsorter.c b/gtk/gtkstringsorter.c
index a6fcefab77..4297195838 100644
--- a/gtk/gtkstringsorter.c
+++ b/gtk/gtkstringsorter.c
@@ -291,9 +291,7 @@ gtk_string_sorter_class_init (GtkStringSorterClass *class)
* The expression to evaluate on item to get a string to compare with.
*/
properties[PROP_EXPRESSION] =
- gtk_param_spec_expression ("expression",
- P_("Expression"),
- P_("Expression to compare with"),
+ gtk_param_spec_expression ("expression", NULL, NULL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
/**
@@ -302,9 +300,7 @@ gtk_string_sorter_class_init (GtkStringSorterClass *class)
* If matching is case sensitive.
*/
properties[PROP_IGNORE_CASE] =
- g_param_spec_boolean ("ignore-case",
- P_("Ignore case"),
- P_("If matching is case sensitive"),
+ g_param_spec_boolean ("ignore-case", NULL, NULL,
TRUE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c
index 4554a4dd1b..5fca489632 100644
--- a/gtk/gtkstylecontext.c
+++ b/gtk/gtkstylecontext.c
@@ -120,9 +120,7 @@ gtk_style_context_class_init (GtkStyleContextClass *klass)
object_class->get_property = gtk_style_context_impl_get_property;
properties[PROP_DISPLAY] =
- g_param_spec_object ("display",
- P_("Display"),
- P_("The associated GdkDisplay"),
+ g_param_spec_object ("display", NULL, NULL,
GDK_TYPE_DISPLAY,
GTK_PARAM_READWRITE);
diff --git a/gtk/gtkstyleproperty.c b/gtk/gtkstyleproperty.c
index f560d25fd5..4ca3ff342f 100644
--- a/gtk/gtkstyleproperty.c
+++ b/gtk/gtkstyleproperty.c
@@ -99,9 +99,7 @@ _gtk_style_property_class_init (GtkStylePropertyClass *klass)
g_object_class_install_property (object_class,
PROP_NAME,
- g_param_spec_string ("name",
- P_("Property name"),
- P_("The name of the property"),
+ g_param_spec_string ("name", NULL, NULL,
NULL,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
diff --git a/gtk/gtkswitch.c b/gtk/gtkswitch.c
index ef3e58ec80..c4336cca63 100644
--- a/gtk/gtkswitch.c
+++ b/gtk/gtkswitch.c
@@ -518,9 +518,7 @@ gtk_switch_class_init (GtkSwitchClass *klass)
* Whether the `GtkSwitch` widget is in its on or off state.
*/
switch_props[PROP_ACTIVE] =
- g_param_spec_boolean ("active",
- P_("Active"),
- P_("Whether the switch is on or off"),
+ g_param_spec_boolean ("active", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -532,9 +530,7 @@ gtk_switch_class_init (GtkSwitchClass *klass)
* See [signal@GtkSwitch::state-set] for details.
*/
switch_props[PROP_STATE] =
- g_param_spec_boolean ("state",
- P_("State"),
- P_("The backend state"),
+ g_param_spec_boolean ("state", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtktext.c b/gtk/gtktext.c
index e8e1c51563..6bbb6b3098 100644
--- a/gtk/gtktext.c
+++ b/gtk/gtktext.c
@@ -757,9 +757,7 @@ gtk_text_class_init (GtkTextClass *class)
* The `GtkEntryBuffer` object which stores the text.
*/
text_props[PROP_BUFFER] =
- g_param_spec_object ("buffer",
- P_("Text Buffer"),
- P_("Text buffer object which actually stores self text"),
+ g_param_spec_object ("buffer", NULL, NULL,
GTK_TYPE_ENTRY_BUFFER,
GTK_PARAM_READWRITE|G_PARAM_CONSTRUCT|G_PARAM_EXPLICIT_NOTIFY);
@@ -771,9 +769,7 @@ gtk_text_class_init (GtkTextClass *class)
* Zero indicates no limit.
*/
text_props[PROP_MAX_LENGTH] =
- g_param_spec_int ("max-length",
- P_("Maximum length"),
- P_("Maximum number of characters for this self. Zero if no maximum"),
+ g_param_spec_int ("max-length", NULL, NULL,
0, GTK_ENTRY_BUFFER_MAX_SIZE,
0,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -784,9 +780,7 @@ gtk_text_class_init (GtkTextClass *class)
* The character to used when masking contents (in “password mode”).
*/
text_props[PROP_INVISIBLE_CHAR] =
- g_param_spec_unichar ("invisible-char",
- P_("Invisible character"),
- P_("The character to use when masking self contents (in “password mode”)"),
+ g_param_spec_unichar ("invisible-char", NULL, NULL,
'*',
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -796,9 +790,7 @@ gtk_text_class_init (GtkTextClass *class)
* Whether to activate the default widget when Enter is pressed.
*/
text_props[PROP_ACTIVATES_DEFAULT] =
- g_param_spec_boolean ("activates-default",
- P_("Activates default"),
- P_("Whether to activate the default widget (such as the default button in a dialog) when Enter is pressed"),
+ g_param_spec_boolean ("activates-default", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -808,9 +800,7 @@ gtk_text_class_init (GtkTextClass *class)
* Number of pixels scrolled of the screen to the left.
*/
text_props[PROP_SCROLL_OFFSET] =
- g_param_spec_int ("scroll-offset",
- P_("Scroll offset"),
- P_("Number of pixels of the text scrolled off the screen to the left"),
+ g_param_spec_int ("scroll-offset", NULL, NULL,
0, G_MAXINT,
0,
GTK_PARAM_READABLE|G_PARAM_EXPLICIT_NOTIFY);
@@ -821,9 +811,7 @@ gtk_text_class_init (GtkTextClass *class)
* When %TRUE, pasted multi-line text is truncated to the first line.
*/
text_props[PROP_TRUNCATE_MULTILINE] =
- g_param_spec_boolean ("truncate-multiline",
- P_("Truncate multiline"),
- P_("Whether to truncate multiline pastes to one line."),
+ g_param_spec_boolean ("truncate-multiline", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -833,9 +821,7 @@ gtk_text_class_init (GtkTextClass *class)
* If text is overwritten when typing in the `GtkText`.
*/
text_props[PROP_OVERWRITE_MODE] =
- g_param_spec_boolean ("overwrite-mode",
- P_("Overwrite mode"),
- P_("Whether new text overwrites existing text"),
+ g_param_spec_boolean ("overwrite-mode", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -845,9 +831,7 @@ gtk_text_class_init (GtkTextClass *class)
* Whether the invisible char has been set for the `GtkText`.
*/
text_props[PROP_INVISIBLE_CHAR_SET] =
- g_param_spec_boolean ("invisible-char-set",
- P_("Invisible character set"),
- P_("Whether the invisible character has been set"),
+ g_param_spec_boolean ("invisible-char-set", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE);
@@ -858,9 +842,7 @@ gtk_text_class_init (GtkTextClass *class)
* and unfocused.
*/
text_props[PROP_PLACEHOLDER_TEXT] =
- g_param_spec_string ("placeholder-text",
- P_("Placeholder text"),
- P_("Show text in the GtkText when it’s empty and unfocused"),
+ g_param_spec_string ("placeholder-text", NULL, NULL,
NULL,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -876,9 +858,7 @@ gtk_text_class_init (GtkTextClass *class)
* property.
*/
text_props[PROP_IM_MODULE] =
- g_param_spec_string ("im-module",
- P_("IM module"),
- P_("Which IM module should be used"),
+ g_param_spec_string ("im-module", NULL, NULL,
NULL,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -895,9 +875,7 @@ gtk_text_class_init (GtkTextClass *class)
* [property@Gtk.Text:visibility].
*/
text_props[PROP_INPUT_PURPOSE] =
- g_param_spec_enum ("input-purpose",
- P_("Purpose"),
- P_("Purpose of the text field"),
+ g_param_spec_enum ("input-purpose", NULL, NULL,
GTK_TYPE_INPUT_PURPOSE,
GTK_INPUT_PURPOSE_FREE_FORM,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -909,9 +887,7 @@ gtk_text_class_init (GtkTextClass *class)
* their behaviour.
*/
text_props[PROP_INPUT_HINTS] =
- g_param_spec_flags ("input-hints",
- P_("hints"),
- P_("Hints for the text field behaviour"),
+ g_param_spec_flags ("input-hints", NULL, NULL,
GTK_TYPE_INPUT_HINTS,
GTK_INPUT_HINT_NONE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -927,9 +903,7 @@ gtk_text_class_init (GtkTextClass *class)
* `GtkEntryBuffer` text, i.e. without the preedit string.
*/
text_props[PROP_ATTRIBUTES] =
- g_param_spec_boxed ("attributes",
- P_("Attributes"),
- P_("A list of style attributes to apply to the text of the GtkText"),
+ g_param_spec_boxed ("attributes", NULL, NULL,
PANGO_TYPE_ATTR_LIST,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -939,9 +913,7 @@ gtk_text_class_init (GtkTextClass *class)
* A list of tabstops to apply to the text of the `GtkText`.
*/
text_props[PROP_TABS] =
- g_param_spec_boxed ("tabs",
- P_("Tabs"),
- P_("A list of tabstop locations to apply to the text of the GtkText"),
+ g_param_spec_boxed ("tabs", NULL, NULL,
PANGO_TYPE_TAB_ARRAY,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -951,9 +923,7 @@ gtk_text_class_init (GtkTextClass *class)
* Whether to suggest Emoji replacements.
*/
text_props[PROP_ENABLE_EMOJI_COMPLETION] =
- g_param_spec_boolean ("enable-emoji-completion",
- P_("Enable Emoji completion"),
- P_("Whether to suggest Emoji replacements"),
+ g_param_spec_boolean ("enable-emoji-completion", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -963,9 +933,7 @@ gtk_text_class_init (GtkTextClass *class)
* If %FALSE, the text is masked with the “invisible char”.
*/
text_props[PROP_VISIBILITY] =
- g_param_spec_boolean ("visibility",
- P_("Visibility"),
- P_("FALSE displays the “invisible char” instead of the actual text (password mode)"),
+ g_param_spec_boolean ("visibility", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -975,9 +943,7 @@ gtk_text_class_init (GtkTextClass *class)
* Whether the widget should grow and shrink with the content.
*/
text_props[PROP_PROPAGATE_TEXT_WIDTH] =
- g_param_spec_boolean ("propagate-text-width",
- P_("Propagate text width"),
- P_("Whether the entry should grow and shrink with the content"),
+ g_param_spec_boolean ("propagate-text-width", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -988,9 +954,7 @@ gtk_text_class_init (GtkTextClass *class)
* the context menu.
*/
text_props[PROP_EXTRA_MENU] =
- g_param_spec_object ("extra-menu",
- P_("Extra menu"),
- P_("Menu model to append to the context menu"),
+ g_param_spec_object ("extra-menu", NULL, NULL,
G_TYPE_MENU_MODEL,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtktextbuffer.c b/gtk/gtktextbuffer.c
index c2cd148868..b3fa50ab5c 100644
--- a/gtk/gtktextbuffer.c
+++ b/gtk/gtktextbuffer.c
@@ -461,9 +461,7 @@ gtk_text_buffer_class_init (GtkTextBufferClass *klass)
* The GtkTextTagTable for the buffer.
*/
text_buffer_props[PROP_TAG_TABLE] =
- g_param_spec_object ("tag-table",
- P_("Tag Table"),
- P_("Text Tag Table"),
+ g_param_spec_object ("tag-table", NULL, NULL,
GTK_TYPE_TEXT_TAG_TABLE,
GTK_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY);
@@ -478,9 +476,7 @@ gtk_text_buffer_class_init (GtkTextBufferClass *klass)
* see [method@Gtk.TextBuffer.get_text] for more information.
*/
text_buffer_props[PROP_TEXT] =
- g_param_spec_string ("text",
- P_("Text"),
- P_("Current text of the buffer"),
+ g_param_spec_string ("text", NULL, NULL,
"",
GTK_PARAM_READWRITE);
@@ -490,9 +486,7 @@ gtk_text_buffer_class_init (GtkTextBufferClass *klass)
* Whether the buffer has some text currently selected.
*/
text_buffer_props[PROP_HAS_SELECTION] =
- g_param_spec_boolean ("has-selection",
- P_("Has selection"),
- P_("Whether the buffer has some text currently selected"),
+ g_param_spec_boolean ("has-selection", NULL, NULL,
FALSE,
GTK_PARAM_READABLE);
@@ -502,9 +496,7 @@ gtk_text_buffer_class_init (GtkTextBufferClass *klass)
* Denotes that the buffer can undo the last applied action.
*/
text_buffer_props[PROP_CAN_UNDO] =
- g_param_spec_boolean ("can-undo",
- P_("Can Undo"),
- P_("If the buffer can have the last action undone"),
+ g_param_spec_boolean ("can-undo", NULL, NULL,
FALSE,
GTK_PARAM_READABLE);
@@ -514,9 +506,7 @@ gtk_text_buffer_class_init (GtkTextBufferClass *klass)
* Denotes that the buffer can reapply the last undone action.
*/
text_buffer_props[PROP_CAN_REDO] =
- g_param_spec_boolean ("can-redo",
- P_("Can Redo"),
- P_("If the buffer can have the last undone action reapplied"),
+ g_param_spec_boolean ("can-redo", NULL, NULL,
FALSE,
GTK_PARAM_READABLE);
@@ -526,9 +516,7 @@ gtk_text_buffer_class_init (GtkTextBufferClass *klass)
* Denotes if support for undoing and redoing changes to the buffer is allowed.
*/
text_buffer_props[PROP_ENABLE_UNDO] =
- g_param_spec_boolean ("enable-undo",
- "Enable Undo",
- "Enable support for undo and redo in the text view",
+ g_param_spec_boolean ("enable-undo", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -541,9 +529,7 @@ gtk_text_buffer_class_init (GtkTextBufferClass *klass)
* It is useful for getting notified when the cursor moves.
*/
text_buffer_props[PROP_CURSOR_POSITION] =
- g_param_spec_int ("cursor-position",
- P_("Cursor position"),
- P_("The position of the insert mark (as offset from the beginning of the buffer)"),
+ g_param_spec_int ("cursor-position", NULL, NULL,
0, G_MAXINT,
0,
GTK_PARAM_READABLE);
diff --git a/gtk/gtktextmark.c b/gtk/gtktextmark.c
index 58b56057c2..151f00245b 100644
--- a/gtk/gtktextmark.c
+++ b/gtk/gtktextmark.c
@@ -133,9 +133,7 @@ gtk_text_mark_class_init (GtkTextMarkClass *klass)
*/
g_object_class_install_property (object_class,
PROP_NAME,
- g_param_spec_string ("name",
- P_("Name"),
- P_("Mark name"),
+ g_param_spec_string ("name", NULL, NULL,
NULL,
GTK_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
@@ -150,9 +148,7 @@ gtk_text_mark_class_init (GtkTextMarkClass *klass)
*/
g_object_class_install_property (object_class,
PROP_LEFT_GRAVITY,
- g_param_spec_boolean ("left-gravity",
- P_("Left gravity"),
- P_("Whether the mark has left gravity"),
+ g_param_spec_boolean ("left-gravity", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
}
diff --git a/gtk/gtktexttag.c b/gtk/gtktexttag.c
index e4fc18413e..b1f670753f 100644
--- a/gtk/gtktexttag.c
+++ b/gtk/gtktexttag.c
@@ -217,9 +217,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
*/
g_object_class_install_property (object_class,
PROP_NAME,
- g_param_spec_string ("name",
- P_("Tag name"),
- P_("Name used to refer to the text tag. NULL for anonymous tags"),
+ g_param_spec_string ("name", NULL, NULL,
NULL,
GTK_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
@@ -232,9 +230,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
*/
g_object_class_install_property (object_class,
PROP_BACKGROUND,
- g_param_spec_string ("background",
- P_("Background color name"),
- P_("Background color as a string"),
+ g_param_spec_string ("background", NULL, NULL,
NULL,
GTK_PARAM_WRITABLE));
@@ -245,9 +241,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
*/
g_object_class_install_property (object_class,
PROP_BACKGROUND_RGBA,
- g_param_spec_boxed ("background-rgba",
- P_("Background RGBA"),
- P_("Background color as a GdkRGBA"),
+ g_param_spec_boxed ("background-rgba", NULL, NULL,
GDK_TYPE_RGBA,
GTK_PARAM_READWRITE));
@@ -259,9 +253,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
*/
g_object_class_install_property (object_class,
PROP_BACKGROUND_FULL_HEIGHT,
- g_param_spec_boolean ("background-full-height",
- P_("Background full height"),
- P_("Whether the background color fills the entire line height or only the height of the tagged characters"),
+ g_param_spec_boolean ("background-full-height", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE));
@@ -272,9 +264,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
*/
g_object_class_install_property (object_class,
PROP_FOREGROUND,
- g_param_spec_string ("foreground",
- P_("Foreground color name"),
- P_("Foreground color as a string"),
+ g_param_spec_string ("foreground", NULL, NULL,
NULL,
GTK_PARAM_WRITABLE));
@@ -285,9 +275,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
*/
g_object_class_install_property (object_class,
PROP_FOREGROUND_RGBA,
- g_param_spec_boxed ("foreground-rgba",
- P_("Foreground RGBA"),
- P_("Foreground color as a GdkRGBA"),
+ g_param_spec_boxed ("foreground-rgba", NULL, NULL,
GDK_TYPE_RGBA,
GTK_PARAM_READWRITE));
@@ -298,9 +286,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
*/
g_object_class_install_property (object_class,
PROP_DIRECTION,
- g_param_spec_enum ("direction",
- P_("Text direction"),
- P_("Text direction, e.g. right-to-left or left-to-right"),
+ g_param_spec_enum ("direction", NULL, NULL,
GTK_TYPE_TEXT_DIRECTION,
GTK_TEXT_DIR_NONE,
GTK_PARAM_READWRITE));
@@ -312,9 +298,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
*/
g_object_class_install_property (object_class,
PROP_EDITABLE,
- g_param_spec_boolean ("editable",
- P_("Editable"),
- P_("Whether the text can be modified by the user"),
+ g_param_spec_boolean ("editable", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE));
@@ -328,9 +312,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
*/
g_object_class_install_property (object_class,
PROP_FONT,
- g_param_spec_string ("font",
- P_("Font"),
- P_("Font description as a string, e.g. “Sans Italic 12”"),
+ g_param_spec_string ("font", NULL, NULL,
NULL,
GTK_PARAM_READWRITE));
@@ -341,9 +323,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
*/
g_object_class_install_property (object_class,
PROP_FONT_DESC,
- g_param_spec_boxed ("font-desc",
- P_("Font"),
- P_("Font description as a PangoFontDescription struct"),
+ g_param_spec_boxed ("font-desc", NULL, NULL,
PANGO_TYPE_FONT_DESCRIPTION,
GTK_PARAM_READWRITE));
@@ -354,9 +334,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
*/
g_object_class_install_property (object_class,
PROP_FAMILY,
- g_param_spec_string ("family",
- P_("Font family"),
- P_("Name of the font family, e.g. Sans, Helvetica, Times, Monospace"),
+ g_param_spec_string ("family", NULL, NULL,
NULL,
GTK_PARAM_READWRITE));
@@ -367,9 +345,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
*/
g_object_class_install_property (object_class,
PROP_STYLE,
- g_param_spec_enum ("style",
- P_("Font style"),
- P_("Font style as a PangoStyle, e.g. PANGO_STYLE_ITALIC"),
+ g_param_spec_enum ("style", NULL, NULL,
PANGO_TYPE_STYLE,
PANGO_STYLE_NORMAL,
GTK_PARAM_READWRITE));
@@ -381,9 +357,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
*/
g_object_class_install_property (object_class,
PROP_VARIANT,
- g_param_spec_enum ("variant",
- P_("Font variant"),
- P_("Font variant as a PangoVariant, e.g. PANGO_VARIANT_SMALL_CAPS"),
+ g_param_spec_enum ("variant", NULL, NULL,
PANGO_TYPE_VARIANT,
PANGO_VARIANT_NORMAL,
GTK_PARAM_READWRITE));
@@ -394,9 +368,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
*/
g_object_class_install_property (object_class,
PROP_WEIGHT,
- g_param_spec_int ("weight",
- P_("Font weight"),
- P_("Font weight as an integer, see predefined values in PangoWeight; for example, PANGO_WEIGHT_BOLD"),
+ g_param_spec_int ("weight", NULL, NULL,
0,
G_MAXINT,
PANGO_WEIGHT_NORMAL,
@@ -409,9 +381,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
*/
g_object_class_install_property (object_class,
PROP_STRETCH,
- g_param_spec_enum ("stretch",
- P_("Font stretch"),
- P_("Font stretch as a PangoStretch, e.g. PANGO_STRETCH_CONDENSED"),
+ g_param_spec_enum ("stretch", NULL, NULL,
PANGO_TYPE_STRETCH,
PANGO_STRETCH_NORMAL,
GTK_PARAM_READWRITE));
@@ -423,9 +393,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
*/
g_object_class_install_property (object_class,
PROP_SIZE,
- g_param_spec_int ("size",
- P_("Font size"),
- P_("Font size in Pango units"),
+ g_param_spec_int ("size", NULL, NULL,
0,
G_MAXINT,
0,
@@ -441,9 +409,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
*/
g_object_class_install_property (object_class,
PROP_SCALE,
- g_param_spec_double ("scale",
- P_("Font scale"),
- P_("Font size as a scale factor relative to the default font size. This properly adapts to theme changes etc. so is recommended. Pango predefines some scales such as PANGO_SCALE_X_LARGE"),
+ g_param_spec_double ("scale", NULL, NULL,
0.0,
G_MAXDOUBLE,
1.0,
@@ -456,9 +422,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
*/
g_object_class_install_property (object_class,
PROP_SIZE_POINTS,
- g_param_spec_double ("size-points",
- P_("Font points"),
- P_("Font size in points"),
+ g_param_spec_double ("size-points", NULL, NULL,
0.0,
G_MAXDOUBLE,
0.0,
@@ -471,9 +435,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
*/
g_object_class_install_property (object_class,
PROP_JUSTIFICATION,
- g_param_spec_enum ("justification",
- P_("Justification"),
- P_("Left, right, or center justification"),
+ g_param_spec_enum ("justification", NULL, NULL,
GTK_TYPE_JUSTIFICATION,
GTK_JUSTIFY_LEFT,
GTK_PARAM_READWRITE));
@@ -491,9 +453,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
*/
g_object_class_install_property (object_class,
PROP_LANGUAGE,
- g_param_spec_string ("language",
- P_("Language"),
- P_("The language this text is in, as an ISO code. Pango can use this as a hint when rendering the text. If not set, an appropriate default will be used."),
+ g_param_spec_string ("language", NULL, NULL,
NULL,
GTK_PARAM_READWRITE));
@@ -504,9 +464,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
*/
g_object_class_install_property (object_class,
PROP_LEFT_MARGIN,
- g_param_spec_int ("left-margin",
- P_("Left margin"),
- P_("Width of the left margin in pixels"),
+ g_param_spec_int ("left-margin", NULL, NULL,
0,
G_MAXINT,
0,
@@ -519,9 +477,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
*/
g_object_class_install_property (object_class,
PROP_RIGHT_MARGIN,
- g_param_spec_int ("right-margin",
- P_("Right margin"),
- P_("Width of the right margin in pixels"),
+ g_param_spec_int ("right-margin", NULL, NULL,
0,
G_MAXINT,
0,
@@ -534,9 +490,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
*/
g_object_class_install_property (object_class,
PROP_INDENT,
- g_param_spec_int ("indent",
- P_("Indent"),
- P_("Amount to indent the paragraph, in pixels"),
+ g_param_spec_int ("indent", NULL, NULL,
G_MININT,
G_MAXINT,
0,
@@ -551,9 +505,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
*/
g_object_class_install_property (object_class,
PROP_RISE,
- g_param_spec_int ("rise",
- P_("Rise"),
- P_("Offset of text above the baseline (below the baseline if rise is negative) in Pango units"),
+ g_param_spec_int ("rise", NULL, NULL,
G_MININT,
G_MAXINT,
0,
@@ -566,9 +518,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
*/
g_object_class_install_property (object_class,
PROP_PIXELS_ABOVE_LINES,
- g_param_spec_int ("pixels-above-lines",
- P_("Pixels above lines"),
- P_("Pixels of blank space above paragraphs"),
+ g_param_spec_int ("pixels-above-lines", NULL, NULL,
0,
G_MAXINT,
0,
@@ -581,9 +531,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
*/
g_object_class_install_property (object_class,
PROP_PIXELS_BELOW_LINES,
- g_param_spec_int ("pixels-below-lines",
- P_("Pixels below lines"),
- P_("Pixels of blank space below paragraphs"),
+ g_param_spec_int ("pixels-below-lines", NULL, NULL,
0,
G_MAXINT,
0,
@@ -596,9 +544,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
*/
g_object_class_install_property (object_class,
PROP_PIXELS_INSIDE_WRAP,
- g_param_spec_int ("pixels-inside-wrap",
- P_("Pixels inside wrap"),
- P_("Pixels of blank space between wrapped lines in a paragraph"),
+ g_param_spec_int ("pixels-inside-wrap", NULL, NULL,
0,
G_MAXINT,
0,
@@ -613,9 +559,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
*/
g_object_class_install_property (object_class,
PROP_LINE_HEIGHT,
- g_param_spec_float ("line-height",
- P_("Line height factor"),
- P_("The factor to apply to line height"),
+ g_param_spec_float ("line-height", NULL, NULL,
0.0, 10.0, 0.0,
GTK_PARAM_READWRITE));
@@ -626,9 +570,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
*/
g_object_class_install_property (object_class,
PROP_STRIKETHROUGH,
- g_param_spec_boolean ("strikethrough",
- P_("Strikethrough"),
- P_("Whether to strike through the text"),
+ g_param_spec_boolean ("strikethrough", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE));
@@ -639,9 +581,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
*/
g_object_class_install_property (object_class,
PROP_UNDERLINE,
- g_param_spec_enum ("underline",
- P_("Underline"),
- P_("Style of underline for this text"),
+ g_param_spec_enum ("underline", NULL, NULL,
PANGO_TYPE_UNDERLINE,
PANGO_UNDERLINE_NONE,
GTK_PARAM_READWRITE));
@@ -659,9 +599,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
*/
g_object_class_install_property (object_class,
PROP_UNDERLINE_RGBA,
- g_param_spec_boxed ("underline-rgba",
- P_("Underline RGBA"),
- P_("Color of underline for this text"),
+ g_param_spec_boxed ("underline-rgba", NULL, NULL,
GDK_TYPE_RGBA,
GTK_PARAM_READWRITE));
@@ -672,9 +610,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
*/
g_object_class_install_property (object_class,
PROP_OVERLINE,
- g_param_spec_enum ("overline",
- P_("Overline"),
- P_("Style of overline for this text"),
+ g_param_spec_enum ("overline", NULL, NULL,
PANGO_TYPE_OVERLINE,
PANGO_OVERLINE_NONE,
GTK_PARAM_READWRITE));
@@ -688,9 +624,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
*/
g_object_class_install_property (object_class,
PROP_OVERLINE_RGBA,
- g_param_spec_boxed ("overline-rgba",
- P_("Overline RGBA"),
- P_("Color of overline for this text"),
+ g_param_spec_boxed ("overline-rgba", NULL, NULL,
GDK_TYPE_RGBA,
GTK_PARAM_READWRITE));
@@ -703,9 +637,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
*/
g_object_class_install_property (object_class,
PROP_STRIKETHROUGH_RGBA,
- g_param_spec_boxed ("strikethrough-rgba",
- P_("Strikethrough RGBA"),
- P_("Color of strikethrough for this text"),
+ g_param_spec_boxed ("strikethrough-rgba", NULL, NULL,
GDK_TYPE_RGBA,
GTK_PARAM_READWRITE));
@@ -717,9 +649,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
*/
g_object_class_install_property (object_class,
PROP_WRAP_MODE,
- g_param_spec_enum ("wrap-mode",
- P_("Wrap mode"),
- P_("Whether to wrap lines never, at word boundaries, or at character boundaries"),
+ g_param_spec_enum ("wrap-mode", NULL, NULL,
GTK_TYPE_WRAP_MODE,
GTK_WRAP_NONE,
GTK_PARAM_READWRITE));
@@ -731,9 +661,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
*/
g_object_class_install_property (object_class,
PROP_TABS,
- g_param_spec_boxed ("tabs",
- P_("Tabs"),
- P_("Custom tabs for this text"),
+ g_param_spec_boxed ("tabs", NULL, NULL,
PANGO_TYPE_TAB_ARRAY,
GTK_PARAM_READWRITE));
@@ -748,9 +676,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
*/
g_object_class_install_property (object_class,
PROP_INVISIBLE,
- g_param_spec_boolean ("invisible",
- P_("Invisible"),
- P_("Whether this text is hidden."),
+ g_param_spec_boolean ("invisible", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE));
@@ -761,9 +687,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
*/
g_object_class_install_property (object_class,
PROP_PARAGRAPH_BACKGROUND,
- g_param_spec_string ("paragraph-background",
- P_("Paragraph background color name"),
- P_("Paragraph background color as a string"),
+ g_param_spec_string ("paragraph-background", NULL, NULL,
NULL,
GTK_PARAM_WRITABLE));
@@ -774,9 +698,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
*/
g_object_class_install_property (object_class,
PROP_PARAGRAPH_BACKGROUND_RGBA,
- g_param_spec_boxed ("paragraph-background-rgba",
- P_("Paragraph background RGBA"),
- P_("Paragraph background RGBA as a GdkRGBA"),
+ g_param_spec_boxed ("paragraph-background-rgba", NULL, NULL,
GDK_TYPE_RGBA,
GTK_PARAM_READWRITE));
@@ -790,9 +712,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
*/
g_object_class_install_property (object_class,
PROP_FALLBACK,
- g_param_spec_boolean ("fallback",
- P_("Fallback"),
- P_("Whether font fallback is enabled."),
+ g_param_spec_boolean ("fallback", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE));
@@ -803,9 +723,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
*/
g_object_class_install_property (object_class,
PROP_LETTER_SPACING,
- g_param_spec_int ("letter-spacing",
- P_("Letter Spacing"),
- P_("Extra spacing between graphemes"),
+ g_param_spec_int ("letter-spacing", NULL, NULL,
0, G_MAXINT, 0,
GTK_PARAM_READWRITE));
@@ -816,9 +734,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
*/
g_object_class_install_property (object_class,
PROP_FONT_FEATURES,
- g_param_spec_string ("font-features",
- P_("Font Features"),
- P_("OpenType Font Features to use"),
+ g_param_spec_string ("font-features", NULL, NULL,
NULL,
GTK_PARAM_READWRITE));
@@ -829,9 +745,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
*/
g_object_class_install_property (object_class,
PROP_ALLOW_BREAKS,
- g_param_spec_boolean ("allow-breaks",
- P_("Allow Breaks"),
- P_("Whether breaks are allowed."),
+ g_param_spec_boolean ("allow-breaks", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE));
@@ -842,9 +756,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
*/
g_object_class_install_property (object_class,
PROP_SHOW_SPACES,
- g_param_spec_flags ("show-spaces",
- P_("Show spaces"),
- P_("How to render invisible characters."),
+ g_param_spec_flags ("show-spaces", NULL, NULL,
PANGO_TYPE_SHOW_FLAGS,
PANGO_SHOW_NONE,
GTK_PARAM_READWRITE));
@@ -856,9 +768,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
*/
g_object_class_install_property (object_class,
PROP_INSERT_HYPHENS,
- g_param_spec_boolean ("insert-hyphens",
- P_("Insert hyphens"),
- P_("Whether to insert hyphens at breaks."),
+ g_param_spec_boolean ("insert-hyphens", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE));
@@ -871,9 +781,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
*/
g_object_class_install_property (object_class,
PROP_TEXT_TRANSFORM,
- g_param_spec_enum ("text-transform",
- P_("Text Transform"),
- P_("Whether to transform text for display."),
+ g_param_spec_enum ("text-transform", NULL, NULL,
PANGO_TYPE_TEXT_TRANSFORM,
PANGO_TEXT_TRANSFORM_NONE,
GTK_PARAM_READWRITE));
@@ -889,9 +797,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
*/
g_object_class_install_property (object_class,
PROP_WORD,
- g_param_spec_boolean ("word",
- P_("Word"),
- P_("Whether this is a word."),
+ g_param_spec_boolean ("word", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE));
@@ -906,9 +812,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
*/
g_object_class_install_property (object_class,
PROP_SENTENCE,
- g_param_spec_boolean ("sentence",
- P_("Sentence"),
- P_("Whether this is a sentence."),
+ g_param_spec_boolean ("sentence", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE));
@@ -923,9 +827,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
*/
g_object_class_install_property (object_class,
PROP_ACCUMULATIVE_MARGIN,
- g_param_spec_boolean ("accumulative-margin",
- P_("Margin Accumulates"),
- P_("Whether left and right margins accumulate."),
+ g_param_spec_boolean ("accumulative-margin", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE));
@@ -933,175 +835,95 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
#define ADD_SET_PROP(propname, propval, nick, blurb) g_object_class_install_property (object_class, propval, g_param_spec_boolean (propname, nick, blurb, FALSE, GTK_PARAM_READWRITE))
- ADD_SET_PROP ("background-set", PROP_BACKGROUND_SET,
- P_("Background set"),
- P_("Whether this tag affects the background color"));
+ ADD_SET_PROP ("background-set", PROP_BACKGROUND_SET, NULL, NULL);
- ADD_SET_PROP ("background-full-height-set", PROP_BACKGROUND_FULL_HEIGHT_SET,
- P_("Background full height set"),
- P_("Whether this tag affects background height"));
+ ADD_SET_PROP ("background-full-height-set", PROP_BACKGROUND_FULL_HEIGHT_SET, NULL, NULL);
- ADD_SET_PROP ("foreground-set", PROP_FOREGROUND_SET,
- P_("Foreground set"),
- P_("Whether this tag affects the foreground color"));
+ ADD_SET_PROP ("foreground-set", PROP_FOREGROUND_SET, NULL, NULL);
- ADD_SET_PROP ("editable-set", PROP_EDITABLE_SET,
- P_("Editability set"),
- P_("Whether this tag affects text editability"));
+ ADD_SET_PROP ("editable-set", PROP_EDITABLE_SET, NULL, NULL);
- ADD_SET_PROP ("family-set", PROP_FAMILY_SET,
- P_("Font family set"),
- P_("Whether this tag affects the font family"));
+ ADD_SET_PROP ("family-set", PROP_FAMILY_SET, NULL, NULL);
- ADD_SET_PROP ("style-set", PROP_STYLE_SET,
- P_("Font style set"),
- P_("Whether this tag affects the font style"));
+ ADD_SET_PROP ("style-set", PROP_STYLE_SET, NULL, NULL);
- ADD_SET_PROP ("variant-set", PROP_VARIANT_SET,
- P_("Font variant set"),
- P_("Whether this tag affects the font variant"));
+ ADD_SET_PROP ("variant-set", PROP_VARIANT_SET, NULL, NULL);
- ADD_SET_PROP ("weight-set", PROP_WEIGHT_SET,
- P_("Font weight set"),
- P_("Whether this tag affects the font weight"));
+ ADD_SET_PROP ("weight-set", PROP_WEIGHT_SET, NULL, NULL);
- ADD_SET_PROP ("stretch-set", PROP_STRETCH_SET,
- P_("Font stretch set"),
- P_("Whether this tag affects the font stretch"));
+ ADD_SET_PROP ("stretch-set", PROP_STRETCH_SET, NULL, NULL);
- ADD_SET_PROP ("size-set", PROP_SIZE_SET,
- P_("Font size set"),
- P_("Whether this tag affects the font size"));
+ ADD_SET_PROP ("size-set", PROP_SIZE_SET, NULL, NULL);
- ADD_SET_PROP ("scale-set", PROP_SCALE_SET,
- P_("Font scale set"),
- P_("Whether this tag scales the font size by a factor"));
+ ADD_SET_PROP ("scale-set", PROP_SCALE_SET, NULL, NULL);
- ADD_SET_PROP ("justification-set", PROP_JUSTIFICATION_SET,
- P_("Justification set"),
- P_("Whether this tag affects paragraph justification"));
+ ADD_SET_PROP ("justification-set", PROP_JUSTIFICATION_SET, NULL, NULL);
- ADD_SET_PROP ("language-set", PROP_LANGUAGE_SET,
- P_("Language set"),
- P_("Whether this tag affects the language the text is rendered as"));
+ ADD_SET_PROP ("language-set", PROP_LANGUAGE_SET, NULL, NULL);
- ADD_SET_PROP ("left-margin-set", PROP_LEFT_MARGIN_SET,
- P_("Left margin set"),
- P_("Whether this tag affects the left margin"));
+ ADD_SET_PROP ("left-margin-set", PROP_LEFT_MARGIN_SET, NULL, NULL);
- ADD_SET_PROP ("indent-set", PROP_INDENT_SET,
- P_("Indent set"),
- P_("Whether this tag affects indentation"));
+ ADD_SET_PROP ("indent-set", PROP_INDENT_SET, NULL, NULL);
- ADD_SET_PROP ("rise-set", PROP_RISE_SET,
- P_("Rise set"),
- P_("Whether this tag affects the rise"));
+ ADD_SET_PROP ("rise-set", PROP_RISE_SET, NULL, NULL);
- ADD_SET_PROP ("pixels-above-lines-set", PROP_PIXELS_ABOVE_LINES_SET,
- P_("Pixels above lines set"),
- P_("Whether this tag affects the number of pixels above lines"));
+ ADD_SET_PROP ("pixels-above-lines-set", PROP_PIXELS_ABOVE_LINES_SET, NULL, NULL);
- ADD_SET_PROP ("pixels-below-lines-set", PROP_PIXELS_BELOW_LINES_SET,
- P_("Pixels below lines set"),
- P_("Whether this tag affects the number of pixels above lines"));
+ ADD_SET_PROP ("pixels-below-lines-set", PROP_PIXELS_BELOW_LINES_SET, NULL, NULL);
- ADD_SET_PROP ("pixels-inside-wrap-set", PROP_PIXELS_INSIDE_WRAP_SET,
- P_("Pixels inside wrap set"),
- P_("Whether this tag affects the number of pixels between wrapped lines"));
+ ADD_SET_PROP ("pixels-inside-wrap-set", PROP_PIXELS_INSIDE_WRAP_SET, NULL, NULL);
- ADD_SET_PROP ("line-height-set", PROP_LINE_HEIGHT_SET,
- P_("Line height set"),
- P_("Whether this tag affects the height of lines"));
+ ADD_SET_PROP ("line-height-set", PROP_LINE_HEIGHT_SET, NULL, NULL);
- ADD_SET_PROP ("strikethrough-set", PROP_STRIKETHROUGH_SET,
- P_("Strikethrough set"),
- P_("Whether this tag affects strikethrough"));
+ ADD_SET_PROP ("strikethrough-set", PROP_STRIKETHROUGH_SET, NULL, NULL);
- ADD_SET_PROP ("right-margin-set", PROP_RIGHT_MARGIN_SET,
- P_("Right margin set"),
- P_("Whether this tag affects the right margin"));
+ ADD_SET_PROP ("right-margin-set", PROP_RIGHT_MARGIN_SET, NULL, NULL);
- ADD_SET_PROP ("underline-set", PROP_UNDERLINE_SET,
- P_("Underline set"),
- P_("Whether this tag affects underlining"));
+ ADD_SET_PROP ("underline-set", PROP_UNDERLINE_SET, NULL, NULL);
/**
* GtkTextTag:underline-rgba-set:
*
* If the `underline-rgba` property has been set.
*/
- ADD_SET_PROP ("underline-rgba-set", PROP_UNDERLINE_RGBA_SET,
- P_("Underline RGBA set"),
- P_("Whether this tag affects underlining color"));
+ ADD_SET_PROP ("underline-rgba-set", PROP_UNDERLINE_RGBA_SET, NULL, NULL);
- ADD_SET_PROP ("overline-set", PROP_OVERLINE_SET,
- P_("Overline set"),
- P_("Whether this tag affects overlining"));
+ ADD_SET_PROP ("overline-set", PROP_OVERLINE_SET, NULL, NULL);
- ADD_SET_PROP ("overline-rgba-set", PROP_OVERLINE_RGBA_SET,
- P_("Overline RGBA set"),
- P_("Whether this tag affects overlining color"));
+ ADD_SET_PROP ("overline-rgba-set", PROP_OVERLINE_RGBA_SET, NULL, NULL);
/**
* GtkTextTag:strikethrough-rgba-set:
*
* If the `strikethrough-rgba` property has been set.
*/
- ADD_SET_PROP ("strikethrough-rgba-set", PROP_STRIKETHROUGH_RGBA_SET,
- P_("Strikethrough RGBA set"),
- P_("Whether this tag affects strikethrough color"));
+ ADD_SET_PROP ("strikethrough-rgba-set", PROP_STRIKETHROUGH_RGBA_SET, NULL, NULL);
- ADD_SET_PROP ("wrap-mode-set", PROP_WRAP_MODE_SET,
- P_("Wrap mode set"),
- P_("Whether this tag affects line wrap mode"));
+ ADD_SET_PROP ("wrap-mode-set", PROP_WRAP_MODE_SET, NULL, NULL);
- ADD_SET_PROP ("tabs-set", PROP_TABS_SET,
- P_("Tabs set"),
- P_("Whether this tag affects tabs"));
+ ADD_SET_PROP ("tabs-set", PROP_TABS_SET, NULL, NULL);
- ADD_SET_PROP ("invisible-set", PROP_INVISIBLE_SET,
- P_("Invisible set"),
- P_("Whether this tag affects text visibility"));
+ ADD_SET_PROP ("invisible-set", PROP_INVISIBLE_SET, NULL, NULL);
- ADD_SET_PROP ("paragraph-background-set", PROP_PARAGRAPH_BACKGROUND_SET,
- P_("Paragraph background set"),
- P_("Whether this tag affects the paragraph background color"));
+ ADD_SET_PROP ("paragraph-background-set", PROP_PARAGRAPH_BACKGROUND_SET, NULL, NULL);
- ADD_SET_PROP ("fallback-set", PROP_FALLBACK_SET,
- P_("Fallback set"),
- P_("Whether this tag affects font fallback"));
+ ADD_SET_PROP ("fallback-set", PROP_FALLBACK_SET, NULL, NULL);
- ADD_SET_PROP ("letter-spacing-set", PROP_LETTER_SPACING_SET,
- P_("Letter spacing set"),
- P_("Whether this tag affects letter spacing"));
+ ADD_SET_PROP ("letter-spacing-set", PROP_LETTER_SPACING_SET, NULL, NULL);
- ADD_SET_PROP ("font-features-set", PROP_FONT_FEATURES_SET,
- P_("Font features set"),
- P_("Whether this tag affects font features"));
+ ADD_SET_PROP ("font-features-set", PROP_FONT_FEATURES_SET, NULL, NULL);
- ADD_SET_PROP ("allow-breaks-set", PROP_ALLOW_BREAKS_SET,
- P_("Allow breaks set"),
- P_("Whether this tag affects line breaks"));
+ ADD_SET_PROP ("allow-breaks-set", PROP_ALLOW_BREAKS_SET, NULL, NULL);
- ADD_SET_PROP ("show-spaces-set", PROP_SHOW_SPACES_SET,
- P_("Show spaces set"),
- P_("Whether this tag affects rendering of invisible characters"));
+ ADD_SET_PROP ("show-spaces-set", PROP_SHOW_SPACES_SET, NULL, NULL);
- ADD_SET_PROP ("insert-hyphens-set", PROP_INSERT_HYPHENS_SET,
- P_("Insert hyphens set"),
- P_("Whether this tag affects insertion of hyphens"));
+ ADD_SET_PROP ("insert-hyphens-set", PROP_INSERT_HYPHENS_SET, NULL, NULL);
- ADD_SET_PROP ("text-transform-set", PROP_TEXT_TRANSFORM_SET,
- P_("Text transform set"),
- P_("Whether this tag affects text transformation"));
+ ADD_SET_PROP ("text-transform-set", PROP_TEXT_TRANSFORM_SET, NULL, NULL);
- ADD_SET_PROP ("word-set", PROP_WORD_SET,
- P_("Word set"),
- P_("Whether this tag represents a single word"));
+ ADD_SET_PROP ("word-set", PROP_WORD_SET, NULL, NULL);
- ADD_SET_PROP ("sentence-set", PROP_WORD_SET,
- P_("Sentence set"),
- P_("Whether this tag represents a single sentence"));
+ ADD_SET_PROP ("sentence-set", PROP_WORD_SET, NULL, NULL);
}
static void
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index 5f8bb14ffb..6df6b6e50f 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -857,9 +857,7 @@ gtk_text_view_class_init (GtkTextViewClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_PIXELS_ABOVE_LINES,
- g_param_spec_int ("pixels-above-lines",
- P_("Pixels Above Lines"),
- P_("Pixels of blank space above paragraphs"),
+ g_param_spec_int ("pixels-above-lines", NULL, NULL,
0, G_MAXINT, 0,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -870,9 +868,7 @@ gtk_text_view_class_init (GtkTextViewClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_PIXELS_BELOW_LINES,
- g_param_spec_int ("pixels-below-lines",
- P_("Pixels Below Lines"),
- P_("Pixels of blank space below paragraphs"),
+ g_param_spec_int ("pixels-below-lines", NULL, NULL,
0, G_MAXINT, 0,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -883,9 +879,7 @@ gtk_text_view_class_init (GtkTextViewClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_PIXELS_INSIDE_WRAP,
- g_param_spec_int ("pixels-inside-wrap",
- P_("Pixels Inside Wrap"),
- P_("Pixels of blank space between wrapped lines in a paragraph"),
+ g_param_spec_int ("pixels-inside-wrap", NULL, NULL,
0, G_MAXINT, 0,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -896,9 +890,7 @@ gtk_text_view_class_init (GtkTextViewClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_EDITABLE,
- g_param_spec_boolean ("editable",
- P_("Editable"),
- P_("Whether the text can be modified by the user"),
+ g_param_spec_boolean ("editable", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -909,9 +901,7 @@ gtk_text_view_class_init (GtkTextViewClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_WRAP_MODE,
- g_param_spec_enum ("wrap-mode",
- P_("Wrap Mode"),
- P_("Whether to wrap lines never, at word boundaries, or at character boundaries"),
+ g_param_spec_enum ("wrap-mode", NULL, NULL,
GTK_TYPE_WRAP_MODE,
GTK_WRAP_NONE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -923,9 +913,7 @@ gtk_text_view_class_init (GtkTextViewClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_JUSTIFICATION,
- g_param_spec_enum ("justification",
- P_("Justification"),
- P_("Left, right, or center justification"),
+ g_param_spec_enum ("justification", NULL, NULL,
GTK_TYPE_JUSTIFICATION,
GTK_JUSTIFY_LEFT,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -943,9 +931,7 @@ gtk_text_view_class_init (GtkTextViewClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_LEFT_MARGIN,
- g_param_spec_int ("left-margin",
- P_("Left Margin"),
- P_("Width of the left margin in pixels"),
+ g_param_spec_int ("left-margin", NULL, NULL,
0, G_MAXINT, 0,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -962,9 +948,7 @@ gtk_text_view_class_init (GtkTextViewClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_RIGHT_MARGIN,
- g_param_spec_int ("right-margin",
- P_("Right Margin"),
- P_("Width of the right margin in pixels"),
+ g_param_spec_int ("right-margin", NULL, NULL,
0, G_MAXINT, 0,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -981,9 +965,7 @@ gtk_text_view_class_init (GtkTextViewClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_TOP_MARGIN,
- g_param_spec_int ("top-margin",
- P_("Top Margin"),
- P_("Height of the top margin in pixels"),
+ g_param_spec_int ("top-margin", NULL, NULL,
0, G_MAXINT, 0,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -1000,9 +982,7 @@ gtk_text_view_class_init (GtkTextViewClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_BOTTOM_MARGIN,
- g_param_spec_int ("bottom-margin",
- P_("Bottom Margin"),
- P_("Height of the bottom margin in pixels"),
+ g_param_spec_int ("bottom-margin", NULL, NULL,
0, G_MAXINT, 0,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -1013,9 +993,7 @@ gtk_text_view_class_init (GtkTextViewClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_INDENT,
- g_param_spec_int ("indent",
- P_("Indent"),
- P_("Amount to indent the paragraph, in pixels"),
+ g_param_spec_int ("indent", NULL, NULL,
G_MININT, G_MAXINT, 0,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -1026,9 +1004,7 @@ gtk_text_view_class_init (GtkTextViewClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_TABS,
- g_param_spec_boxed ("tabs",
- P_("Tabs"),
- P_("Custom tabs for this text"),
+ g_param_spec_boxed ("tabs", NULL, NULL,
PANGO_TYPE_TAB_ARRAY,
GTK_PARAM_READWRITE));
@@ -1039,9 +1015,7 @@ gtk_text_view_class_init (GtkTextViewClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_CURSOR_VISIBLE,
- g_param_spec_boolean ("cursor-visible",
- P_("Cursor Visible"),
- P_("If the insertion cursor is shown"),
+ g_param_spec_boolean ("cursor-visible", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -1052,9 +1026,7 @@ gtk_text_view_class_init (GtkTextViewClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_BUFFER,
- g_param_spec_object ("buffer",
- P_("Buffer"),
- P_("The buffer which is displayed"),
+ g_param_spec_object ("buffer", NULL, NULL,
GTK_TYPE_TEXT_BUFFER,
GTK_PARAM_READWRITE));
@@ -1065,9 +1037,7 @@ gtk_text_view_class_init (GtkTextViewClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_OVERWRITE,
- g_param_spec_boolean ("overwrite",
- P_("Overwrite mode"),
- P_("Whether entered text overwrites existing contents"),
+ g_param_spec_boolean ("overwrite", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -1078,9 +1048,7 @@ gtk_text_view_class_init (GtkTextViewClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_ACCEPTS_TAB,
- g_param_spec_boolean ("accepts-tab",
- P_("Accepts tab"),
- P_("Whether Tab will result in a tab character being entered"),
+ g_param_spec_boolean ("accepts-tab", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -1096,9 +1064,7 @@ gtk_text_view_class_init (GtkTextViewClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_IM_MODULE,
- g_param_spec_string ("im-module",
- P_("IM module"),
- P_("Which IM module should be used"),
+ g_param_spec_string ("im-module", NULL, NULL,
NULL,
GTK_PARAM_READWRITE));
@@ -1112,9 +1078,7 @@ gtk_text_view_class_init (GtkTextViewClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_INPUT_PURPOSE,
- g_param_spec_enum ("input-purpose",
- P_("Purpose"),
- P_("Purpose of the text field"),
+ g_param_spec_enum ("input-purpose", NULL, NULL,
GTK_TYPE_INPUT_PURPOSE,
GTK_INPUT_PURPOSE_FREE_FORM,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -1128,9 +1092,7 @@ gtk_text_view_class_init (GtkTextViewClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_INPUT_HINTS,
- g_param_spec_flags ("input-hints",
- P_("hints"),
- P_("Hints for the text field behaviour"),
+ g_param_spec_flags ("input-hints", NULL, NULL,
GTK_TYPE_INPUT_HINTS,
GTK_INPUT_HINT_NONE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -1146,9 +1108,7 @@ gtk_text_view_class_init (GtkTextViewClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_MONOSPACE,
- g_param_spec_boolean ("monospace",
- P_("Monospace"),
- P_("Whether to use a monospace font"),
+ g_param_spec_boolean ("monospace", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -1159,9 +1119,7 @@ gtk_text_view_class_init (GtkTextViewClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_EXTRA_MENU,
- g_param_spec_object ("extra-menu",
- P_("Extra menu"),
- P_("Menu model to append to the context menu"),
+ g_param_spec_object ("extra-menu", NULL, NULL,
G_TYPE_MENU_MODEL,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
diff --git a/gtk/gtktextviewchild.c b/gtk/gtktextviewchild.c
index 80170f99a2..d7eb7390da 100644
--- a/gtk/gtktextviewchild.c
+++ b/gtk/gtktextviewchild.c
@@ -382,9 +382,7 @@ gtk_text_view_child_class_init (GtkTextViewChildClass *klass)
* `GtkTextView` that the child is attached.
*/
properties[PROP_WINDOW_TYPE] =
- g_param_spec_enum ("window-type",
- P_("Window Type"),
- P_("The GtkTextWindowType"),
+ g_param_spec_enum ("window-type", NULL, NULL,
GTK_TYPE_TEXT_WINDOW_TYPE,
GTK_TEXT_WINDOW_TEXT,
GTK_PARAM_READWRITE|G_PARAM_CONSTRUCT_ONLY|G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtktogglebutton.c b/gtk/gtktogglebutton.c
index ce09a45edb..19c23040f7 100644
--- a/gtk/gtktogglebutton.c
+++ b/gtk/gtktogglebutton.c
@@ -280,9 +280,7 @@ gtk_toggle_button_class_init (GtkToggleButtonClass *class)
* If the toggle button should be pressed in.
*/
toggle_button_props[PROP_ACTIVE] =
- g_param_spec_boolean ("active",
- P_("Active"),
- P_("If the toggle button should be pressed in"),
+ g_param_spec_boolean ("active", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -292,9 +290,7 @@ gtk_toggle_button_class_init (GtkToggleButtonClass *class)
* The toggle button whose group this widget belongs to.
*/
toggle_button_props[PROP_GROUP] =
- g_param_spec_object ("group",
- P_("Group"),
- P_("The toggle button whose group this widget belongs to."),
+ g_param_spec_object ("group", NULL, NULL,
GTK_TYPE_TOGGLE_BUTTON,
GTK_PARAM_WRITABLE);
diff --git a/gtk/gtktreeexpander.c b/gtk/gtktreeexpander.c
index 2b4e8b415d..b07a63e67f 100644
--- a/gtk/gtktreeexpander.c
+++ b/gtk/gtktreeexpander.c
@@ -528,9 +528,7 @@ gtk_tree_expander_class_init (GtkTreeExpanderClass *klass)
* The child widget with the actual contents.
*/
properties[PROP_CHILD] =
- g_param_spec_object ("child",
- P_("Child"),
- P_("The child widget with the actual contents"),
+ g_param_spec_object ("child", NULL, NULL,
GTK_TYPE_WIDGET,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -540,9 +538,7 @@ gtk_tree_expander_class_init (GtkTreeExpanderClass *klass)
* The item held by this expander's row.
*/
properties[PROP_ITEM] =
- g_param_spec_object ("item",
- P_("Item"),
- P_("The item held by this expander's row"),
+ g_param_spec_object ("item", NULL, NULL,
G_TYPE_OBJECT,
G_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -552,9 +548,7 @@ gtk_tree_expander_class_init (GtkTreeExpanderClass *klass)
* The list row to track for expander state.
*/
properties[PROP_LIST_ROW] =
- g_param_spec_object ("list-row",
- P_("List row"),
- P_("The list row to track for expander state"),
+ g_param_spec_object ("list-row", NULL, NULL,
GTK_TYPE_TREE_LIST_ROW,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -566,9 +560,7 @@ gtk_tree_expander_class_init (GtkTreeExpanderClass *klass)
* Since: 4.6
*/
properties[PROP_INDENT_FOR_ICON] =
- g_param_spec_boolean ("indent-for-icon",
- P_ ("Indent without expander"),
- P_ ("If the TreeExpander should indent the child if no expander-icon is shown"),
+ g_param_spec_boolean ("indent-for-icon", NULL, NULL,
TRUE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtktreelistmodel.c b/gtk/gtktreelistmodel.c
index 35f1fe3ab0..4da56b45f4 100644
--- a/gtk/gtktreelistmodel.c
+++ b/gtk/gtktreelistmodel.c
@@ -686,9 +686,7 @@ gtk_tree_list_model_class_init (GtkTreeListModelClass *class)
* If all rows should be expanded by default.
*/
properties[PROP_AUTOEXPAND] =
- g_param_spec_boolean ("autoexpand",
- P_("autoexpand"),
- P_("If all rows should be expanded by default"),
+ g_param_spec_boolean ("autoexpand", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -698,9 +696,7 @@ gtk_tree_list_model_class_init (GtkTreeListModelClass *class)
* The root model displayed.
*/
properties[PROP_MODEL] =
- g_param_spec_object ("model",
- P_("Model"),
- P_("The root model displayed"),
+ g_param_spec_object ("model", NULL, NULL,
G_TYPE_LIST_MODEL,
GTK_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY);
@@ -714,9 +710,7 @@ gtk_tree_list_model_class_init (GtkTreeListModelClass *class)
* models are pass through unmodified.
*/
properties[PROP_PASSTHROUGH] =
- g_param_spec_boolean ("passthrough",
- P_("passthrough"),
- P_("If child model values are passed through"),
+ g_param_spec_boolean ("passthrough", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_EXPLICIT_NOTIFY);
@@ -1055,9 +1049,7 @@ gtk_tree_list_row_class_init (GtkTreeListRowClass *class)
* The model holding the row's children.
*/
row_properties[ROW_PROP_CHILDREN] =
- g_param_spec_object ("children",
- P_("Children"),
- P_("Model holding the row’s children"),
+ g_param_spec_object ("children", NULL, NULL,
G_TYPE_LIST_MODEL,
GTK_PARAM_READABLE);
@@ -1067,9 +1059,7 @@ gtk_tree_list_row_class_init (GtkTreeListRowClass *class)
* The depth in the tree of this row.
*/
row_properties[ROW_PROP_DEPTH] =
- g_param_spec_uint ("depth",
- P_("Depth"),
- P_("Depth in the tree"),
+ g_param_spec_uint ("depth", NULL, NULL,
0, G_MAXUINT, 0,
GTK_PARAM_READABLE);
@@ -1079,9 +1069,7 @@ gtk_tree_list_row_class_init (GtkTreeListRowClass *class)
* If this row can ever be expanded.
*/
row_properties[ROW_PROP_EXPANDABLE] =
- g_param_spec_boolean ("expandable",
- P_("Expandable"),
- P_("If this row can ever be expanded"),
+ g_param_spec_boolean ("expandable", NULL, NULL,
FALSE,
GTK_PARAM_READABLE);
@@ -1091,9 +1079,7 @@ gtk_tree_list_row_class_init (GtkTreeListRowClass *class)
* If this row is currently expanded.
*/
row_properties[ROW_PROP_EXPANDED] =
- g_param_spec_boolean ("expanded",
- P_("Expanded"),
- P_("If this row is currently expanded"),
+ g_param_spec_boolean ("expanded", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -1103,9 +1089,7 @@ gtk_tree_list_row_class_init (GtkTreeListRowClass *class)
* The item held in this row.
*/
row_properties[ROW_PROP_ITEM] =
- g_param_spec_object ("item",
- P_("Item"),
- P_("The item held in this row"),
+ g_param_spec_object ("item", NULL, NULL,
G_TYPE_OBJECT,
GTK_PARAM_READABLE);
diff --git a/gtk/gtktreelistrowsorter.c b/gtk/gtktreelistrowsorter.c
index ee0a7d1e47..f9f626b1c5 100644
--- a/gtk/gtktreelistrowsorter.c
+++ b/gtk/gtktreelistrowsorter.c
@@ -540,9 +540,7 @@ gtk_tree_list_row_sorter_class_init (GtkTreeListRowSorterClass *class)
* The underlying sorter
*/
properties[PROP_SORTER] =
- g_param_spec_object ("sorter",
- P_("Sorter"),
- P_("The underlying sorter"),
+ g_param_spec_object ("sorter", NULL, NULL,
GTK_TYPE_SORTER,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtktreemodelfilter.c b/gtk/gtktreemodelfilter.c
index 68310fc2d5..6610fa7987 100644
--- a/gtk/gtktreemodelfilter.c
+++ b/gtk/gtktreemodelfilter.c
@@ -527,17 +527,13 @@ gtk_tree_model_filter_class_init (GtkTreeModelFilterClass *filter_class)
g_object_class_install_property (object_class,
PROP_CHILD_MODEL,
- g_param_spec_object ("child-model",
- P_("The child model"),
- P_("The model for the filtermodel to filter"),
+ g_param_spec_object ("child-model", NULL, NULL,
GTK_TYPE_TREE_MODEL,
GTK_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
g_object_class_install_property (object_class,
PROP_VIRTUAL_ROOT,
- g_param_spec_boxed ("virtual-root",
- P_("The virtual root"),
- P_("The virtual root (relative to the child model) for this filtermodel"),
+ g_param_spec_boxed ("virtual-root", NULL, NULL,
GTK_TYPE_TREE_PATH,
GTK_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
}
diff --git a/gtk/gtktreemodelsort.c b/gtk/gtktreemodelsort.c
index 1ef440da06..8674b356ee 100644
--- a/gtk/gtktreemodelsort.c
+++ b/gtk/gtktreemodelsort.c
@@ -479,9 +479,7 @@ gtk_tree_model_sort_class_init (GtkTreeModelSortClass *class)
/* Properties */
g_object_class_install_property (object_class,
PROP_MODEL,
- g_param_spec_object ("model",
- P_("TreeModelSort Model"),
- P_("The model for the TreeModelSort to sort"),
+ g_param_spec_object ("model", NULL, NULL,
GTK_TYPE_TREE_MODEL,
GTK_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
}
diff --git a/gtk/gtktreepopover.c b/gtk/gtktreepopover.c
index f2b8285e1c..8ff89b00a4 100644
--- a/gtk/gtktreepopover.c
+++ b/gtk/gtktreepopover.c
@@ -202,17 +202,13 @@ gtk_tree_popover_class_init (GtkTreePopoverClass *class)
g_object_class_install_property (object_class,
PROP_MODEL,
- g_param_spec_object ("model",
- P_("model"),
- P_("The model for the popover"),
+ g_param_spec_object ("model", NULL, NULL,
GTK_TYPE_TREE_MODEL,
GTK_PARAM_READWRITE));
g_object_class_install_property (object_class,
PROP_CELL_AREA,
- g_param_spec_object ("cell-area",
- P_("Cell Area"),
- P_("The GtkCellArea used to layout cells"),
+ g_param_spec_object ("cell-area", NULL, NULL,
GTK_TYPE_CELL_AREA,
GTK_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
diff --git a/gtk/gtktreeselection.c b/gtk/gtktreeselection.c
index f3ab4d449b..a3c6ecd946 100644
--- a/gtk/gtktreeselection.c
+++ b/gtk/gtktreeselection.c
@@ -130,9 +130,7 @@ gtk_tree_selection_class_init (GtkTreeSelectionClass *class)
* Selection mode.
* See gtk_tree_selection_set_mode() for more information on this property.
*/
- properties[PROP_MODE] = g_param_spec_enum ("mode",
- P_("Mode"),
- P_("Selection mode"),
+ properties[PROP_MODE] = g_param_spec_enum ("mode", NULL, NULL,
GTK_TYPE_SELECTION_MODE,
GTK_SELECTION_SINGLE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index 55c8b28f15..60e54f6da7 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -992,51 +992,37 @@ gtk_tree_view_class_init (GtkTreeViewClass *class)
g_object_class_override_property (o_class, PROP_VSCROLL_POLICY, "vscroll-policy");
tree_view_props[PROP_MODEL] =
- g_param_spec_object ("model",
- P_("TreeView Model"),
- P_("The model for the tree view"),
+ g_param_spec_object ("model", NULL, NULL,
GTK_TYPE_TREE_MODEL,
GTK_PARAM_READWRITE);
tree_view_props[PROP_HEADERS_VISIBLE] =
- g_param_spec_boolean ("headers-visible",
- P_("Headers Visible"),
- P_("Show the column header buttons"),
+ g_param_spec_boolean ("headers-visible", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
tree_view_props[PROP_HEADERS_CLICKABLE] =
- g_param_spec_boolean ("headers-clickable",
- P_("Headers Clickable"),
- P_("Column headers respond to click events"),
+ g_param_spec_boolean ("headers-clickable", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
tree_view_props[PROP_EXPANDER_COLUMN] =
- g_param_spec_object ("expander-column",
- P_("Expander Column"),
- P_("Set the column for the expander column"),
+ g_param_spec_object ("expander-column", NULL, NULL,
GTK_TYPE_TREE_VIEW_COLUMN,
GTK_PARAM_READWRITE);
tree_view_props[PROP_REORDERABLE] =
- g_param_spec_boolean ("reorderable",
- P_("Reorderable"),
- P_("View is reorderable"),
+ g_param_spec_boolean ("reorderable", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
tree_view_props[PROP_ENABLE_SEARCH] =
- g_param_spec_boolean ("enable-search",
- P_("Enable Search"),
- P_("View allows user to search through columns interactively"),
+ g_param_spec_boolean ("enable-search", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
tree_view_props[PROP_SEARCH_COLUMN] =
- g_param_spec_int ("search-column",
- P_("Search Column"),
- P_("Model column to search through during interactive search"),
+ g_param_spec_int ("search-column", NULL, NULL,
-1, G_MAXINT,
-1,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -1051,9 +1037,7 @@ gtk_tree_view_class_init (GtkTreeViewClass *class)
* information on this option.
*/
tree_view_props[PROP_FIXED_HEIGHT_MODE] =
- g_param_spec_boolean ("fixed-height-mode",
- P_("Fixed Height Mode"),
- P_("Speeds up GtkTreeView by assuming that all rows have the same height"),
+ g_param_spec_boolean ("fixed-height-mode", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -1069,9 +1053,7 @@ gtk_tree_view_class_init (GtkTreeViewClass *class)
* in `GtkComboBox` or `GtkEntryCompletion`.
*/
tree_view_props[PROP_HOVER_SELECTION] =
- g_param_spec_boolean ("hover-selection",
- P_("Hover Selection"),
- P_("Whether the selection should follow the pointer"),
+ g_param_spec_boolean ("hover-selection", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -1086,9 +1068,7 @@ gtk_tree_view_class_init (GtkTreeViewClass *class)
* in `GtkComboBox` or `GtkEntryCompletion`.
*/
tree_view_props[PROP_HOVER_EXPAND] =
- g_param_spec_boolean ("hover-expand",
- P_("Hover Expand"),
- P_("Whether rows should be expanded/collapsed when the pointer moves over them"),
+ g_param_spec_boolean ("hover-expand", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -1098,9 +1078,7 @@ gtk_tree_view_class_init (GtkTreeViewClass *class)
* %TRUE if the view has expanders.
*/
tree_view_props[PROP_SHOW_EXPANDERS] =
- g_param_spec_boolean ("show-expanders",
- P_("Show Expanders"),
- P_("View has expanders"),
+ g_param_spec_boolean ("show-expanders", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -1110,39 +1088,29 @@ gtk_tree_view_class_init (GtkTreeViewClass *class)
* Extra indentation for each level.
*/
tree_view_props[PROP_LEVEL_INDENTATION] =
- g_param_spec_int ("level-indentation",
- P_("Level Indentation"),
- P_("Extra indentation for each level"),
+ g_param_spec_int ("level-indentation", NULL, NULL,
0, G_MAXINT,
0,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
tree_view_props[PROP_RUBBER_BANDING] =
- g_param_spec_boolean ("rubber-banding",
- P_("Rubber Banding"),
- P_("Whether to enable selection of multiple items by dragging the mouse pointer"),
+ g_param_spec_boolean ("rubber-banding", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
tree_view_props[PROP_ENABLE_GRID_LINES] =
- g_param_spec_enum ("enable-grid-lines",
- P_("Enable Grid Lines"),
- P_("Whether grid lines should be drawn in the tree view"),
+ g_param_spec_enum ("enable-grid-lines", NULL, NULL,
GTK_TYPE_TREE_VIEW_GRID_LINES,
GTK_TREE_VIEW_GRID_LINES_NONE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
tree_view_props[PROP_ENABLE_TREE_LINES] =
- g_param_spec_boolean ("enable-tree-lines",
- P_("Enable Tree Lines"),
- P_("Whether tree lines should be drawn in the tree view"),
+ g_param_spec_boolean ("enable-tree-lines", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
tree_view_props[PROP_TOOLTIP_COLUMN] =
- g_param_spec_int ("tooltip-column",
- P_("Tooltip Column"),
- P_("The column in the model containing the tooltip texts for the rows"),
+ g_param_spec_int ("tooltip-column", NULL, NULL,
-1, G_MAXINT,
-1,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -1154,9 +1122,7 @@ gtk_tree_view_class_init (GtkTreeViewClass *class)
* will be emitted after a single click.
*/
tree_view_props[PROP_ACTIVATE_ON_SINGLE_CLICK] =
- g_param_spec_boolean ("activate-on-single-click",
- P_("Activate on Single Click"),
- P_("Activate row on a single click"),
+ g_param_spec_boolean ("activate-on-single-click", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtktreeviewcolumn.c b/gtk/gtktreeviewcolumn.c
index b7bada839f..b3cf60edb0 100644
--- a/gtk/gtktreeviewcolumn.c
+++ b/gtk/gtktreeviewcolumn.c
@@ -272,128 +272,94 @@ gtk_tree_view_column_class_init (GtkTreeViewColumnClass *class)
G_TYPE_NONE, 0);
tree_column_props[PROP_VISIBLE] =
- g_param_spec_boolean ("visible",
- P_("Visible"),
- P_("Whether to display the column"),
+ g_param_spec_boolean ("visible", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
tree_column_props[PROP_RESIZABLE] =
- g_param_spec_boolean ("resizable",
- P_("Resizable"),
- P_("Column is user-resizable"),
+ g_param_spec_boolean ("resizable", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
tree_column_props[PROP_X_OFFSET] =
- g_param_spec_int ("x-offset",
- P_("X position"),
- P_("Current X position of the column"),
+ g_param_spec_int ("x-offset", NULL, NULL,
-G_MAXINT, G_MAXINT,
0,
GTK_PARAM_READABLE);
tree_column_props[PROP_WIDTH] =
- g_param_spec_int ("width",
- P_("Width"),
- P_("Current width of the column"),
+ g_param_spec_int ("width", NULL, NULL,
0, G_MAXINT,
0,
GTK_PARAM_READABLE);
tree_column_props[PROP_SPACING] =
- g_param_spec_int ("spacing",
- P_("Spacing"),
- P_("Space which is inserted between cells"),
+ g_param_spec_int ("spacing", NULL, NULL,
0, G_MAXINT,
0,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
tree_column_props[PROP_SIZING] =
- g_param_spec_enum ("sizing",
- P_("Sizing"),
- P_("Resize mode of the column"),
+ g_param_spec_enum ("sizing", NULL, NULL,
GTK_TYPE_TREE_VIEW_COLUMN_SIZING,
GTK_TREE_VIEW_COLUMN_GROW_ONLY,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
tree_column_props[PROP_FIXED_WIDTH] =
- g_param_spec_int ("fixed-width",
- P_("Fixed Width"),
- P_("Current fixed width of the column"),
+ g_param_spec_int ("fixed-width", NULL, NULL,
-1, G_MAXINT,
-1,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
tree_column_props[PROP_MIN_WIDTH] =
- g_param_spec_int ("min-width",
- P_("Minimum Width"),
- P_("Minimum allowed width of the column"),
+ g_param_spec_int ("min-width", NULL, NULL,
-1, G_MAXINT,
-1,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
tree_column_props[PROP_MAX_WIDTH] =
- g_param_spec_int ("max-width",
- P_("Maximum Width"),
- P_("Maximum allowed width of the column"),
+ g_param_spec_int ("max-width", NULL, NULL,
-1, G_MAXINT,
-1,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
tree_column_props[PROP_TITLE] =
- g_param_spec_string ("title",
- P_("Title"),
- P_("Title to appear in column header"),
+ g_param_spec_string ("title", NULL, NULL,
"",
GTK_PARAM_READWRITE);
tree_column_props[PROP_EXPAND] =
- g_param_spec_boolean ("expand",
- P_("Expand"),
- P_("Column gets share of extra width allocated to the widget"),
+ g_param_spec_boolean ("expand", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
tree_column_props[PROP_CLICKABLE] =
- g_param_spec_boolean ("clickable",
- P_("Clickable"),
- P_("Whether the header can be clicked"),
+ g_param_spec_boolean ("clickable", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
tree_column_props[PROP_WIDGET] =
- g_param_spec_object ("widget",
- P_("Widget"),
- P_("Widget to put in column header button instead of column title"),
+ g_param_spec_object ("widget", NULL, NULL,
GTK_TYPE_WIDGET,
GTK_PARAM_READWRITE);
tree_column_props[PROP_ALIGNMENT] =
- g_param_spec_float ("alignment",
- P_("Alignment"),
- P_("X Alignment of the column header text or widget"),
+ g_param_spec_float ("alignment", NULL, NULL,
0.0, 1.0, 0.0,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
tree_column_props[PROP_REORDERABLE] =
- g_param_spec_boolean ("reorderable",
- P_("Reorderable"),
- P_("Whether the column can be reordered around the headers"),
+ g_param_spec_boolean ("reorderable", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
tree_column_props[PROP_SORT_INDICATOR] =
- g_param_spec_boolean ("sort-indicator",
- P_("Sort indicator"),
- P_("Whether to show a sort indicator"),
+ g_param_spec_boolean ("sort-indicator", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
tree_column_props[PROP_SORT_ORDER] =
- g_param_spec_enum ("sort-order",
- P_("Sort order"),
- P_("Sort direction the sort indicator should indicate"),
+ g_param_spec_enum ("sort-order", NULL, NULL,
GTK_TYPE_SORT_TYPE,
GTK_SORT_ASCENDING,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -405,9 +371,7 @@ gtk_tree_view_column_class_init (GtkTreeViewColumnClass *class)
* clickable. Set to -1 to make the column unsortable.
**/
tree_column_props[PROP_SORT_COLUMN_ID] =
- g_param_spec_int ("sort-column-id",
- P_("Sort column ID"),
- P_("Logical sort column ID this column sorts on when selected for sorting"),
+ g_param_spec_int ("sort-column-id", NULL, NULL,
-1, G_MAXINT,
-1,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -421,9 +385,7 @@ gtk_tree_view_column_class_init (GtkTreeViewColumnClass *class)
* a horizontally oriented `GtkCellAreaBox` will be used.
*/
tree_column_props[PROP_CELL_AREA] =
- g_param_spec_object ("cell-area",
- P_("Cell Area"),
- P_("The GtkCellArea used to layout cells"),
+ g_param_spec_object ("cell-area", NULL, NULL,
GTK_TYPE_CELL_AREA,
GTK_PARAM_READWRITE|G_PARAM_CONSTRUCT_ONLY);
diff --git a/gtk/gtkvideo.c b/gtk/gtkvideo.c
index 22c232b53e..ef5e182dd0 100644
--- a/gtk/gtkvideo.c
+++ b/gtk/gtkvideo.c
@@ -314,9 +314,7 @@ gtk_video_class_init (GtkVideoClass *klass)
* If the video should automatically begin playing.
*/
properties[PROP_AUTOPLAY] =
- g_param_spec_boolean ("autoplay",
- P_("Autoplay"),
- P_("If playback should begin automatically"),
+ g_param_spec_boolean ("autoplay", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -326,9 +324,7 @@ gtk_video_class_init (GtkVideoClass *klass)
* The file played by this video if the video is playing a file.
*/
properties[PROP_FILE] =
- g_param_spec_object ("file",
- P_("File"),
- P_("The video file played back"),
+ g_param_spec_object ("file", NULL, NULL,
G_TYPE_FILE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -338,9 +334,7 @@ gtk_video_class_init (GtkVideoClass *klass)
* If new media files should be set to loop.
*/
properties[PROP_LOOP] =
- g_param_spec_boolean ("loop",
- P_("Loop"),
- P_("If new media streams should be set to loop"),
+ g_param_spec_boolean ("loop", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
@@ -350,9 +344,7 @@ gtk_video_class_init (GtkVideoClass *klass)
* The media-stream played
*/
properties[PROP_MEDIA_STREAM] =
- g_param_spec_object ("media-stream",
- P_("Media Stream"),
- P_("The media stream played"),
+ g_param_spec_object ("media-stream", NULL, NULL,
GTK_TYPE_MEDIA_STREAM,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
diff --git a/gtk/gtkviewport.c b/gtk/gtkviewport.c
index ccac4fbf90..39b44370f2 100644
--- a/gtk/gtkviewport.c
+++ b/gtk/gtkviewport.c
@@ -319,9 +319,7 @@ gtk_viewport_class_init (GtkViewportClass *class)
*/
g_object_class_install_property (gobject_class,
PROP_SCROLL_TO_FOCUS,
- g_param_spec_boolean ("scroll-to-focus",
- P_("Scroll to focus"),
- P_("Whether to scroll when the focus changes"),
+ g_param_spec_boolean ("scroll-to-focus", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
@@ -332,9 +330,7 @@ gtk_viewport_class_init (GtkViewportClass *class)
*/
g_object_class_install_property (gobject_class,
PROP_CHILD,
- g_param_spec_object ("child",
- P_("Child"),
- P_("The child widget"),
+ g_param_spec_object ("child", NULL, NULL,
GTK_TYPE_WIDGET,
GTK_PARAM_READWRITE));
diff --git a/gtk/gtkvolumebutton.c b/gtk/gtkvolumebutton.c
index 5d9c494a29..018c96cc18 100644
--- a/gtk/gtkvolumebutton.c
+++ b/gtk/gtkvolumebutton.c
@@ -169,9 +169,7 @@ gtk_volume_button_class_init (GtkVolumeButtonClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_SYMBOLIC,
- g_param_spec_boolean ("use-symbolic",
- P_("Use symbolic icons"),
- P_("Whether to use symbolic icons"),
+ g_param_spec_boolean ("use-symbolic", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_CONSTRUCT|G_PARAM_EXPLICIT_NOTIFY));
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index afe7e9224e..3d1a46897d 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -1186,9 +1186,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
* The name of the widget.
*/
widget_props[PROP_NAME] =
- g_param_spec_string ("name",
- P_("Widget name"),
- P_("The name of the widget"),
+ g_param_spec_string ("name", NULL, NULL,
NULL,
GTK_PARAM_READWRITE);
@@ -1198,9 +1196,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
* The parent widget of this widget.
*/
widget_props[PROP_PARENT] =
- g_param_spec_object ("parent",
- P_("Parent widget"),
- P_("The parent widget of this widget."),
+ g_param_spec_object ("parent", NULL, NULL,
GTK_TYPE_WIDGET,
GTK_PARAM_READABLE|G_PARAM_EXPLICIT_NOTIFY);
@@ -1212,9 +1208,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
* This will be %NULL if the widget is not contained in a root widget.
*/
widget_props[PROP_ROOT] =
- g_param_spec_object ("root",
- P_("Root widget"),
- P_("The root widget in the widget tree."),
+ g_param_spec_object ("root", NULL, NULL,
GTK_TYPE_ROOT,
GTK_PARAM_READABLE|G_PARAM_EXPLICIT_NOTIFY);
@@ -1226,9 +1220,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
* If this is -1, the natural request will be used.
*/
widget_props[PROP_WIDTH_REQUEST] =
- g_param_spec_int ("width-request",
- P_("Width request"),
- P_("Override for width request of the widget, or -1 if natural request should be used"),
+ g_param_spec_int ("width-request", NULL, NULL,
-1, G_MAXINT,
-1,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -1241,9 +1233,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
* If this is -1, the natural request will be used.
*/
widget_props[PROP_HEIGHT_REQUEST] =
- g_param_spec_int ("height-request",
- P_("Height request"),
- P_("Override for height request of the widget, or -1 if natural request should be used"),
+ g_param_spec_int ("height-request", NULL, NULL,
-1, G_MAXINT,
-1,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -1254,9 +1244,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
* Whether the widget is visible.
*/
widget_props[PROP_VISIBLE] =
- g_param_spec_boolean ("visible",
- P_("Visible"),
- P_("Whether the widget is visible"),
+ g_param_spec_boolean ("visible", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -1266,9 +1254,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
* Whether the widget responds to input.
*/
widget_props[PROP_SENSITIVE] =
- g_param_spec_boolean ("sensitive",
- P_("Sensitive"),
- P_("Whether the widget responds to input"),
+ g_param_spec_boolean ("sensitive", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -1282,9 +1268,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
* typically in their instance init function.
*/
widget_props[PROP_CAN_FOCUS] =
- g_param_spec_boolean ("can-focus",
- P_("Can focus"),
- P_("Whether the widget can accept the input focus"),
+ g_param_spec_boolean ("can-focus", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -1294,9 +1278,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
* Whether this widget itself will accept the input focus.
*/
widget_props[PROP_FOCUSABLE] =
- g_param_spec_boolean ("focusable",
- P_("Focusable"),
- P_("Whether the widget can accept the input focus"),
+ g_param_spec_boolean ("focusable", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -1306,9 +1288,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
* Whether the widget has the input focus.
*/
widget_props[PROP_HAS_FOCUS] =
- g_param_spec_boolean ("has-focus",
- P_("Has focus"),
- P_("Whether the widget has the input focus"),
+ g_param_spec_boolean ("has-focus", NULL, NULL,
FALSE,
GTK_PARAM_READABLE|G_PARAM_EXPLICIT_NOTIFY);
@@ -1318,9 +1298,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
* Whether the widget can receive pointer events.
*/
widget_props[PROP_CAN_TARGET] =
- g_param_spec_boolean ("can-target",
- P_("Can target"),
- P_("Whether the widget can receive pointer events"),
+ g_param_spec_boolean ("can-target", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -1332,9 +1310,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
* This property is only relevant for widgets that can take focus.
*/
widget_props[PROP_FOCUS_ON_CLICK] =
- g_param_spec_boolean ("focus-on-click",
- P_("Focus on click"),
- P_("Whether the widget should grab focus when it is clicked with the mouse"),
+ g_param_spec_boolean ("focus-on-click", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -1344,9 +1320,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
* Whether the widget is the default widget.
*/
widget_props[PROP_HAS_DEFAULT] =
- g_param_spec_boolean ("has-default",
- P_("Has default"),
- P_("Whether the widget is the default widget"),
+ g_param_spec_boolean ("has-default", NULL, NULL,
FALSE,
GTK_PARAM_READABLE|G_PARAM_EXPLICIT_NOTIFY);
@@ -1356,9 +1330,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
* Whether the widget will receive the default action when it is focused.
*/
widget_props[PROP_RECEIVES_DEFAULT] =
- g_param_spec_boolean ("receives-default",
- P_("Receives default"),
- P_("If TRUE, the widget will receive the default action when it is focused"),
+ g_param_spec_boolean ("receives-default", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -1368,9 +1340,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
* The cursor used by @widget.
*/
widget_props[PROP_CURSOR] =
- g_param_spec_object("cursor",
- P_("Cursor"),
- P_("The cursor to show when hovering above widget"),
+ g_param_spec_object("cursor", NULL, NULL,
GDK_TYPE_CURSOR,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -1384,9 +1354,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
* determine whether it will provide a tooltip or not.
*/
widget_props[PROP_HAS_TOOLTIP] =
- g_param_spec_boolean ("has-tooltip",
- P_("Has tooltip"),
- P_("Whether this widget has a tooltip"),
+ g_param_spec_boolean ("has-tooltip", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -1407,9 +1375,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
* [property@Gtk.Widget:tooltip-markup] are set, the last one wins.
*/
widget_props[PROP_TOOLTIP_TEXT] =
- g_param_spec_string ("tooltip-text",
- P_("Tooltip Text"),
- P_("The contents of the tooltip for this widget"),
+ g_param_spec_string ("tooltip-text", NULL, NULL,
NULL,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -1431,9 +1397,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
* [property@Gtk.Widget:tooltip-markup] are set, the last one wins.
*/
widget_props[PROP_TOOLTIP_MARKUP] =
- g_param_spec_string ("tooltip-markup",
- P_("Tooltip markup"),
- P_("The contents of the tooltip for this widget"),
+ g_param_spec_string ("tooltip-markup", NULL, NULL,
NULL,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -1443,9 +1407,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
* How to distribute horizontal space if widget gets extra space.
*/
widget_props[PROP_HALIGN] =
- g_param_spec_enum ("halign",
- P_("Horizontal Alignment"),
- P_("How to position in extra horizontal space"),
+ g_param_spec_enum ("halign", NULL, NULL,
GTK_TYPE_ALIGN,
GTK_ALIGN_FILL,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -1456,9 +1418,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
* How to distribute vertical space if widget gets extra space.
*/
widget_props[PROP_VALIGN] =
- g_param_spec_enum ("valign",
- P_("Vertical Alignment"),
- P_("How to position in extra vertical space"),
+ g_param_spec_enum ("valign", NULL, NULL,
GTK_TYPE_ALIGN,
GTK_ALIGN_FILL,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -1476,9 +1436,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
* [method@Gtk.Widget.set_size_request] for example.
*/
widget_props[PROP_MARGIN_START] =
- g_param_spec_int ("margin-start",
- P_("Margin on Start"),
- P_("Pixels of extra space on the start"),
+ g_param_spec_int ("margin-start", NULL, NULL,
0, G_MAXINT16,
0,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -1496,9 +1454,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
* [method@Gtk.Widget.set_size_request] for example.
*/
widget_props[PROP_MARGIN_END] =
- g_param_spec_int ("margin-end",
- P_("Margin on End"),
- P_("Pixels of extra space on the end"),
+ g_param_spec_int ("margin-end", NULL, NULL,
0, G_MAXINT16,
0,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -1513,9 +1469,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
* [method@Gtk.Widget.set_size_request] for example.
*/
widget_props[PROP_MARGIN_TOP] =
- g_param_spec_int ("margin-top",
- P_("Margin on Top"),
- P_("Pixels of extra space on the top side"),
+ g_param_spec_int ("margin-top", NULL, NULL,
0, G_MAXINT16,
0,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -1530,9 +1484,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
* [method@Gtk.Widget.set_size_request] for example.
*/
widget_props[PROP_MARGIN_BOTTOM] =
- g_param_spec_int ("margin-bottom",
- P_("Margin on Bottom"),
- P_("Pixels of extra space on the bottom side"),
+ g_param_spec_int ("margin-bottom", NULL, NULL,
0, G_MAXINT16,
0,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -1543,9 +1495,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
* Whether to expand horizontally.
*/
widget_props[PROP_HEXPAND] =
- g_param_spec_boolean ("hexpand",
- P_("Horizontal Expand"),
- P_("Whether widget wants more horizontal space"),
+ g_param_spec_boolean ("hexpand", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -1555,9 +1505,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
* Whether to use the `hexpand` property.
*/
widget_props[PROP_HEXPAND_SET] =
- g_param_spec_boolean ("hexpand-set",
- P_("Horizontal Expand Set"),
- P_("Whether to use the hexpand property"),
+ g_param_spec_boolean ("hexpand-set", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -1567,9 +1515,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
* Whether to expand vertically.
*/
widget_props[PROP_VEXPAND] =
- g_param_spec_boolean ("vexpand",
- P_("Vertical Expand"),
- P_("Whether widget wants more vertical space"),
+ g_param_spec_boolean ("vexpand", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -1579,9 +1525,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
* Whether to use the `vexpand` property.
*/
widget_props[PROP_VEXPAND_SET] =
- g_param_spec_boolean ("vexpand-set",
- P_("Vertical Expand Set"),
- P_("Whether to use the vexpand property"),
+ g_param_spec_boolean ("vexpand-set", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -1591,9 +1535,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
* The requested opacity of the widget.
*/
widget_props[PROP_OPACITY] =
- g_param_spec_double ("opacity",
- P_("Opacity for Widget"),
- P_("The opacity of the widget, from 0 to 1"),
+ g_param_spec_double ("opacity", NULL, NULL,
0.0, 1.0,
1.0,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -1607,9 +1549,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
* typically in their instance init function.
*/
widget_props[PROP_OVERFLOW] =
- g_param_spec_enum ("overflow",
- P_("Overflow"),
- P_("How content outside the widget’s content area is treated"),
+ g_param_spec_enum ("overflow", NULL, NULL,
GTK_TYPE_OVERFLOW,
GTK_OVERFLOW_VISIBLE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -1620,9 +1560,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
* The scale factor of the widget.
*/
widget_props[PROP_SCALE_FACTOR] =
- g_param_spec_int ("scale-factor",
- P_("Scale factor"),
- P_("The scaling factor of the window"),
+ g_param_spec_int ("scale-factor", NULL, NULL,
1, G_MAXINT,
1,
GTK_PARAM_READABLE);
@@ -1636,9 +1574,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
* typically in their instance init function.
*/
widget_props[PROP_CSS_NAME] =
- g_param_spec_string ("css-name",
- P_("CSS Name"),
- P_("The name of this widget in the CSS tree"),
+ g_param_spec_string ("css-name", NULL, NULL,
NULL,
GTK_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY);
@@ -1648,9 +1584,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
* A list of css classes applied to this widget.
*/
widget_props[PROP_CSS_CLASSES] =
- g_param_spec_boxed ("css-classes",
- P_("CSS Style Classes"),
- P_("List of CSS classes"),
+ g_param_spec_boxed ("css-classes", NULL, NULL,
G_TYPE_STRV,
GTK_PARAM_READWRITE);
@@ -1664,9 +1598,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
* typically in their instance init function.
*/
widget_props[PROP_LAYOUT_MANAGER] =
- g_param_spec_object ("layout-manager",
- P_("Layout Manager"),
- P_("The layout manager used to layout children of the widget"),
+ g_param_spec_object ("layout-manager", NULL, NULL,
GTK_TYPE_LAYOUT_MANAGER,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtkwidgetpaintable.c b/gtk/gtkwidgetpaintable.c
index 50ea1582fb..5c50abe33e 100644
--- a/gtk/gtkwidgetpaintable.c
+++ b/gtk/gtkwidgetpaintable.c
@@ -243,9 +243,7 @@ gtk_widget_paintable_class_init (GtkWidgetPaintableClass *klass)
* The observed widget or %NULL if none.
*/
properties[PROP_WIDGET] =
- g_param_spec_object ("widget",
- P_("Widget"),
- P_("Observed widget"),
+ g_param_spec_object ("widget", NULL, NULL,
GTK_TYPE_WIDGET,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 2ad8b17509..c2ff60da32 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -773,9 +773,7 @@ gtk_window_class_init (GtkWindowClass *klass)
* The title of the window.
*/
window_props[PROP_TITLE] =
- g_param_spec_string ("title",
- P_("Window Title"),
- P_("The title of the window"),
+ g_param_spec_string ("title", NULL, NULL,
NULL,
GTK_PARAM_READWRITE);
@@ -785,9 +783,7 @@ gtk_window_class_init (GtkWindowClass *klass)
* A write-only property for setting window's startup notification identifier.
*/
window_props[PROP_STARTUP_ID] =
- g_param_spec_string ("startup-id",
- P_("Startup ID"),
- P_("Unique startup identifier for the window used by startup-notification"),
+ g_param_spec_string ("startup-id", NULL, NULL,
NULL,
GTK_PARAM_WRITABLE);
@@ -797,9 +793,7 @@ gtk_window_class_init (GtkWindowClass *klass)
* If %TRUE, users can resize the window.
*/
window_props[PROP_RESIZABLE] =
- g_param_spec_boolean ("resizable",
- P_("Resizable"),
- P_("If TRUE, users can resize the window"),
+ g_param_spec_boolean ("resizable", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -809,9 +803,7 @@ gtk_window_class_init (GtkWindowClass *klass)
* If %TRUE, the window is modal.
*/
window_props[PROP_MODAL] =
- g_param_spec_boolean ("modal",
- P_("Modal"),
- P_("If TRUE, the window is modal (other windows are not usable while this one is up)"),
+ g_param_spec_boolean ("modal", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -821,9 +813,7 @@ gtk_window_class_init (GtkWindowClass *klass)
* The default width of the window.
*/
window_props[PROP_DEFAULT_WIDTH] =
- g_param_spec_int ("default-width",
- P_("Default Width"),
- P_("The default width of the window"),
+ g_param_spec_int ("default-width", NULL, NULL,
-1, G_MAXINT,
0,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -834,9 +824,7 @@ gtk_window_class_init (GtkWindowClass *klass)
* The default height of the window.
*/
window_props[PROP_DEFAULT_HEIGHT] =
- g_param_spec_int ("default-height",
- P_("Default Height"),
- P_("The default height of the window"),
+ g_param_spec_int ("default-height", NULL, NULL,
-1, G_MAXINT,
0,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -847,9 +835,7 @@ gtk_window_class_init (GtkWindowClass *klass)
* If this window should be destroyed when the parent is destroyed.
*/
window_props[PROP_DESTROY_WITH_PARENT] =
- g_param_spec_boolean ("destroy-with-parent",
- P_("Destroy with Parent"),
- P_("If this window should be destroyed when the parent is destroyed"),
+ g_param_spec_boolean ("destroy-with-parent", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -859,9 +845,7 @@ gtk_window_class_init (GtkWindowClass *klass)
* If this window should be hidden when the users clicks the close button.
*/
window_props[PROP_HIDE_ON_CLOSE] =
- g_param_spec_boolean ("hide-on-close",
- P_("Hide on close"),
- P_("If this window should be hidden when the user clicks the close button"),
+ g_param_spec_boolean ("hide-on-close", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -874,9 +858,7 @@ gtk_window_class_init (GtkWindowClass *klass)
* and should not be set by applications.
*/
window_props[PROP_MNEMONICS_VISIBLE] =
- g_param_spec_boolean ("mnemonics-visible",
- P_("Mnemonics Visible"),
- P_("Whether mnemonics are currently visible in this window"),
+ g_param_spec_boolean ("mnemonics-visible", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -889,9 +871,7 @@ gtk_window_class_init (GtkWindowClass *klass)
* and should not be set by applications.
*/
window_props[PROP_FOCUS_VISIBLE] =
- g_param_spec_boolean ("focus-visible",
- P_("Focus Visible"),
- P_("Whether focus rectangles are currently visible in this window"),
+ g_param_spec_boolean ("focus-visible", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -903,9 +883,7 @@ gtk_window_class_init (GtkWindowClass *klass)
* See [class@Gtk.IconTheme] for more details.
*/
window_props[PROP_ICON_NAME] =
- g_param_spec_string ("icon-name",
- P_("Icon Name"),
- P_("Name of the themed icon for this window"),
+ g_param_spec_string ("icon-name", NULL, NULL,
NULL,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -915,9 +893,7 @@ gtk_window_class_init (GtkWindowClass *klass)
* The display that will display this window.
*/
window_props[PROP_DISPLAY] =
- g_param_spec_object ("display",
- P_("Display"),
- P_("The display that will display this window"),
+ g_param_spec_object ("display", NULL, NULL,
GDK_TYPE_DISPLAY,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -927,9 +903,7 @@ gtk_window_class_init (GtkWindowClass *klass)
* Whether the toplevel is the currently active window.
*/
window_props[PROP_IS_ACTIVE] =
- g_param_spec_boolean ("is-active",
- P_("Is Active"),
- P_("Whether the toplevel is the current active window"),
+ g_param_spec_boolean ("is-active", NULL, NULL,
FALSE,
GTK_PARAM_READABLE);
@@ -939,9 +913,7 @@ gtk_window_class_init (GtkWindowClass *klass)
* Whether the window should have a frame (also known as *decorations*).
*/
window_props[PROP_DECORATED] =
- g_param_spec_boolean ("decorated",
- P_("Decorated"),
- P_("Whether the window should be decorated by the window manager"),
+ g_param_spec_boolean ("decorated", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -951,9 +923,7 @@ gtk_window_class_init (GtkWindowClass *klass)
* Whether the window frame should have a close button.
*/
window_props[PROP_DELETABLE] =
- g_param_spec_boolean ("deletable",
- P_("Deletable"),
- P_("Whether the window frame should have a close button"),
+ g_param_spec_boolean ("deletable", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
@@ -963,9 +933,7 @@ gtk_window_class_init (GtkWindowClass *klass)
* The transient parent of the window.
*/
window_props[PROP_TRANSIENT_FOR] =
- g_param_spec_object ("transient-for",
- P_("Transient for Window"),
- P_("The transient parent of the dialog"),
+ g_param_spec_object ("transient-for", NULL, NULL,
GTK_TYPE_WINDOW,
GTK_PARAM_READWRITE|G_PARAM_CONSTRUCT|G_PARAM_EXPLICIT_NOTIFY);
@@ -981,9 +949,7 @@ gtk_window_class_init (GtkWindowClass *klass)
* operation was successful.
*/
window_props[PROP_MAXIMIZED] =
- g_param_spec_boolean ("maximized",
- P_("Is Maximized"),
- P_("Whether the window is maximized"),
+ g_param_spec_boolean ("maximized", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_CONSTRUCT|G_PARAM_EXPLICIT_NOTIFY);
@@ -999,9 +965,7 @@ gtk_window_class_init (GtkWindowClass *klass)
* operation was successful.
*/
window_props[PROP_FULLSCREENED] =
- g_param_spec_boolean ("fullscreened",
- P_("Is fullscreen"),
- P_("Whether the window is fullscreen"),
+ g_param_spec_boolean ("fullscreened", NULL, NULL,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_CONSTRUCT|G_PARAM_EXPLICIT_NOTIFY);
@@ -1019,9 +983,7 @@ gtk_window_class_init (GtkWindowClass *klass)
* remove it by setting the :application property to %NULL.
*/
window_props[PROP_APPLICATION] =
- g_param_spec_object ("application",
- P_("GtkApplication"),
- P_("The GtkApplication for the window"),
+ g_param_spec_object ("application", NULL, NULL,
GTK_TYPE_APPLICATION,
GTK_PARAM_READWRITE|G_PARAM_STATIC_STRINGS|G_PARAM_EXPLICIT_NOTIFY);
@@ -1031,9 +993,7 @@ gtk_window_class_init (GtkWindowClass *klass)
* The default widget.
*/
window_props[PROP_DEFAULT_WIDGET] =
- g_param_spec_object ("default-widget",
- P_("Default widget"),
- P_("The default widget"),
+ g_param_spec_object ("default-widget", NULL, NULL,
GTK_TYPE_WIDGET,
GTK_PARAM_READWRITE|G_PARAM_STATIC_STRINGS|G_PARAM_EXPLICIT_NOTIFY);
@@ -1043,9 +1003,7 @@ gtk_window_class_init (GtkWindowClass *klass)
* The focus widget.
*/
window_props[PROP_FOCUS_WIDGET] =
- g_param_spec_object ("focus-widget",
- P_("Focus widget"),
- P_("The focus widget"),
+ g_param_spec_object ("focus-widget", NULL, NULL,
GTK_TYPE_WIDGET,
GTK_PARAM_READWRITE|G_PARAM_STATIC_STRINGS|G_PARAM_EXPLICIT_NOTIFY);
@@ -1055,9 +1013,7 @@ gtk_window_class_init (GtkWindowClass *klass)
* The child widget.
*/
window_props[PROP_CHILD] =
- g_param_spec_object ("child",
- P_("Child"),
- P_("The child widget"),
+ g_param_spec_object ("child", NULL, NULL,
GTK_TYPE_WIDGET,
GTK_PARAM_READWRITE|G_PARAM_STATIC_STRINGS|G_PARAM_EXPLICIT_NOTIFY);
@@ -1069,9 +1025,7 @@ gtk_window_class_init (GtkWindowClass *klass)
* Since: 4.6
*/
window_props[PROP_TITLEBAR] =
- g_param_spec_object ("titlebar",
- P_("Titlebar"),
- P_("The titlebar widget"),
+ g_param_spec_object ("titlebar", NULL, NULL,
GTK_TYPE_WIDGET,
GTK_PARAM_READWRITE|G_PARAM_STATIC_STRINGS|G_PARAM_EXPLICIT_NOTIFY);
@@ -1084,9 +1038,7 @@ gtk_window_class_init (GtkWindowClass *klass)
* Since: 4.2
*/
window_props[PROP_HANDLE_MENUBAR_ACCEL] =
- g_param_spec_boolean ("handle-menubar-accel",
- P_("Handle Menubar accels"),
- P_("Whether the window should handle F10"),
+ g_param_spec_boolean ("handle-menubar-accel", NULL, NULL,
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtkwindowcontrols.c b/gtk/gtkwindowcontrols.c
index 2efabb603c..a9ffe2aa01 100644
--- a/gtk/gtkwindowcontrols.c
+++ b/gtk/gtkwindowcontrols.c
@@ -515,9 +515,7 @@ gtk_window_controls_class_init (GtkWindowControlsClass *klass)
* See [property@Gtk.WindowControls:decoration_layout].
*/
props[PROP_SIDE] =
- g_param_spec_enum ("side",
- P_("Side"),
- P_("Whether the widget shows start or end portion of the decoration layout"),
+ g_param_spec_enum ("side", NULL, NULL,
GTK_TYPE_PACK_TYPE,
GTK_PACK_START,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -531,9 +529,7 @@ gtk_window_controls_class_init (GtkWindowControlsClass *klass)
* [property@Gtk.Settings:gtk-decoration-layout] setting is used.
*/
props[PROP_DECORATION_LAYOUT] =
- g_param_spec_string ("decoration-layout",
- P_("Decoration Layout"),
- P_("The layout for window decorations"),
+ g_param_spec_string ("decoration-layout", NULL, NULL,
NULL,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@@ -543,9 +539,7 @@ gtk_window_controls_class_init (GtkWindowControlsClass *klass)
* Whether the widget has any window buttons.
*/
props[PROP_EMPTY] =
- g_param_spec_boolean ("empty",
- P_("Empty"),
- P_("Whether the widget has any window buttons"),
+ g_param_spec_boolean ("empty", NULL, NULL,
TRUE,
GTK_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/gtkwindowhandle.c b/gtk/gtkwindowhandle.c
index d0ba7fe424..af0f8adb99 100644
--- a/gtk/gtkwindowhandle.c
+++ b/gtk/gtkwindowhandle.c
@@ -533,9 +533,7 @@ gtk_window_handle_class_init (GtkWindowHandleClass *klass)
* The child widget.
*/
props[PROP_CHILD] =
- g_param_spec_object ("child",
- P_("Child"),
- P_("The child widget"),
+ g_param_spec_object ("child", NULL, NULL,
GTK_TYPE_WIDGET,
GTK_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/gtk/inspector/a11y.c b/gtk/inspector/a11y.c
index b6cd169e29..f4b1bdafca 100644
--- a/gtk/inspector/a11y.c
+++ b/gtk/inspector/a11y.c
@@ -172,23 +172,23 @@ accessible_attribute_class_init (AccessibleAttributeClass *class)
object_class->get_property = accessible_attribute_get_property;
g_object_class_install_property (object_class, PROP_KIND,
- g_param_spec_uint ("kind", "kind", "kind",
+ g_param_spec_uint ("kind", NULL, NULL,
0, 2, 0,
G_PARAM_READWRITE));
g_object_class_install_property (object_class, PROP_ATTRIBUTE,
- g_param_spec_uint ("attribute", "attribute", "attribute",
+ g_param_spec_uint ("attribute", NULL, NULL,
0, G_MAXUINT, 0,
G_PARAM_READWRITE));
g_object_class_install_property (object_class, PROP_NAME,
- g_param_spec_string ("name", "name", "name",
+ g_param_spec_string ("name", NULL, NULL,
NULL,
G_PARAM_READWRITE));
g_object_class_install_property (object_class, PROP_IS_DEFAULT,
- g_param_spec_boolean ("is-default", "is-default", "is-default",
+ g_param_spec_boolean ("is-default", NULL, NULL,
FALSE,
G_PARAM_READWRITE));
g_object_class_install_property (object_class, PROP_VALUE,
- g_param_spec_boxed ("value", "value", "value",
+ g_param_spec_boxed ("value", NULL, NULL,
GTK_TYPE_ACCESSIBLE_VALUE,
G_PARAM_READWRITE));
}
diff --git a/gtk/inspector/action-editor.c b/gtk/inspector/action-editor.c
index 980b31ab1a..b0a3e4835e 100644
--- a/gtk/inspector/action-editor.c
+++ b/gtk/inspector/action-editor.c
@@ -315,11 +315,11 @@ gtk_inspector_action_editor_class_init (GtkInspectorActionEditorClass *klass)
object_class->set_property = set_property;
g_object_class_install_property (object_class, PROP_OWNER,
- g_param_spec_object ("owner", "Owner", "The owner of the action",
+ g_param_spec_object ("owner", NULL, NULL,
G_TYPE_OBJECT, G_PARAM_READWRITE));
g_object_class_install_property (object_class, PROP_NAME,
- g_param_spec_string ("name", "Name", "The action name",
+ g_param_spec_string ("name", NULL, NULL,
NULL, G_PARAM_READWRITE));
gtk_widget_class_set_layout_manager_type (widget_class, GTK_TYPE_BOX_LAYOUT);
diff --git a/gtk/inspector/cellrenderergraph.c b/gtk/inspector/cellrenderergraph.c
index 628ad41a59..0aa65a0bb1 100644
--- a/gtk/inspector/cellrenderergraph.c
+++ b/gtk/inspector/cellrenderergraph.c
@@ -255,25 +255,19 @@ gtk_cell_renderer_graph_class_init (GtkCellRendererGraphClass *klass)
g_object_class_install_property (object_class,
PROP_DATA,
- g_param_spec_object ("data",
- "Data",
- "The data to display",
+ g_param_spec_object ("data", NULL, NULL,
GTK_TYPE_GRAPH_DATA,
G_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
g_object_class_install_property (object_class,
PROP_MINIMUM,
- g_param_spec_double ("minimum",
- "Minimum",
- "Minimum value to use (or -G_MAXDOUBLE for graph's value",
+ g_param_spec_double ("minimum", NULL, NULL,
-G_MAXDOUBLE, G_MAXDOUBLE, -G_MAXDOUBLE,
G_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
g_object_class_install_property (object_class,
PROP_MINIMUM,
- g_param_spec_double ("maximum",
- "Maximum",
- "Maximum value to use (or G_MAXDOUBLE for graph's value",
+ g_param_spec_double ("maximum", NULL, NULL,
-G_MAXDOUBLE, G_MAXDOUBLE, G_MAXDOUBLE,
G_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
}
diff --git a/gtk/inspector/css-node-tree.c b/gtk/inspector/css-node-tree.c
index 46f507f6f8..a5601d7b82 100644
--- a/gtk/inspector/css-node-tree.c
+++ b/gtk/inspector/css-node-tree.c
@@ -234,9 +234,7 @@ gtk_inspector_css_node_tree_class_init (GtkInspectorCssNodeTreeClass *klass)
object_class->finalize = gtk_inspector_css_node_tree_finalize;
properties[PROP_NODE] =
- g_param_spec_object ("node",
- "Node",
- "Currently inspected CSS node",
+ g_param_spec_object ("node", NULL, NULL,
GTK_TYPE_CSS_NODE,
G_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
diff --git a/gtk/inspector/graphdata.c b/gtk/inspector/graphdata.c
index bdb36612c8..c546e148af 100644
--- a/gtk/inspector/graphdata.c
+++ b/gtk/inspector/graphdata.c
@@ -95,9 +95,7 @@ gtk_graph_data_class_init (GtkGraphDataClass *klass)
g_object_class_install_property (object_class,
PROP_N_VALUES,
- g_param_spec_uint ("n-values",
- "n values",
- "Number of values in the graph",
+ g_param_spec_uint ("n-values", NULL, NULL,
1, G_MAXUINT, 1,
G_PARAM_READWRITE|G_PARAM_CONSTRUCT_ONLY));
}
diff --git a/gtk/inspector/gtkdataviewer.c b/gtk/inspector/gtkdataviewer.c
index fd8154b4a8..bea24dd6d9 100644
--- a/gtk/inspector/gtkdataviewer.c
+++ b/gtk/inspector/gtkdataviewer.c
@@ -165,9 +165,7 @@ gtk_data_viewer_class_init (GtkDataViewerClass *klass)
gobject_class->set_property = gtk_data_viewer_set_property;
properties[PROP_LOADING] =
- g_param_spec_boolean ("loading",
- "Loading",
- "If the widget is currently loading the data to display",
+ g_param_spec_boolean ("loading", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
diff --git a/gtk/inspector/prop-editor.c b/gtk/inspector/prop-editor.c
index 05048f5472..2087e9e14b 100644
--- a/gtk/inspector/prop-editor.c
+++ b/gtk/inspector/prop-editor.c
@@ -1791,15 +1791,15 @@ gtk_inspector_prop_editor_class_init (GtkInspectorPropEditorClass *klass)
G_TYPE_NONE, 3, G_TYPE_OBJECT, G_TYPE_STRING, G_TYPE_STRING);
g_object_class_install_property (object_class, PROP_OBJECT,
- g_param_spec_object ("object", "Object", "The object owning the property",
+ g_param_spec_object ("object", NULL, NULL,
G_TYPE_OBJECT, G_PARAM_READWRITE|G_PARAM_CONSTRUCT));
g_object_class_install_property (object_class, PROP_NAME,
- g_param_spec_string ("name", "Name", "The property name",
+ g_param_spec_string ("name", NULL, NULL,
NULL, G_PARAM_READWRITE|G_PARAM_CONSTRUCT));
g_object_class_install_property (object_class, PROP_SIZE_GROUP,
- g_param_spec_object ("size-group", "Size group", "The size group for the value part",
+ g_param_spec_object ("size-group", NULL, NULL,
GTK_TYPE_SIZE_GROUP, G_PARAM_READWRITE|G_PARAM_CONSTRUCT));
}
diff --git a/gtk/inspector/prop-holder.c b/gtk/inspector/prop-holder.c
index b6541052de..d1401644d0 100644
--- a/gtk/inspector/prop-holder.c
+++ b/gtk/inspector/prop-holder.c
@@ -95,17 +95,17 @@ prop_holder_class_init (PropHolderClass *class)
object_class->get_property = prop_holder_get_property;
properties[PROP_OBJECT] =
- g_param_spec_object ("object", "object", "object",
+ g_param_spec_object ("object", NULL, NULL,
G_TYPE_OBJECT,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
properties[PROP_PSPEC] =
- g_param_spec_param ("pspec", "pspec", "pspec",
+ g_param_spec_param ("pspec", NULL, NULL,
G_TYPE_PARAM,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
properties[PROP_NAME] =
- g_param_spec_string ("name", "name", "name",
+ g_param_spec_string ("name", NULL, NULL,
NULL,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
diff --git a/gtk/inspector/prop-list.c b/gtk/inspector/prop-list.c
index 3487a36077..343aee5558 100644
--- a/gtk/inspector/prop-list.c
+++ b/gtk/inspector/prop-list.c
@@ -442,7 +442,7 @@ gtk_inspector_prop_list_class_init (GtkInspectorPropListClass *klass)
widget_class->unroot = unroot;
g_object_class_install_property (object_class, PROP_SEARCH_ENTRY,
- g_param_spec_object ("search-entry", "Search Entry", "Search Entry",
+ g_param_spec_object ("search-entry", NULL, NULL,
GTK_TYPE_WIDGET, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
gtk_widget_class_set_template_from_resource (widget_class, "/org/gtk/libgtk/inspector/prop-list.ui");
diff --git a/gtk/inspector/recorder.c b/gtk/inspector/recorder.c
index a237509a80..43409cb81f 100644
--- a/gtk/inspector/recorder.c
+++ b/gtk/inspector/recorder.c
@@ -2056,20 +2056,16 @@ gtk_inspector_recorder_class_init (GtkInspectorRecorderClass *klass)
object_class->dispose = gtk_inspector_recorder_dispose;
props[PROP_RECORDING] =
- g_param_spec_boolean ("recording",
- "Recording",
- "Whether the recorder is currently recording",
+ g_param_spec_boolean ("recording", NULL, NULL,
FALSE,
G_PARAM_READWRITE);
props[PROP_DEBUG_NODES] =
- g_param_spec_boolean ("debug-nodes",
- "Debug nodes",
- "Whether to insert extra debug nodes in the tree",
+ g_param_spec_boolean ("debug-nodes", NULL, NULL,
FALSE,
G_PARAM_READWRITE);
- props[PROP_HIGHLIGHT_SEQUENCES] = g_param_spec_boolean ("highlight-sequences", "", "", FALSE, G_PARAM_READWRITE);
- props[PROP_SELECTED_SEQUENCE] = g_param_spec_pointer ("selected-sequence", "", "", G_PARAM_READWRITE);
+ props[PROP_HIGHLIGHT_SEQUENCES] = g_param_spec_boolean ("highlight-sequences", NULL, NULL, FALSE, G_PARAM_READWRITE);
+ props[PROP_SELECTED_SEQUENCE] = g_param_spec_pointer ("selected-sequence", NULL, NULL, G_PARAM_READWRITE);
g_object_class_install_properties (object_class, LAST_PROP, props);
diff --git a/gtk/inspector/recorderrow.c b/gtk/inspector/recorderrow.c
index 37ceab7e3f..a85e1e6d8a 100644
--- a/gtk/inspector/recorderrow.c
+++ b/gtk/inspector/recorderrow.c
@@ -129,8 +129,8 @@ gtk_inspector_recorder_row_class_init (GtkInspectorRecorderRowClass *klass)
object_class->set_property = gtk_inspector_recorder_row_set_property;
object_class->get_property = gtk_inspector_recorder_row_get_property;
- props[PROP_SEQUENCE] = g_param_spec_pointer ("sequence", "", "", G_PARAM_READWRITE);
- props[PROP_MATCH_SEQUENCE] = g_param_spec_pointer ("match-sequence", "", "", G_PARAM_READWRITE);
+ props[PROP_SEQUENCE] = g_param_spec_pointer ("sequence", NULL, NULL, G_PARAM_READWRITE);
+ props[PROP_MATCH_SEQUENCE] = g_param_spec_pointer ("match-sequence", NULL, NULL, G_PARAM_READWRITE);
g_object_class_install_properties (object_class, LAST_PROP, props);
diff --git a/gtk/inspector/recording.c b/gtk/inspector/recording.c
index b51e0aea45..85b6446ba6 100644
--- a/gtk/inspector/recording.c
+++ b/gtk/inspector/recording.c
@@ -81,9 +81,7 @@ gtk_inspector_recording_class_init (GtkInspectorRecordingClass *klass)
object_class->set_property = gtk_inspector_recording_set_property;
props[PROP_TIMESTAMP] =
- g_param_spec_int64 ("timestamp",
- "Timestamp",
- "Timestamp when this event was recorded",
+ g_param_spec_int64 ("timestamp", NULL, NULL,
G_MININT64, G_MAXINT64, 0,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT);
diff --git a/gtk/inspector/size-groups.c b/gtk/inspector/size-groups.c
index e84668d1dc..c140f360b2 100644
--- a/gtk/inspector/size-groups.c
+++ b/gtk/inspector/size-groups.c
@@ -172,7 +172,7 @@ size_group_row_class_init (SizeGroupRowClass *class)
widget_class->state_flags_changed = size_group_state_flags_changed;
properties[PROP_WIDGET] =
- g_param_spec_pointer ("widget", "Widget", "Widget", G_PARAM_READWRITE);
+ g_param_spec_pointer ("widget", NULL, NULL, G_PARAM_READWRITE);
g_object_class_install_properties (object_class, LAST_PROPERTY, properties);
diff --git a/gtk/inspector/type-info.c b/gtk/inspector/type-info.c
index 4b417cc2f8..71da17577b 100644
--- a/gtk/inspector/type-info.c
+++ b/gtk/inspector/type-info.c
@@ -208,7 +208,7 @@ gtk_inspector_type_popover_class_init (GtkInspectorTypePopoverClass *klass)
object_class->set_property = gtk_inspector_type_popover_set_property;
g_object_class_install_property (object_class, PROP_TYPE,
- g_param_spec_gtype ("type", "Type", "Type",
+ g_param_spec_gtype ("type", NULL, NULL,
G_TYPE_NONE, G_PARAM_READWRITE));
gtk_widget_class_set_template_from_resource (widget_class, "/org/gtk/libgtk/inspector/type-info.ui");
diff --git a/gtk/inspector/window.c b/gtk/inspector/window.c
index a950233424..35a90302f0 100644
--- a/gtk/inspector/window.c
+++ b/gtk/inspector/window.c
@@ -604,7 +604,7 @@ gtk_inspector_window_class_init (GtkInspectorWindowClass *klass)
window_class->enable_debugging = gtk_inspector_window_enable_debugging;
properties[PROP_INSPECTED_DISPLAY] =
- g_param_spec_object ("inspected-display", "Inspected display", "Inspected display",
+ g_param_spec_object ("inspected-display", NULL, NULL,
GDK_TYPE_DISPLAY,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
g_object_class_install_properties (object_class, NUM_PROPERTIES, properties);
diff --git a/modules/media/gtkgstsink.c b/modules/media/gtkgstsink.c
index 529952fffc..62d93b6b5c 100644
--- a/modules/media/gtkgstsink.c
+++ b/modules/media/gtkgstsink.c
@@ -710,9 +710,7 @@ gtk_gst_sink_class_init (GtkGstSinkClass * klass)
* The paintable that provides the picture for this sink.
*/
properties[PROP_PAINTABLE] =
- g_param_spec_object ("paintable",
- P_("paintable"),
- P_("Paintable providing the picture"),
+ g_param_spec_object ("paintable", NULL, NULL,
GTK_TYPE_GST_PAINTABLE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
@@ -722,9 +720,7 @@ gtk_gst_sink_class_init (GtkGstSinkClass * klass)
* The #GdkGLContext to use for GL rendering.
*/
properties[PROP_GL_CONTEXT] =
- g_param_spec_object ("gl-context",
- P_("GL context"),
- P_("GL context to use for rendering"),
+ g_param_spec_object ("gl-context", NULL, NULL,
GDK_TYPE_GL_CONTEXT,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
diff --git a/modules/printbackends/gtkprintercups.c b/modules/printbackends/gtkprintercups.c
index 83d2b0aabd..461b923b0f 100644
--- a/modules/printbackends/gtkprintercups.c
+++ b/modules/printbackends/gtkprintercups.c
@@ -89,9 +89,7 @@ gtk_printer_cups_class_init (GtkPrinterCupsClass *class)
g_object_class_install_property (G_OBJECT_CLASS (class),
PROP_PROFILE_TITLE,
- g_param_spec_string ("profile-title",
- P_("Color Profile Title"),
- P_("The title of the color profile to use"),
+ g_param_spec_string ("profile-title", NULL, NULL,
"",
G_PARAM_READABLE));
}