[libadwaita/wip/exalm/properties: 5/5] Remove property nicks and blurbs
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/properties: 5/5] Remove property nicks and blurbs
- Date: Mon, 20 Jun 2022 21:54:51 +0000 (UTC)
commit f694b0e02872ef9bb3ebc53e0baec7d3d5c10907
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Tue Jun 21 00:30:35 2022 +0400
Remove property nicks and blurbs
Follow GTK4.
demo/pages/animations/adw-demo-page-animations.c | 8 +--
demo/pages/leaflet/adw-demo-page-leaflet.c | 4 +-
demo/pages/styles/adw-style-demo-window.c | 8 +--
src/adw-action-row.c | 20 ++-----
src/adw-animation-target.c | 12 +---
src/adw-animation.c | 16 ++----
src/adw-application-window.c | 4 +-
src/adw-application.c | 4 +-
src/adw-avatar.c | 20 ++-----
src/adw-bin.c | 4 +-
src/adw-button-content.c | 12 +---
src/adw-carousel-indicator-dots.c | 4 +-
src/adw-carousel-indicator-lines.c | 4 +-
src/adw-carousel.c | 36 +++---------
src/adw-clamp-layout.c | 8 +--
src/adw-clamp-scrollable.c | 12 +---
src/adw-clamp.c | 12 +---
src/adw-combo-row.c | 24 ++------
src/adw-entry-row.c | 4 +-
src/adw-enum-list-model.c | 16 ++----
src/adw-expander-row.c | 20 ++-----
src/adw-fading-label.c | 8 +--
src/adw-flap.c | 64 ++++++---------------
src/adw-header-bar.c | 20 ++-----
src/adw-indicator-bin.c | 12 +---
src/adw-inspector-page.c | 8 +--
src/adw-leaflet.c | 64 ++++++---------------
src/adw-preferences-group.c | 12 +---
src/adw-preferences-page.c | 16 ++----
src/adw-preferences-row.c | 16 ++----
src/adw-preferences-window.c | 16 ++----
src/adw-settings.c | 12 +---
src/adw-shadow-helper.c | 4 +-
src/adw-split-button.c | 28 +++------
src/adw-spring-animation.c | 32 +++--------
src/adw-squeezer.c | 52 +++++------------
src/adw-status-page.c | 20 ++-----
src/adw-style-manager.c | 20 ++-----
src/adw-swipe-tracker.c | 20 ++-----
src/adw-tab-bar.c | 32 +++--------
src/adw-tab-box.c | 16 ++----
src/adw-tab-view.c | 72 ++++++------------------
src/adw-tab.c | 20 ++-----
src/adw-timed-animation.c | 28 +++------
src/adw-toast-overlay.c | 4 +-
src/adw-toast-widget.c | 4 +-
src/adw-toast.c | 28 +++------
src/adw-view-stack.c | 52 +++++------------
src/adw-view-switcher-bar.c | 8 +--
src/adw-view-switcher-button.c | 12 +---
src/adw-view-switcher-title.c | 20 ++-----
src/adw-view-switcher.c | 8 +--
src/adw-window-title.c | 8 +--
src/adw-window.c | 4 +-
54 files changed, 248 insertions(+), 744 deletions(-)
---
diff --git a/demo/pages/animations/adw-demo-page-animations.c
b/demo/pages/animations/adw-demo-page-animations.c
index 575a38fd..4dcce4d8 100644
--- a/demo/pages/animations/adw-demo-page-animations.c
+++ b/demo/pages/animations/adw-demo-page-animations.c
@@ -306,16 +306,12 @@ adw_demo_page_animations_class_init (AdwDemoPageAnimationsClass *klass)
object_class->get_property = adw_demo_page_animations_get_property;
props[PROP_TIMED_ANIMATION] =
- g_param_spec_object ("timed-animation",
- "Timed animation",
- "Timed animation",
+ g_param_spec_object ("timed-animation", NULL, NULL,
ADW_TYPE_ANIMATION,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
props[PROP_SPRING_ANIMATION] =
- g_param_spec_object ("spring-animation",
- "Spring animation",
- "Spring animation",
+ g_param_spec_object ("spring-animation", NULL, NULL,
ADW_TYPE_ANIMATION,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
diff --git a/demo/pages/leaflet/adw-demo-page-leaflet.c b/demo/pages/leaflet/adw-demo-page-leaflet.c
index a43268a9..42c5de98 100644
--- a/demo/pages/leaflet/adw-demo-page-leaflet.c
+++ b/demo/pages/leaflet/adw-demo-page-leaflet.c
@@ -92,9 +92,7 @@ adw_demo_page_leaflet_class_init (AdwDemoPageLeafletClass *klass)
object_class->set_property = adw_demo_page_leaflet_set_property;
props[PROP_TRANSITION_TYPE] =
- g_param_spec_enum ("transition-type",
- "Transition type",
- "Transition type",
+ g_param_spec_enum ("transition-type", NULL, NULL,
ADW_TYPE_LEAFLET_TRANSITION_TYPE,
ADW_LEAFLET_TRANSITION_TYPE_OVER,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
diff --git a/demo/pages/styles/adw-style-demo-window.c b/demo/pages/styles/adw-style-demo-window.c
index 477cc95c..53e75324 100644
--- a/demo/pages/styles/adw-style-demo-window.c
+++ b/demo/pages/styles/adw-style-demo-window.c
@@ -164,16 +164,12 @@ adw_style_demo_window_class_init (AdwStyleDemoWindowClass *klass)
object_class->dispose = adw_style_demo_window_dispose;
props[PROP_DEVEL] =
- g_param_spec_boolean ("devel",
- "Development style",
- "Development style",
+ g_param_spec_boolean ("devel", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
props[PROP_PROGRESS] =
- g_param_spec_boolean ("progress",
- "Progress",
- "Progress",
+ g_param_spec_boolean ("progress", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
diff --git a/src/adw-action-row.c b/src/adw-action-row.c
index 0ea4a363..68a0ef40 100644
--- a/src/adw-action-row.c
+++ b/src/adw-action-row.c
@@ -235,9 +235,7 @@ adw_action_row_class_init (AdwActionRowClass *klass)
* Since: 1.0
*/
props[PROP_ICON_NAME] =
- g_param_spec_string ("icon-name",
- "Icon name",
- "The icon name for this row",
+ g_param_spec_string ("icon-name", NULL, NULL,
"",
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -257,9 +255,7 @@ adw_action_row_class_init (AdwActionRowClass *klass)
* Since: 1.0
*/
props[PROP_ACTIVATABLE_WIDGET] =
- g_param_spec_object ("activatable-widget",
- "Activatable widget",
- "The widget to be activated when the row is activated",
+ g_param_spec_object ("activatable-widget", NULL, NULL,
GTK_TYPE_WIDGET,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -271,9 +267,7 @@ adw_action_row_class_init (AdwActionRowClass *klass)
* Since: 1.0
*/
props[PROP_SUBTITLE] =
- g_param_spec_string ("subtitle",
- "Subtitle",
- "The subtitle for this row",
+ g_param_spec_string ("subtitle", NULL, NULL,
"",
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -287,9 +281,7 @@ adw_action_row_class_init (AdwActionRowClass *klass)
* Since: 1.0
*/
props[PROP_TITLE_LINES] =
- g_param_spec_int ("title-lines",
- "Number of title lines",
- "The desired number of title lines",
+ g_param_spec_int ("title-lines", NULL, NULL,
0, G_MAXINT,
0,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -305,9 +297,7 @@ adw_action_row_class_init (AdwActionRowClass *klass)
* Since: 1.0
*/
props[PROP_SUBTITLE_LINES] =
- g_param_spec_int ("subtitle-lines",
- "Number of subtitle lines",
- "The desired number of subtitle lines",
+ g_param_spec_int ("subtitle-lines", NULL, NULL,
0, G_MAXINT,
0,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/src/adw-animation-target.c b/src/adw-animation-target.c
index 1b4a704e..d9b5c26c 100644
--- a/src/adw-animation-target.c
+++ b/src/adw-animation-target.c
@@ -405,9 +405,7 @@ adw_property_animation_target_class_init (AdwPropertyAnimationTargetClass *klass
* Since: 1.2
*/
property_props[PROPERTY_PROP_OBJECT] =
- g_param_spec_object ("object",
- "Object",
- "The object whose property will be animated",
+ g_param_spec_object ("object", NULL, NULL,
G_TYPE_OBJECT,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
@@ -422,9 +420,7 @@ adw_property_animation_target_class_init (AdwPropertyAnimationTargetClass *klass
* Since: 1.2
*/
property_props[PROPERTY_PROP_PROPERTY_NAME] =
- g_param_spec_string ("property-name",
- "Property name",
- "The name of the property to be animated",
+ g_param_spec_string ("property-name", NULL, NULL,
NULL,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
@@ -439,9 +435,7 @@ adw_property_animation_target_class_init (AdwPropertyAnimationTargetClass *klass
* Since: 1.2
*/
property_props[PROPERTY_PROP_PSPEC] =
- g_param_spec_param ("pspec",
- "Param spec",
- "The param spec of the property to be animated",
+ g_param_spec_param ("pspec", NULL, NULL,
G_TYPE_PARAM,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
diff --git a/src/adw-animation.c b/src/adw-animation.c
index 4da17247..70c38bef 100644
--- a/src/adw-animation.c
+++ b/src/adw-animation.c
@@ -348,9 +348,7 @@ adw_animation_class_init (AdwAnimationClass *klass)
* Since: 1.0
*/
props[PROP_VALUE] =
- g_param_spec_double ("value",
- "Value",
- "The current value of the animation",
+ g_param_spec_double ("value", NULL, NULL,
-G_MAXDOUBLE,
G_MAXDOUBLE,
0,
@@ -371,9 +369,7 @@ adw_animation_class_init (AdwAnimationClass *klass)
* Since: 1.0
*/
props[PROP_WIDGET] =
- g_param_spec_object ("widget",
- "Widget",
- "The animation widget",
+ g_param_spec_object ("widget", NULL, NULL,
GTK_TYPE_WIDGET,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
@@ -385,9 +381,7 @@ adw_animation_class_init (AdwAnimationClass *klass)
* Since: 1.0
*/
props[PROP_TARGET] =
- g_param_spec_object ("target",
- "Target",
- "The target to animate",
+ g_param_spec_object ("target", NULL, NULL,
ADW_TYPE_ANIMATION_TARGET,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS |
G_PARAM_EXPLICIT_NOTIFY);
@@ -402,9 +396,7 @@ adw_animation_class_init (AdwAnimationClass *klass)
* Since: 1.0
*/
props[PROP_STATE] =
- g_param_spec_enum ("state",
- "State",
- "The animation state",
+ g_param_spec_enum ("state", NULL, NULL,
ADW_TYPE_ANIMATION_STATE,
ADW_ANIMATION_IDLE,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
diff --git a/src/adw-application-window.c b/src/adw-application-window.c
index fbedf11e..88d97aec 100644
--- a/src/adw-application-window.c
+++ b/src/adw-application-window.c
@@ -129,9 +129,7 @@ adw_application_window_class_init (AdwApplicationWindowClass *klass)
* Since: 1.0
*/
props[PROP_CONTENT] =
- g_param_spec_object ("content",
- "Content",
- "The content widget",
+ g_param_spec_object ("content", NULL, NULL,
GTK_TYPE_WIDGET,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/src/adw-application.c b/src/adw-application.c
index 60c43d4f..2c00ab0c 100644
--- a/src/adw-application.c
+++ b/src/adw-application.c
@@ -235,9 +235,7 @@ adw_application_class_init (AdwApplicationClass *klass)
* Since: 1.0
*/
props[PROP_STYLE_MANAGER] =
- g_param_spec_object ("style-manager",
- "Style Manager",
- "The default style manager",
+ g_param_spec_object ("style-manager", NULL, NULL,
ADW_TYPE_STYLE_MANAGER,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
diff --git a/src/adw-avatar.c b/src/adw-avatar.c
index c01b6414..6898e8b8 100644
--- a/src/adw-avatar.c
+++ b/src/adw-avatar.c
@@ -330,9 +330,7 @@ adw_avatar_class_init (AdwAvatarClass *klass)
* Since: 1.0
*/
props[PROP_ICON_NAME] =
- g_param_spec_string ("icon-name",
- "Icon name",
- "The name of an icon to use as a fallback",
+ g_param_spec_string ("icon-name", NULL, NULL,
NULL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -347,9 +345,7 @@ adw_avatar_class_init (AdwAvatarClass *klass)
* Since: 1.0
*/
props[PROP_TEXT] =
- g_param_spec_string ("text",
- "Text",
- "The text used to generate the color and the initials",
+ g_param_spec_string ("text", NULL, NULL,
"",
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -363,9 +359,7 @@ adw_avatar_class_init (AdwAvatarClass *klass)
* Since: 1.0
*/
props[PROP_SHOW_INITIALS] =
- g_param_spec_boolean ("show-initials",
- "Show initials",
- "Whether initials are used instead of an icon on the fallback avatar",
+ g_param_spec_boolean ("show-initials", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -377,9 +371,7 @@ adw_avatar_class_init (AdwAvatarClass *klass)
* Since: 1.0
*/
props[PROP_CUSTOM_IMAGE] =
- g_param_spec_object ("custom-image",
- "Custom image",
- "A custom image to use instead of initials or icon",
+ g_param_spec_object ("custom-image", NULL, NULL,
GDK_TYPE_PAINTABLE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -391,9 +383,7 @@ adw_avatar_class_init (AdwAvatarClass *klass)
* Since: 1.0
*/
props[PROP_SIZE] =
- g_param_spec_int ("size",
- "Size",
- "The size of the avatar",
+ g_param_spec_int ("size", NULL, NULL,
-1, INT_MAX, -1,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/src/adw-bin.c b/src/adw-bin.c
index f2736528..a1d17621 100644
--- a/src/adw-bin.c
+++ b/src/adw-bin.c
@@ -116,9 +116,7 @@ adw_bin_class_init (AdwBinClass *klass)
* Since: 1.0
*/
props[PROP_CHILD] =
- g_param_spec_object ("child",
- "Child",
- "The child widget",
+ g_param_spec_object ("child", NULL, NULL,
GTK_TYPE_WIDGET,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/src/adw-button-content.c b/src/adw-button-content.c
index 36373c47..54c6adc1 100644
--- a/src/adw-button-content.c
+++ b/src/adw-button-content.c
@@ -221,9 +221,7 @@ adw_button_content_class_init (AdwButtonContentClass *klass)
* Since: 1.0
*/
props[PROP_ICON_NAME] =
- g_param_spec_string ("icon-name",
- "Icon name",
- "The name of the displayed icon",
+ g_param_spec_string ("icon-name", NULL, NULL,
"",
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -235,9 +233,7 @@ adw_button_content_class_init (AdwButtonContentClass *klass)
* Since: 1.0
*/
props[PROP_LABEL] =
- g_param_spec_string ("label",
- "Label",
- "The displayed label",
+ g_param_spec_string ("label", NULL, NULL,
"",
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -253,9 +249,7 @@ adw_button_content_class_init (AdwButtonContentClass *klass)
* Since: 1.0
*/
props[PROP_USE_UNDERLINE] =
- g_param_spec_boolean ("use-underline",
- "Use underline",
- "Whether an underline in the text indicates a mnemonic",
+ g_param_spec_boolean ("use-underline", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/src/adw-carousel-indicator-dots.c b/src/adw-carousel-indicator-dots.c
index 9a18b93e..42cbf609 100644
--- a/src/adw-carousel-indicator-dots.c
+++ b/src/adw-carousel-indicator-dots.c
@@ -354,9 +354,7 @@ adw_carousel_indicator_dots_class_init (AdwCarouselIndicatorDotsClass *klass)
* Since: 1.0
*/
props[PROP_CAROUSEL] =
- g_param_spec_object ("carousel",
- "Carousel",
- "The displayed carousel",
+ g_param_spec_object ("carousel", NULL, NULL,
ADW_TYPE_CAROUSEL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/src/adw-carousel-indicator-lines.c b/src/adw-carousel-indicator-lines.c
index dfa53c01..0d25d337 100644
--- a/src/adw-carousel-indicator-lines.c
+++ b/src/adw-carousel-indicator-lines.c
@@ -339,9 +339,7 @@ adw_carousel_indicator_lines_class_init (AdwCarouselIndicatorLinesClass *klass)
* Since: 1.0
*/
props[PROP_CAROUSEL] =
- g_param_spec_object ("carousel",
- "Carousel",
- "The displayed carousel",
+ g_param_spec_object ("carousel", NULL, NULL,
ADW_TYPE_CAROUSEL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/src/adw-carousel.c b/src/adw-carousel.c
index 08260581..494da30d 100644
--- a/src/adw-carousel.c
+++ b/src/adw-carousel.c
@@ -884,9 +884,7 @@ adw_carousel_class_init (AdwCarouselClass *klass)
* Since: 1.0
*/
props[PROP_N_PAGES] =
- g_param_spec_uint ("n-pages",
- "Number of pages",
- "Number of pages",
+ g_param_spec_uint ("n-pages", NULL, NULL,
0,
G_MAXUINT,
0,
@@ -902,9 +900,7 @@ adw_carousel_class_init (AdwCarouselClass *klass)
* Since: 1.0
*/
props[PROP_POSITION] =
- g_param_spec_double ("position",
- "Position",
- "Current scrolling position",
+ g_param_spec_double ("position", NULL, NULL,
0,
G_MAXDOUBLE,
0,
@@ -921,9 +917,7 @@ adw_carousel_class_init (AdwCarouselClass *klass)
* Since: 1.0
*/
props[PROP_INTERACTIVE] =
- g_param_spec_boolean ("interactive",
- "Interactive",
- "Whether the widget can be swiped",
+ g_param_spec_boolean ("interactive", NULL, NULL,
TRUE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -935,9 +929,7 @@ adw_carousel_class_init (AdwCarouselClass *klass)
* Since: 1.0
*/
props[PROP_SPACING] =
- g_param_spec_uint ("spacing",
- "Spacing",
- "Spacing between pages",
+ g_param_spec_uint ("spacing", NULL, NULL,
0,
G_MAXUINT,
0,
@@ -957,9 +949,7 @@ adw_carousel_class_init (AdwCarouselClass *klass)
* Since: 1.0
*/
props[PROP_SCROLL_PARAMS] =
- g_param_spec_boxed ("scroll-params",
- "Scroll Parameters",
- "Scroll animation spring parameters",
+ g_param_spec_boxed ("scroll-params", NULL, NULL,
ADW_TYPE_SPRING_PARAMS,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -973,9 +963,7 @@ adw_carousel_class_init (AdwCarouselClass *klass)
* Since: 1.0
*/
props[PROP_ALLOW_MOUSE_DRAG] =
- g_param_spec_boolean ("allow-mouse-drag",
- "Allow mouse drag",
- "Whether to allow dragging with mouse pointer",
+ g_param_spec_boolean ("allow-mouse-drag", NULL, NULL,
TRUE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -989,9 +977,7 @@ adw_carousel_class_init (AdwCarouselClass *klass)
* Since: 1.0
*/
props[PROP_ALLOW_SCROLL_WHEEL] =
- g_param_spec_boolean ("allow-scroll-wheel",
- "Allow scroll wheel",
- "Whether the widget will respond to scroll wheel events",
+ g_param_spec_boolean ("allow-scroll-wheel", NULL, NULL,
TRUE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -1005,9 +991,7 @@ adw_carousel_class_init (AdwCarouselClass *klass)
* Since: 1.0
*/
props[PROP_ALLOW_LONG_SWIPES] =
- g_param_spec_boolean ("allow-long-swipes",
- "Allow long swipes",
- "Whether to allow swiping for more than one page at a time",
+ g_param_spec_boolean ("allow-long-swipes", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -1019,9 +1003,7 @@ adw_carousel_class_init (AdwCarouselClass *klass)
* Since: 1.0
*/
props[PROP_REVEAL_DURATION] =
- g_param_spec_uint ("reveal-duration",
- "Reveal duration",
- "Page reveal duration",
+ g_param_spec_uint ("reveal-duration", NULL, NULL,
0,
G_MAXUINT,
0,
diff --git a/src/adw-clamp-layout.c b/src/adw-clamp-layout.c
index 39fab06a..d807c1c4 100644
--- a/src/adw-clamp-layout.c
+++ b/src/adw-clamp-layout.c
@@ -353,9 +353,7 @@ adw_clamp_layout_class_init (AdwClampLayoutClass *klass)
* Since: 1.0
*/
props[PROP_MAXIMUM_SIZE] =
- g_param_spec_int ("maximum-size",
- "Maximum size",
- "The maximum size allocated to the child",
+ g_param_spec_int ("maximum-size", NULL, NULL,
0, G_MAXINT, 600,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -380,9 +378,7 @@ adw_clamp_layout_class_init (AdwClampLayoutClass *klass)
* Since: 1.0
*/
props[PROP_TIGHTENING_THRESHOLD] =
- g_param_spec_int ("tightening-threshold",
- "Tightening threshold",
- "The size above which the children are clamped",
+ g_param_spec_int ("tightening-threshold", NULL, NULL,
0, G_MAXINT, 400,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/src/adw-clamp-scrollable.c b/src/adw-clamp-scrollable.c
index f9387999..3eebb9a7 100644
--- a/src/adw-clamp-scrollable.c
+++ b/src/adw-clamp-scrollable.c
@@ -261,9 +261,7 @@ adw_clamp_scrollable_class_init (AdwClampScrollableClass *klass)
* Since: 1.0
*/
props[PROP_CHILD] =
- g_param_spec_object ("child",
- "Child",
- "The child widget",
+ g_param_spec_object ("child", NULL, NULL,
GTK_TYPE_WIDGET,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -277,9 +275,7 @@ adw_clamp_scrollable_class_init (AdwClampScrollableClass *klass)
* Since: 1.0
*/
props[PROP_MAXIMUM_SIZE] =
- g_param_spec_int ("maximum-size",
- "Maximum size",
- "The maximum size allocated to the child",
+ g_param_spec_int ("maximum-size", NULL, NULL,
0, G_MAXINT, 600,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -304,9 +300,7 @@ adw_clamp_scrollable_class_init (AdwClampScrollableClass *klass)
* Since: 1.0
*/
props[PROP_TIGHTENING_THRESHOLD] =
- g_param_spec_int ("tightening-threshold",
- "Tightening threshold",
- "The size from which the clamp will tighten its grip on the child",
+ g_param_spec_int ("tightening-threshold", NULL, NULL,
0, G_MAXINT, 400,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/src/adw-clamp.c b/src/adw-clamp.c
index e1858826..c06790b9 100644
--- a/src/adw-clamp.c
+++ b/src/adw-clamp.c
@@ -177,9 +177,7 @@ adw_clamp_class_init (AdwClampClass *klass)
* Since: 1.0
*/
props[PROP_CHILD] =
- g_param_spec_object ("child",
- "Child",
- "The child widget",
+ g_param_spec_object ("child", NULL, NULL,
GTK_TYPE_WIDGET,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -193,9 +191,7 @@ adw_clamp_class_init (AdwClampClass *klass)
* Since: 1.0
*/
props[PROP_MAXIMUM_SIZE] =
- g_param_spec_int ("maximum-size",
- "Maximum size",
- "The maximum size allocated to the child",
+ g_param_spec_int ("maximum-size", NULL, NULL,
0, G_MAXINT, 600,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -220,9 +216,7 @@ adw_clamp_class_init (AdwClampClass *klass)
* Since: 1.0
*/
props[PROP_TIGHTENING_THRESHOLD] =
- g_param_spec_int ("tightening-threshold",
- "Tightening threshold",
- "The size above which the child is clamped",
+ g_param_spec_int ("tightening-threshold", NULL, NULL,
0, G_MAXINT, 400,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/src/adw-combo-row.c b/src/adw-combo-row.c
index 87d213e8..af89e5e3 100644
--- a/src/adw-combo-row.c
+++ b/src/adw-combo-row.c
@@ -423,9 +423,7 @@ adw_combo_row_class_init (AdwComboRowClass *klass)
* Since: 1.0
*/
props[PROP_MODEL] =
- g_param_spec_object ("model",
- "Model",
- "Model for the displayed items",
+ g_param_spec_object ("model", NULL, NULL,
G_TYPE_LIST_MODEL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -440,9 +438,7 @@ adw_combo_row_class_init (AdwComboRowClass *klass)
* Since: 1.0
*/
props[PROP_SELECTED] =
- g_param_spec_uint ("selected",
- "Selected",
- "Position of the selected item",
+ g_param_spec_uint ("selected", NULL, NULL,
0, G_MAXUINT, GTK_INVALID_LIST_POSITION,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -454,9 +450,7 @@ adw_combo_row_class_init (AdwComboRowClass *klass)
* Since: 1.0
*/
props[PROP_SELECTED_ITEM] =
- g_param_spec_object ("selected-item",
- "Selected Item",
- "The selected item",
+ g_param_spec_object ("selected-item", NULL, NULL,
G_TYPE_OBJECT,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
@@ -471,9 +465,7 @@ adw_combo_row_class_init (AdwComboRowClass *klass)
* Since: 1.0
*/
props[PROP_FACTORY] =
- g_param_spec_object ("factory",
- "Factory",
- "Factory for populating list items",
+ g_param_spec_object ("factory", NULL, NULL,
GTK_TYPE_LIST_ITEM_FACTORY,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -487,9 +479,7 @@ adw_combo_row_class_init (AdwComboRowClass *klass)
* Since: 1.0
*/
props[PROP_LIST_FACTORY] =
- g_param_spec_object ("list-factory",
- "List Factory",
- "Factory for populating list items",
+ g_param_spec_object ("list-factory", NULL, NULL,
GTK_TYPE_LIST_ITEM_FACTORY,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -527,9 +517,7 @@ adw_combo_row_class_init (AdwComboRowClass *klass)
* Since: 1.0
*/
props[PROP_USE_SUBTITLE] =
- g_param_spec_boolean ("use-subtitle",
- "Use subtitle",
- "Whether to use the current value as the subtitle",
+ g_param_spec_boolean ("use-subtitle", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/src/adw-entry-row.c b/src/adw-entry-row.c
index 652d2df2..057df211 100644
--- a/src/adw-entry-row.c
+++ b/src/adw-entry-row.c
@@ -423,9 +423,7 @@ adw_entry_row_class_init (AdwEntryRowClass *klass)
* Since: 1.2
*/
props[PROP_SHOW_APPLY_BUTTON] =
- g_param_spec_boolean ("show-apply-button",
- "Show Apply Button",
- "Whether to show the apply button",
+ g_param_spec_boolean ("show-apply-button", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/src/adw-enum-list-model.c b/src/adw-enum-list-model.c
index 613d318e..38adcba3 100644
--- a/src/adw-enum-list-model.c
+++ b/src/adw-enum-list-model.c
@@ -110,9 +110,7 @@ adw_enum_list_item_class_init (AdwEnumListItemClass *klass)
* Since: 1.0
*/
value_props[VALUE_PROP_VALUE] =
- g_param_spec_int ("value",
- "Value",
- "The enum value",
+ g_param_spec_int ("value", NULL, NULL,
G_MININT, G_MAXINT, 0,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
@@ -124,9 +122,7 @@ adw_enum_list_item_class_init (AdwEnumListItemClass *klass)
* Since: 1.0
*/
value_props[VALUE_PROP_NAME] =
- g_param_spec_string ("name",
- "Name",
- "The enum value name",
+ g_param_spec_string ("name", NULL, NULL,
NULL,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
@@ -138,9 +134,7 @@ adw_enum_list_item_class_init (AdwEnumListItemClass *klass)
* Since: 1.0
*/
value_props[VALUE_PROP_NICK] =
- g_param_spec_string ("nick",
- "Nick",
- "The enum value nick",
+ g_param_spec_string ("nick", NULL, NULL,
NULL,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
@@ -292,9 +286,7 @@ adw_enum_list_model_class_init (AdwEnumListModelClass *klass)
* Since: 1.0
*/
props[PROP_ENUM_TYPE] =
- g_param_spec_gtype ("enum-type",
- "Enum type",
- "The type of the enum represented by the model",
+ g_param_spec_gtype ("enum-type", NULL, NULL,
G_TYPE_ENUM,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
diff --git a/src/adw-expander-row.c b/src/adw-expander-row.c
index 7c6461b6..79eff775 100644
--- a/src/adw-expander-row.c
+++ b/src/adw-expander-row.c
@@ -184,9 +184,7 @@ adw_expander_row_class_init (AdwExpanderRowClass *klass)
* Since: 1.0
*/
props[PROP_SUBTITLE] =
- g_param_spec_string ("subtitle",
- "Subtitle",
- "The subtitle for this row",
+ g_param_spec_string ("subtitle", NULL, NULL,
"",
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -198,9 +196,7 @@ adw_expander_row_class_init (AdwExpanderRowClass *klass)
* Since: 1.0
*/
props[PROP_ICON_NAME] =
- g_param_spec_string ("icon-name",
- "Icon name",
- "The icon name for this row",
+ g_param_spec_string ("icon-name", NULL, NULL,
"",
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -212,9 +208,7 @@ adw_expander_row_class_init (AdwExpanderRowClass *klass)
* Since: 1.0
*/
props[PROP_EXPANDED] =
- g_param_spec_boolean ("expanded",
- "Expanded",
- "Whether the row is expanded",
+ g_param_spec_boolean ("expanded", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -226,9 +220,7 @@ adw_expander_row_class_init (AdwExpanderRowClass *klass)
* Since: 1.0
*/
props[PROP_ENABLE_EXPANSION] =
- g_param_spec_boolean ("enable-expansion",
- "Enable expansion",
- "Whether expansion is enabled",
+ g_param_spec_boolean ("enable-expansion", NULL, NULL,
TRUE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -240,9 +232,7 @@ adw_expander_row_class_init (AdwExpanderRowClass *klass)
* Since: 1.0
*/
props[PROP_SHOW_ENABLE_SWITCH] =
- g_param_spec_boolean ("show-enable-switch",
- "Show enable switch",
- "Whether the switch enabling the expansion is visible",
+ g_param_spec_boolean ("show-enable-switch", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/src/adw-fading-label.c b/src/adw-fading-label.c
index bb2b95c0..7ad10215 100644
--- a/src/adw-fading-label.c
+++ b/src/adw-fading-label.c
@@ -258,16 +258,12 @@ adw_fading_label_class_init (AdwFadingLabelClass *klass)
widget_class->unrealize = adw_fading_label_unrealize;
props[PROP_LABEL] =
- g_param_spec_string ("label",
- "Label",
- "Label",
+ g_param_spec_string ("label", NULL, NULL,
NULL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
props[PROP_ALIGN] =
- g_param_spec_float ("align",
- "Align",
- "Align",
+ g_param_spec_float ("align", NULL, NULL,
0.0, 1.0, 0.0,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/src/adw-flap.c b/src/adw-flap.c
index 60071541..caabf270 100644
--- a/src/adw-flap.c
+++ b/src/adw-flap.c
@@ -1274,9 +1274,7 @@ adw_flap_class_init (AdwFlapClass *klass)
* Since: 1.0
*/
props[PROP_CONTENT] =
- g_param_spec_object ("content",
- "Content",
- "The content widget",
+ g_param_spec_object ("content", NULL, NULL,
GTK_TYPE_WIDGET,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -1290,9 +1288,7 @@ adw_flap_class_init (AdwFlapClass *klass)
* Since: 1.0
*/
props[PROP_FLAP] =
- g_param_spec_object ("flap",
- "Flap",
- "The flap widget",
+ g_param_spec_object ("flap", NULL, NULL,
GTK_TYPE_WIDGET,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -1308,9 +1304,7 @@ adw_flap_class_init (AdwFlapClass *klass)
* Since: 1.0
*/
props[PROP_SEPARATOR] =
- g_param_spec_object ("separator",
- "Separator",
- "The separator widget",
+ g_param_spec_object ("separator", NULL, NULL,
GTK_TYPE_WIDGET,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -1325,9 +1319,7 @@ adw_flap_class_init (AdwFlapClass *klass)
* Since: 1.0
*/
props[PROP_FLAP_POSITION] =
- g_param_spec_enum ("flap-position",
- "Flap Position",
- "The flap position",
+ g_param_spec_enum ("flap-position", NULL, NULL,
GTK_TYPE_PACK_TYPE,
GTK_PACK_START,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -1340,9 +1332,7 @@ adw_flap_class_init (AdwFlapClass *klass)
* Since: 1.0
*/
props[PROP_REVEAL_FLAP] =
- g_param_spec_boolean ("reveal-flap",
- "Reveal Flap",
- "Whether the flap is revealed",
+ g_param_spec_boolean ("reveal-flap", NULL, NULL,
TRUE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -1360,9 +1350,7 @@ adw_flap_class_init (AdwFlapClass *klass)
* Since: 1.0
*/
props[PROP_REVEAL_PARAMS] =
- g_param_spec_boxed ("reveal-params",
- "Reveal Parameters",
- "The reveal animation spring parameters",
+ g_param_spec_boxed ("reveal-params", NULL, NULL,
ADW_TYPE_SPRING_PARAMS,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -1378,9 +1366,7 @@ adw_flap_class_init (AdwFlapClass *klass)
* Since: 1.0
*/
props[PROP_REVEAL_PROGRESS] =
- g_param_spec_double ("reveal-progress",
- "Reveal Progress",
- "The current reveal transition progress",
+ g_param_spec_double ("reveal-progress", NULL, NULL,
0.0, 1.0, 1.0,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
@@ -1392,9 +1378,7 @@ adw_flap_class_init (AdwFlapClass *klass)
* Since: 1.0
*/
props[PROP_FOLD_POLICY] =
- g_param_spec_enum ("fold-policy",
- "Fold Policy",
- "The fold policy for the flap",
+ g_param_spec_enum ("fold-policy", NULL, NULL,
ADW_TYPE_FLAP_FOLD_POLICY,
ADW_FLAP_FOLD_POLICY_AUTO,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -1414,9 +1398,7 @@ adw_flap_class_init (AdwFlapClass *klass)
* Since: 1.0
*/
props[PROP_FOLD_THRESHOLD_POLICY] =
- g_param_spec_enum ("fold-threshold-policy",
- "Fold Threshold Policy",
- "Determines when the flap will fold",
+ g_param_spec_enum ("fold-threshold-policy", NULL, NULL,
ADW_TYPE_FOLD_THRESHOLD_POLICY,
ADW_FOLD_THRESHOLD_POLICY_MINIMUM,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -1429,9 +1411,7 @@ adw_flap_class_init (AdwFlapClass *klass)
* Since: 1.0
*/
props[PROP_FOLD_DURATION] =
- g_param_spec_uint ("fold-duration",
- "Fold Duration",
- "The fold transition animation duration, in milliseconds",
+ g_param_spec_uint ("fold-duration", NULL, NULL,
0, G_MAXINT,
250,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -1446,9 +1426,7 @@ adw_flap_class_init (AdwFlapClass *klass)
* Since: 1.0
*/
props[PROP_FOLDED] =
- g_param_spec_boolean ("folded",
- "Folded",
- "Whether the flap is currently folded",
+ g_param_spec_boolean ("folded", NULL, NULL,
FALSE,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
@@ -1464,9 +1442,7 @@ adw_flap_class_init (AdwFlapClass *klass)
* Since: 1.0
*/
props[PROP_LOCKED] =
- g_param_spec_boolean ("locked",
- "Locked",
- "Whether the flap is locked",
+ g_param_spec_boolean ("locked", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -1483,9 +1459,7 @@ adw_flap_class_init (AdwFlapClass *klass)
* Since: 1.0
*/
props[PROP_TRANSITION_TYPE] =
- g_param_spec_enum ("transition-type",
- "Transition Type",
- "The type of animation used for reveal and fold transitions",
+ g_param_spec_enum ("transition-type", NULL, NULL,
ADW_TYPE_FLAP_TRANSITION_TYPE,
ADW_FLAP_TRANSITION_TYPE_OVER,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -1502,9 +1476,7 @@ adw_flap_class_init (AdwFlapClass *klass)
* Since: 1.0
*/
props[PROP_MODAL] =
- g_param_spec_boolean ("modal",
- "Modal",
- "Whether the flap is modal",
+ g_param_spec_boolean ("modal", NULL, NULL,
TRUE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -1519,9 +1491,7 @@ adw_flap_class_init (AdwFlapClass *klass)
* Since: 1.0
*/
props[PROP_SWIPE_TO_OPEN] =
- g_param_spec_boolean ("swipe-to-open",
- "Swipe to Open",
- "Whether the flap can be opened with a swipe gesture",
+ g_param_spec_boolean ("swipe-to-open", NULL, NULL,
TRUE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -1536,9 +1506,7 @@ adw_flap_class_init (AdwFlapClass *klass)
* Since: 1.0
*/
props[PROP_SWIPE_TO_CLOSE] =
- g_param_spec_boolean ("swipe-to-close",
- "Swipe to Close",
- "Whether the flap can be closed with a swipe gesture",
+ g_param_spec_boolean ("swipe-to-close", NULL, NULL,
TRUE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/src/adw-header-bar.c b/src/adw-header-bar.c
index 2f9c632c..f3e85352 100644
--- a/src/adw-header-bar.c
+++ b/src/adw-header-bar.c
@@ -406,9 +406,7 @@ adw_header_bar_class_init (AdwHeaderBarClass *class)
* Since: 1.0
*/
props[PROP_TITLE_WIDGET] =
- g_param_spec_object ("title-widget",
- "Title Widget",
- "The title widget to display",
+ g_param_spec_object ("title-widget", NULL, NULL,
GTK_TYPE_WIDGET,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -427,9 +425,7 @@ adw_header_bar_class_init (AdwHeaderBarClass *class)
* Since: 1.0
*/
props[PROP_SHOW_START_TITLE_BUTTONS] =
- g_param_spec_boolean ("show-start-title-buttons",
- "Show start title buttons",
- "Whether to show title buttons at the start of the header bar",
+ g_param_spec_boolean ("show-start-title-buttons", NULL, NULL,
TRUE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -448,9 +444,7 @@ adw_header_bar_class_init (AdwHeaderBarClass *class)
* Since: 1.0
*/
props[PROP_SHOW_END_TITLE_BUTTONS] =
- g_param_spec_boolean ("show-end-title-buttons",
- "Show end title buttons",
- "Whether to show title buttons at the end of the header bar",
+ g_param_spec_boolean ("show-end-title-buttons", NULL, NULL,
TRUE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -473,9 +467,7 @@ adw_header_bar_class_init (AdwHeaderBarClass *class)
* Since: 1.0
*/
props[PROP_DECORATION_LAYOUT] =
- g_param_spec_string ("decoration-layout",
- "Decoration Layout",
- "The layout for window decorations",
+ g_param_spec_string ("decoration-layout", NULL, NULL,
NULL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -487,9 +479,7 @@ adw_header_bar_class_init (AdwHeaderBarClass *class)
* Since: 1.0
*/
props[PROP_CENTERING_POLICY] =
- g_param_spec_enum ("centering-policy",
- "Centering policy",
- "The policy for aligning the center widget",
+ g_param_spec_enum ("centering-policy", NULL, NULL,
ADW_TYPE_CENTERING_POLICY,
ADW_CENTERING_POLICY_LOOSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/src/adw-indicator-bin.c b/src/adw-indicator-bin.c
index 174bfe2c..65ff38e3 100644
--- a/src/adw-indicator-bin.c
+++ b/src/adw-indicator-bin.c
@@ -301,9 +301,7 @@ adw_indicator_bin_class_init (AdwIndicatorBinClass *klass)
* Since: 1.0
*/
props[PROP_CHILD] =
- g_param_spec_object ("child",
- "Child",
- "The child widget",
+ g_param_spec_object ("child", NULL, NULL,
GTK_TYPE_WIDGET,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -315,9 +313,7 @@ adw_indicator_bin_class_init (AdwIndicatorBinClass *klass)
* Since: 1.0
*/
props[PROP_NEEDS_ATTENTION] =
- g_param_spec_boolean ("needs-attention",
- "Needs Attention",
- "Whether the indicator requires attention of the user",
+ g_param_spec_boolean ("needs-attention", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -329,9 +325,7 @@ adw_indicator_bin_class_init (AdwIndicatorBinClass *klass)
* Since: 1.0
*/
props[PROP_BADGE] =
- g_param_spec_string ("badge",
- "Badge",
- "Additional information for the user",
+ g_param_spec_string ("badge", NULL, NULL,
"",
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/src/adw-inspector-page.c b/src/adw-inspector-page.c
index f0c03c9c..096d5904 100644
--- a/src/adw-inspector-page.c
+++ b/src/adw-inspector-page.c
@@ -148,16 +148,12 @@ adw_inspector_page_class_init (AdwInspectorPageClass *klass)
object_class->dispose = adw_inspector_page_dispose;
props[PROP_TITLE] =
- g_param_spec_string ("title",
- "Title",
- "Title",
+ g_param_spec_string ("title", NULL, NULL,
"Libadwaita",
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
props[PROP_OBJECT] =
- g_param_spec_object ("object",
- "Object",
- "Object",
+ g_param_spec_object ("object", NULL, NULL,
G_TYPE_OBJECT,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
diff --git a/src/adw-leaflet.c b/src/adw-leaflet.c
index 01192b18..8d2b88a4 100644
--- a/src/adw-leaflet.c
+++ b/src/adw-leaflet.c
@@ -282,9 +282,7 @@ adw_leaflet_page_class_init (AdwLeafletPageClass *klass)
* Since: 1.0
*/
page_props[PAGE_PROP_CHILD] =
- g_param_spec_object ("child",
- "Child",
- "The child of the page",
+ g_param_spec_object ("child", NULL, NULL,
GTK_TYPE_WIDGET,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
@@ -296,9 +294,7 @@ adw_leaflet_page_class_init (AdwLeafletPageClass *klass)
* Since: 1.0
*/
page_props[PAGE_PROP_NAME] =
- g_param_spec_string ("name",
- "Name",
- "The name of the child page",
+ g_param_spec_string ("name", NULL, NULL,
NULL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -316,9 +312,7 @@ adw_leaflet_page_class_init (AdwLeafletPageClass *klass)
* Since: 1.0
*/
page_props[PAGE_PROP_NAVIGATABLE] =
- g_param_spec_boolean ("navigatable",
- "Navigatable",
- "Whether the child can be navigated to",
+ g_param_spec_boolean ("navigatable", NULL, NULL,
TRUE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -2200,9 +2194,7 @@ adw_leaflet_class_init (AdwLeafletClass *klass)
* Since: 1.0
*/
props[PROP_FOLDED] =
- g_param_spec_boolean ("folded",
- "Folded",
- "Whether the leaflet is folded",
+ g_param_spec_boolean ("folded", NULL, NULL,
FALSE,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
@@ -2221,9 +2213,7 @@ adw_leaflet_class_init (AdwLeafletClass *klass)
* Since: 1.0
*/
props[PROP_FOLD_THRESHOLD_POLICY] =
- g_param_spec_enum ("fold-threshold-policy",
- "Fold Threshold Policy",
- "Determines when the leaflet will fold",
+ g_param_spec_enum ("fold-threshold-policy", NULL, NULL,
ADW_TYPE_FOLD_THRESHOLD_POLICY,
ADW_FOLD_THRESHOLD_POLICY_MINIMUM,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -2239,9 +2229,7 @@ adw_leaflet_class_init (AdwLeafletClass *klass)
* Since: 1.0
*/
props[PROP_HOMOGENEOUS] =
- g_param_spec_boolean ("homogeneous",
- "Homogeneous",
- "Whether the leaflet allocates the same size for all children when folded",
+ g_param_spec_boolean ("homogeneous", NULL, NULL,
TRUE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -2258,9 +2246,7 @@ adw_leaflet_class_init (AdwLeafletClass *klass)
* Since: 1.0
*/
props[PROP_VISIBLE_CHILD] =
- g_param_spec_object ("visible-child",
- "Visible child",
- "The widget currently visible when the leaflet is folded",
+ g_param_spec_object ("visible-child", NULL, NULL,
GTK_TYPE_WIDGET,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -2274,9 +2260,7 @@ adw_leaflet_class_init (AdwLeafletClass *klass)
* Since: 1.0
*/
props[PROP_VISIBLE_CHILD_NAME] =
- g_param_spec_string ("visible-child-name",
- "Name of visible child",
- "The name of the widget currently visible when the leaflet is folded",
+ g_param_spec_string ("visible-child-name", NULL, NULL,
NULL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -2292,9 +2276,7 @@ adw_leaflet_class_init (AdwLeafletClass *klass)
* Since: 1.0
*/
props[PROP_TRANSITION_TYPE] =
- g_param_spec_enum ("transition-type",
- "Transition type",
- "The type of animation used for transitions between modes and children",
+ g_param_spec_enum ("transition-type", NULL, NULL,
ADW_TYPE_LEAFLET_TRANSITION_TYPE, ADW_LEAFLET_TRANSITION_TYPE_OVER,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -2306,9 +2288,7 @@ adw_leaflet_class_init (AdwLeafletClass *klass)
* Since: 1.0
*/
props[PROP_MODE_TRANSITION_DURATION] =
- g_param_spec_uint ("mode-transition-duration",
- "Mode transition duration",
- "The mode transition animation duration, in milliseconds",
+ g_param_spec_uint ("mode-transition-duration", NULL, NULL,
0, G_MAXUINT, 250,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -2326,9 +2306,7 @@ adw_leaflet_class_init (AdwLeafletClass *klass)
* Since: 1.0
*/
props[PROP_CHILD_TRANSITION_PARAMS] =
- g_param_spec_boxed ("child-transition-params",
- "Child transition parameters",
- "The child transition spring parameters",
+ g_param_spec_boxed ("child-transition-params", NULL, NULL,
ADW_TYPE_SPRING_PARAMS,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -2340,9 +2318,7 @@ adw_leaflet_class_init (AdwLeafletClass *klass)
* Since: 1.0
*/
props[PROP_CHILD_TRANSITION_RUNNING] =
- g_param_spec_boolean ("child-transition-running",
- "Child transition running",
- "Whether a child transition is currently running",
+ g_param_spec_boolean ("child-transition-running", NULL, NULL,
FALSE,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
@@ -2370,9 +2346,7 @@ adw_leaflet_class_init (AdwLeafletClass *klass)
* Since: 1.0
*/
props[PROP_CAN_NAVIGATE_BACK] =
- g_param_spec_boolean ("can-navigate-back",
- "Can navigate back",
- "Whether gestures and shortcuts for navigating backward are enabled",
+ g_param_spec_boolean ("can-navigate-back", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -2400,9 +2374,7 @@ adw_leaflet_class_init (AdwLeafletClass *klass)
* Since: 1.0
*/
props[PROP_CAN_NAVIGATE_FORWARD] =
- g_param_spec_boolean ("can-navigate-forward",
- "Can navigate forward",
- "Whether gestures and shortcuts for navigating forward are enabled",
+ g_param_spec_boolean ("can-navigate-forward", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -2414,9 +2386,7 @@ adw_leaflet_class_init (AdwLeafletClass *klass)
* Since: 1.0
*/
props[PROP_CAN_UNFOLD] =
- g_param_spec_boolean ("can-unfold",
- "Can unfold",
- "Whether or not the leaflet can unfold",
+ g_param_spec_boolean ("can-unfold", NULL, NULL,
TRUE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -2432,9 +2402,7 @@ adw_leaflet_class_init (AdwLeafletClass *klass)
* Since: 1.0
*/
props[PROP_PAGES] =
- g_param_spec_object ("pages",
- "Pages",
- "A selection model with the leaflet's pages",
+ g_param_spec_object ("pages", NULL, NULL,
GTK_TYPE_SELECTION_MODEL,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
diff --git a/src/adw-preferences-group.c b/src/adw-preferences-group.c
index 0649671d..1177dcd2 100644
--- a/src/adw-preferences-group.c
+++ b/src/adw-preferences-group.c
@@ -243,9 +243,7 @@ adw_preferences_group_class_init (AdwPreferencesGroupClass *klass)
* Since: 1.0
*/
props[PROP_DESCRIPTION] =
- g_param_spec_string ("description",
- "Description",
- "The description for this group of preferences",
+ g_param_spec_string ("description", NULL, NULL,
"",
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -257,9 +255,7 @@ adw_preferences_group_class_init (AdwPreferencesGroupClass *klass)
* Since: 1.0
*/
props[PROP_TITLE] =
- g_param_spec_string ("title",
- "Title",
- "The title for this group of preferences",
+ g_param_spec_string ("title", NULL, NULL,
"",
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
/**
@@ -272,9 +268,7 @@ adw_preferences_group_class_init (AdwPreferencesGroupClass *klass)
* Since: 1.1
*/
props[PROP_HEADER_SUFFIX] =
- g_param_spec_object ("header-suffix",
- "Header Suffix",
- "The suffix for this group's header",
+ g_param_spec_object ("header-suffix", NULL, NULL,
GTK_TYPE_WIDGET,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/src/adw-preferences-page.c b/src/adw-preferences-page.c
index 357c3dd6..82f1e2c2 100644
--- a/src/adw-preferences-page.c
+++ b/src/adw-preferences-page.c
@@ -166,9 +166,7 @@ adw_preferences_page_class_init (AdwPreferencesPageClass *klass)
* Since: 1.0
*/
props[PROP_ICON_NAME] =
- g_param_spec_string ("icon-name",
- "Icon name",
- "The icon name for this page",
+ g_param_spec_string ("icon-name", NULL, NULL,
"",
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -180,9 +178,7 @@ adw_preferences_page_class_init (AdwPreferencesPageClass *klass)
* Since: 1.0
*/
props[PROP_TITLE] =
- g_param_spec_string ("title",
- "Title",
- "The title for this page",
+ g_param_spec_string ("title", NULL, NULL,
"",
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -194,9 +190,7 @@ adw_preferences_page_class_init (AdwPreferencesPageClass *klass)
* Since: 1.0
*/
props[PROP_NAME] =
- g_param_spec_string ("name",
- "Name",
- "The name of this page",
+ g_param_spec_string ("name", NULL, NULL,
NULL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -208,9 +202,7 @@ adw_preferences_page_class_init (AdwPreferencesPageClass *klass)
* Since: 1.0
*/
props[PROP_USE_UNDERLINE] =
- g_param_spec_boolean ("use-underline",
- "Use underline",
- " Whether an embedded underline in the title label indicates a mnemonic",
+ g_param_spec_boolean ("use-underline", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/src/adw-preferences-row.c b/src/adw-preferences-row.c
index 20fc4299..1ba124d0 100644
--- a/src/adw-preferences-row.c
+++ b/src/adw-preferences-row.c
@@ -125,9 +125,7 @@ adw_preferences_row_class_init (AdwPreferencesRowClass *klass)
* Since: 1.0
*/
props[PROP_TITLE] =
- g_param_spec_string ("title",
- "Title",
- "The title of the preference represented by this row",
+ g_param_spec_string ("title", NULL, NULL,
"",
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -139,9 +137,7 @@ adw_preferences_row_class_init (AdwPreferencesRowClass *klass)
* Since: 1.0
*/
props[PROP_USE_UNDERLINE] =
- g_param_spec_boolean ("use-underline",
- "Use underline",
- "Whether an embedded underline in the title indicates a mnemonic",
+ g_param_spec_boolean ("use-underline", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -155,9 +151,7 @@ adw_preferences_row_class_init (AdwPreferencesRowClass *klass)
* Since: 1.1
*/
props[PROP_TITLE_SELECTABLE] =
- g_param_spec_boolean ("title-selectable",
- "Title selectable",
- "Whether the title should be selectable (i.e. the user can copy it)",
+ g_param_spec_boolean ("title-selectable", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -173,9 +167,7 @@ adw_preferences_row_class_init (AdwPreferencesRowClass *klass)
* Since: 1.2
*/
props[PROP_USE_MARKUP] =
- g_param_spec_boolean ("use-markup",
- "Use markup",
- "Whether to use Pango markup for the title label",
+ g_param_spec_boolean ("use-markup", NULL, NULL,
TRUE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/src/adw-preferences-window.c b/src/adw-preferences-window.c
index 32ad5fef..0eab5513 100644
--- a/src/adw-preferences-window.c
+++ b/src/adw-preferences-window.c
@@ -557,9 +557,7 @@ adw_preferences_window_class_init (AdwPreferencesWindowClass *klass)
* Since: 1.0
*/
props[PROP_VISIBLE_PAGE] =
- g_param_spec_object ("visible-page",
- "Visible page",
- "The currently visible page",
+ g_param_spec_object ("visible-page", NULL, NULL,
GTK_TYPE_WIDGET,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -573,9 +571,7 @@ adw_preferences_window_class_init (AdwPreferencesWindowClass *klass)
* Since: 1.0
*/
props[PROP_VISIBLE_PAGE_NAME] =
- g_param_spec_string ("visible-page-name",
- "Name of visible page",
- "The name of the currently visible page",
+ g_param_spec_string ("visible-page-name", NULL, NULL,
NULL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -587,9 +583,7 @@ adw_preferences_window_class_init (AdwPreferencesWindowClass *klass)
* Since: 1.0
*/
props[PROP_SEARCH_ENABLED] =
- g_param_spec_boolean ("search-enabled",
- "Search enabled",
- "Whether search is enabled",
+ g_param_spec_boolean ("search-enabled", NULL, NULL,
TRUE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -612,9 +606,7 @@ adw_preferences_window_class_init (AdwPreferencesWindowClass *klass)
* Since: 1.0
*/
props[PROP_CAN_NAVIGATE_BACK] =
- g_param_spec_boolean ("can-navigate-back",
- "Can navigate back",
- "Whether gestures and shortcuts for closing subpages are enabled",
+ g_param_spec_boolean ("can-navigate-back", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/src/adw-settings.c b/src/adw-settings.c
index 1b3351b5..f2bb4d4d 100644
--- a/src/adw-settings.c
+++ b/src/adw-settings.c
@@ -620,24 +620,18 @@ adw_settings_class_init (AdwSettingsClass *klass)
object_class->get_property = adw_settings_get_property;
props[PROP_SYSTEM_SUPPORTS_COLOR_SCHEMES] =
- g_param_spec_boolean ("system-supports-color-schemes",
- "System supports color schemes",
- "Whether the system supports color schemes",
+ g_param_spec_boolean ("system-supports-color-schemes", NULL, NULL,
FALSE,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
props[PROP_COLOR_SCHEME] =
- g_param_spec_enum ("color-scheme",
- "Color Scheme",
- "Color Scheme",
+ g_param_spec_enum ("color-scheme", NULL, NULL,
ADW_TYPE_SYSTEM_COLOR_SCHEME,
ADW_SYSTEM_COLOR_SCHEME_DEFAULT,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
props[PROP_HIGH_CONTRAST] =
- g_param_spec_boolean ("high-contrast",
- "High Contrast",
- "High Contrast",
+ g_param_spec_boolean ("high-contrast", NULL, NULL,
FALSE,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
diff --git a/src/adw-shadow-helper.c b/src/adw-shadow-helper.c
index d63f0cd5..11b06386 100644
--- a/src/adw-shadow-helper.c
+++ b/src/adw-shadow-helper.c
@@ -132,9 +132,7 @@ adw_shadow_helper_class_init (AdwShadowHelperClass *klass)
* Since: 1.0
*/
props[PROP_WIDGET] =
- g_param_spec_object ("widget",
- "Widget",
- "The widget the shadow will be drawn for",
+ g_param_spec_object ("widget", NULL, NULL,
GTK_TYPE_WIDGET,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
diff --git a/src/adw-split-button.c b/src/adw-split-button.c
index 5beb3a5f..ddc2c4a7 100644
--- a/src/adw-split-button.c
+++ b/src/adw-split-button.c
@@ -285,9 +285,7 @@ adw_split_button_class_init (AdwSplitButtonClass *klass)
* Since: 1.0
*/
props[PROP_LABEL] =
- g_param_spec_string ("label",
- "Label",
- "The label for the button",
+ g_param_spec_string ("label", NULL, NULL,
NULL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -301,9 +299,7 @@ adw_split_button_class_init (AdwSplitButtonClass *klass)
* Since: 1.0
*/
props[PROP_USE_UNDERLINE] =
- g_param_spec_boolean ("use-underline",
- "Use underline",
- "Whether an underline in the text indicates a mnemonic",
+ g_param_spec_boolean ("use-underline", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -318,9 +314,7 @@ adw_split_button_class_init (AdwSplitButtonClass *klass)
* Since: 1.0
*/
props[PROP_ICON_NAME] =
- g_param_spec_string ("icon-name",
- "Icon Name",
- "The name of the icon used to automatically populate the button",
+ g_param_spec_string ("icon-name", NULL, NULL,
NULL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -335,9 +329,7 @@ adw_split_button_class_init (AdwSplitButtonClass *klass)
* Since: 1.0
*/
props[PROP_CHILD] =
- g_param_spec_object ("child",
- "Child",
- "The child widget",
+ g_param_spec_object ("child", NULL, NULL,
GTK_TYPE_WIDGET,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -358,9 +350,7 @@ adw_split_button_class_init (AdwSplitButtonClass *klass)
* Since: 1.0
*/
props[PROP_MENU_MODEL] =
- g_param_spec_object ("menu-model",
- "Menu model",
- "The model from which the popup is made",
+ g_param_spec_object ("menu-model", NULL, NULL,
G_TYPE_MENU_MODEL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -377,9 +367,7 @@ adw_split_button_class_init (AdwSplitButtonClass *klass)
* Since: 1.0
*/
props[PROP_POPOVER] =
- g_param_spec_object ("popover",
- "Popover",
- "The popover that will be popped up when the dropdown is clicked",
+ g_param_spec_object ("popover", NULL, NULL,
GTK_TYPE_POPOVER,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -398,9 +386,7 @@ adw_split_button_class_init (AdwSplitButtonClass *klass)
* Since: 1.0
*/
props[PROP_DIRECTION] =
- g_param_spec_enum ("direction",
- "Direction",
- "The direction in which the popup will be popped up",
+ g_param_spec_enum ("direction", NULL, NULL,
GTK_TYPE_ARROW_TYPE,
GTK_ARROW_DOWN,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/src/adw-spring-animation.c b/src/adw-spring-animation.c
index 21fab440..d5b7d00d 100644
--- a/src/adw-spring-animation.c
+++ b/src/adw-spring-animation.c
@@ -401,9 +401,7 @@ adw_spring_animation_class_init (AdwSpringAnimationClass *klass)
* Since: 1.0
*/
props[PROP_VALUE_FROM] =
- g_param_spec_double ("value-from",
- "Initial value",
- "The value to animate from",
+ g_param_spec_double ("value-from", NULL, NULL,
-G_MAXDOUBLE,
G_MAXDOUBLE,
0,
@@ -420,9 +418,7 @@ adw_spring_animation_class_init (AdwSpringAnimationClass *klass)
* Since: 1.0
*/
props[PROP_VALUE_TO] =
- g_param_spec_double ("value-to",
- "Final value",
- "The value to animate to",
+ g_param_spec_double ("value-to", NULL, NULL,
-G_MAXDOUBLE,
G_MAXDOUBLE,
0,
@@ -436,9 +432,7 @@ adw_spring_animation_class_init (AdwSpringAnimationClass *klass)
* Since: 1.0
*/
props[PROP_SPRING_PARAMS] =
- g_param_spec_boxed ("spring-params",
- "Spring parameters",
- "Physical parameters describing the spring",
+ g_param_spec_boxed ("spring-params", NULL, NULL,
ADW_TYPE_SPRING_PARAMS,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS |
G_PARAM_EXPLICIT_NOTIFY);
@@ -452,9 +446,7 @@ adw_spring_animation_class_init (AdwSpringAnimationClass *klass)
* Since: 1.0
*/
props[PROP_INITIAL_VELOCITY] =
- g_param_spec_double ("initial-velocity",
- "Initial velocity",
- "The initial velocity to start the animation with",
+ g_param_spec_double ("initial-velocity", NULL, NULL,
-G_MAXDOUBLE,
G_MAXDOUBLE,
0,
@@ -479,9 +471,7 @@ adw_spring_animation_class_init (AdwSpringAnimationClass *klass)
* Since: 1.0
*/
props[PROP_EPSILON] =
- g_param_spec_double ("epsilon",
- "Epsilon",
- "Precision of the spring",
+ g_param_spec_double ("epsilon", NULL, NULL,
0,
G_MAXDOUBLE,
0.001,
@@ -501,9 +491,7 @@ adw_spring_animation_class_init (AdwSpringAnimationClass *klass)
* Since: 1.0
*/
props[PROP_CLAMP] =
- g_param_spec_boolean ("clamp",
- "Clamp",
- "Whether the animation should be clamped",
+ g_param_spec_boolean ("clamp", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -517,9 +505,7 @@ adw_spring_animation_class_init (AdwSpringAnimationClass *klass)
* Since: 1.0
*/
props[PROP_ESTIMATED_DURATION] =
- g_param_spec_uint ("estimated-duration",
- "Estimated duration",
- "Estimated duration of the animation in milliseconds",
+ g_param_spec_uint ("estimated-duration", NULL, NULL,
0,
ADW_DURATION_INFINITE,
0,
@@ -533,9 +519,7 @@ adw_spring_animation_class_init (AdwSpringAnimationClass *klass)
* Since: 1.0
*/
props[PROP_VELOCITY] =
- g_param_spec_double ("velocity",
- "Velocity",
- "The current velocity of the animation",
+ g_param_spec_double ("velocity", NULL, NULL,
-G_MAXDOUBLE,
G_MAXDOUBLE,
0,
diff --git a/src/adw-squeezer.c b/src/adw-squeezer.c
index a51a740e..a52d97e0 100644
--- a/src/adw-squeezer.c
+++ b/src/adw-squeezer.c
@@ -224,9 +224,7 @@ adw_squeezer_page_class_init (AdwSqueezerPageClass *klass)
* Since: 1.0
*/
page_props[PAGE_PROP_CHILD] =
- g_param_spec_object ("child",
- "Child",
- "The child of the page",
+ g_param_spec_object ("child", NULL, NULL,
GTK_TYPE_WIDGET,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
@@ -247,9 +245,7 @@ adw_squeezer_page_class_init (AdwSqueezerPageClass *klass)
* Since: 1.0
*/
page_props[PAGE_PROP_ENABLED] =
- g_param_spec_boolean ("enabled",
- "Enabled",
- "Whether the child is enabled",
+ g_param_spec_boolean ("enabled", NULL, NULL,
TRUE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -1064,9 +1060,7 @@ adw_squeezer_class_init (AdwSqueezerClass *klass)
* Since: 1.0
*/
props[PROP_HOMOGENEOUS] =
- g_param_spec_boolean ("homogeneous",
- "Homogeneous",
- "Whether all children have the same size for the opposite orientation",
+ g_param_spec_boolean ("homogeneous", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -1086,9 +1080,7 @@ adw_squeezer_class_init (AdwSqueezerClass *klass)
* Since: 1.0
*/
props[PROP_SWITCH_THRESHOLD_POLICY] =
- g_param_spec_enum ("switch-threshold-policy",
- "Switch Threshold Policy",
- "Determines when the leaflet will fold",
+ g_param_spec_enum ("switch-threshold-policy", NULL, NULL,
ADW_TYPE_FOLD_THRESHOLD_POLICY,
ADW_FOLD_THRESHOLD_POLICY_NATURAL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -1101,9 +1093,7 @@ adw_squeezer_class_init (AdwSqueezerClass *klass)
* Since: 1.0
*/
props[PROP_VISIBLE_CHILD] =
- g_param_spec_object ("visible-child",
- "Visible child",
- "The currently visible child",
+ g_param_spec_object ("visible-child", NULL, NULL,
GTK_TYPE_WIDGET,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
@@ -1119,9 +1109,7 @@ adw_squeezer_class_init (AdwSqueezerClass *klass)
* Since: 1.0
*/
props[PROP_ALLOW_NONE] =
- g_param_spec_boolean ("allow-none",
- "Allow none",
- "Whether to allow squeezing beyond the last child's minimum size",
+ g_param_spec_boolean ("allow-none", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -1133,9 +1121,7 @@ adw_squeezer_class_init (AdwSqueezerClass *klass)
* Since: 1.0
*/
props[PROP_TRANSITION_DURATION] =
- g_param_spec_uint ("transition-duration",
- "Transition duration",
- "The animation duration, in milliseconds",
+ g_param_spec_uint ("transition-duration", NULL, NULL,
0, G_MAXUINT, 200,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -1147,9 +1133,7 @@ adw_squeezer_class_init (AdwSqueezerClass *klass)
* Since: 1.0
*/
props[PROP_TRANSITION_TYPE] =
- g_param_spec_enum ("transition-type",
- "Transition type",
- "The type of animation used for transitions between children",
+ g_param_spec_enum ("transition-type", NULL, NULL,
ADW_TYPE_SQUEEZER_TRANSITION_TYPE,
ADW_SQUEEZER_TRANSITION_TYPE_NONE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -1166,9 +1150,7 @@ adw_squeezer_class_init (AdwSqueezerClass *klass)
* Since: 1.0
*/
props[PROP_TRANSITION_RUNNING] =
- g_param_spec_boolean ("transition-running",
- "Transition running",
- "Whether a transition is currently running",
+ g_param_spec_boolean ("transition-running", NULL, NULL,
FALSE,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
@@ -1185,9 +1167,7 @@ adw_squeezer_class_init (AdwSqueezerClass *klass)
* Since: 1.0
*/
props[PROP_INTERPOLATE_SIZE] =
- g_param_spec_boolean ("interpolate-size",
- "Interpolate size",
- "Whether the squeezer interpolates its size when changing the visible child",
+ g_param_spec_boolean ("interpolate-size", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -1205,9 +1185,7 @@ adw_squeezer_class_init (AdwSqueezerClass *klass)
* Since: 1.0
*/
props[PROP_XALIGN] =
- g_param_spec_float ("xalign",
- "X align",
- "The horizontal alignment, from 0 (start) to 1 (end)",
+ g_param_spec_float ("xalign", NULL, NULL,
0.0, 1.0,
0.5,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -1226,9 +1204,7 @@ adw_squeezer_class_init (AdwSqueezerClass *klass)
* Since: 1.0
*/
props[PROP_YALIGN] =
- g_param_spec_float ("yalign",
- "Y align",
- "The vertical alignment, from 0 (top) to 1 (bottom)",
+ g_param_spec_float ("yalign", NULL, NULL,
0.0, 1.0,
0.5,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -1244,9 +1220,7 @@ adw_squeezer_class_init (AdwSqueezerClass *klass)
* Since: 1.0
*/
props[PROP_PAGES] =
- g_param_spec_object ("pages",
- "Pages",
- "A selection model with the squeezer's pages",
+ g_param_spec_object ("pages", NULL, NULL,
GTK_TYPE_SELECTION_MODEL,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
diff --git a/src/adw-status-page.c b/src/adw-status-page.c
index 17565e02..1c7daf03 100644
--- a/src/adw-status-page.c
+++ b/src/adw-status-page.c
@@ -199,9 +199,7 @@ adw_status_page_class_init (AdwStatusPageClass *klass)
* Since: 1.0
*/
props[PROP_ICON_NAME] =
- g_param_spec_string ("icon-name",
- "Icon name",
- "The name of the icon to be used",
+ g_param_spec_string ("icon-name", NULL, NULL,
NULL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -215,9 +213,7 @@ adw_status_page_class_init (AdwStatusPageClass *klass)
* Since: 1.0
*/
props[PROP_PAINTABLE] =
- g_param_spec_object ("paintable",
- "Paintable",
- "The GdkPaintable to be used",
+ g_param_spec_object ("paintable", NULL, NULL,
GDK_TYPE_PAINTABLE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -229,9 +225,7 @@ adw_status_page_class_init (AdwStatusPageClass *klass)
* Since: 1.0
*/
props[PROP_TITLE] =
- g_param_spec_string ("title",
- "Title",
- "The title to be displayed below the icon",
+ g_param_spec_string ("title", NULL, NULL,
"",
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -243,9 +237,7 @@ adw_status_page_class_init (AdwStatusPageClass *klass)
* Since: 1.0
*/
props[PROP_DESCRIPTION] =
- g_param_spec_string ("description",
- "Description",
- "The description to be displayed below the title",
+ g_param_spec_string ("description", NULL, NULL,
"",
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -257,9 +249,7 @@ adw_status_page_class_init (AdwStatusPageClass *klass)
* Since: 1.0
*/
props[PROP_CHILD] =
- g_param_spec_object ("child",
- "Child",
- "The child widget",
+ g_param_spec_object ("child", NULL, NULL,
GTK_TYPE_WIDGET,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/src/adw-style-manager.c b/src/adw-style-manager.c
index d9fffe40..e7b4e446 100644
--- a/src/adw-style-manager.c
+++ b/src/adw-style-manager.c
@@ -391,9 +391,7 @@ adw_style_manager_class_init (AdwStyleManagerClass *klass)
* Since: 1.0
*/
props[PROP_DISPLAY] =
- g_param_spec_object ("display",
- "Display",
- "The display the style manager is associated with",
+ g_param_spec_object ("display", NULL, NULL,
GDK_TYPE_DISPLAY,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
@@ -435,9 +433,7 @@ adw_style_manager_class_init (AdwStyleManagerClass *klass)
* Since: 1.0
*/
props[PROP_COLOR_SCHEME] =
- g_param_spec_enum ("color-scheme",
- "Color Scheme",
- "The current color scheme",
+ g_param_spec_enum ("color-scheme", NULL, NULL,
ADW_TYPE_COLOR_SCHEME,
ADW_COLOR_SCHEME_DEFAULT,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -456,9 +452,7 @@ adw_style_manager_class_init (AdwStyleManagerClass *klass)
* Since: 1.0
*/
props[PROP_SYSTEM_SUPPORTS_COLOR_SCHEMES] =
- g_param_spec_boolean ("system-supports-color-schemes",
- "System supports color schemes",
- "Whether the system supports color schemes",
+ g_param_spec_boolean ("system-supports-color-schemes", NULL, NULL,
FALSE,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
@@ -473,9 +467,7 @@ adw_style_manager_class_init (AdwStyleManagerClass *klass)
* Since: 1.0
*/
props[PROP_DARK] =
- g_param_spec_boolean ("dark",
- "Dark",
- "Whether the application is using dark appearance",
+ g_param_spec_boolean ("dark", NULL, NULL,
FALSE,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
@@ -489,9 +481,7 @@ adw_style_manager_class_init (AdwStyleManagerClass *klass)
* Since: 1.0
*/
props[PROP_HIGH_CONTRAST] =
- g_param_spec_boolean ("high-contrast",
- "High Contrast",
- "Whether the application is using high contrast appearance",
+ g_param_spec_boolean ("high-contrast", NULL, NULL,
FALSE,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
diff --git a/src/adw-swipe-tracker.c b/src/adw-swipe-tracker.c
index c2f5d0c0..244f6100 100644
--- a/src/adw-swipe-tracker.c
+++ b/src/adw-swipe-tracker.c
@@ -1019,9 +1019,7 @@ adw_swipe_tracker_class_init (AdwSwipeTrackerClass *klass)
* Since: 1.0
*/
props[PROP_SWIPEABLE] =
- g_param_spec_object ("swipeable",
- "Swipeable",
- "The widget the swipe tracker is attached to",
+ g_param_spec_object ("swipeable", NULL, NULL,
ADW_TYPE_SWIPEABLE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
@@ -1036,9 +1034,7 @@ adw_swipe_tracker_class_init (AdwSwipeTrackerClass *klass)
* Since: 1.0
*/
props[PROP_ENABLED] =
- g_param_spec_boolean ("enabled",
- "Enabled",
- "Whether the swipe tracker is enabled",
+ g_param_spec_boolean ("enabled", NULL, NULL,
TRUE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -1053,9 +1049,7 @@ adw_swipe_tracker_class_init (AdwSwipeTrackerClass *klass)
* Since: 1.0
*/
props[PROP_REVERSED] =
- g_param_spec_boolean ("reversed",
- "Reversed",
- "Whether to reverse the swipe direction",
+ g_param_spec_boolean ("reversed", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -1067,9 +1061,7 @@ adw_swipe_tracker_class_init (AdwSwipeTrackerClass *klass)
* Since: 1.0
*/
props[PROP_ALLOW_MOUSE_DRAG] =
- g_param_spec_boolean ("allow-mouse-drag",
- "Allow mouse drag",
- "Whether to allow dragging with mouse pointer",
+ g_param_spec_boolean ("allow-mouse-drag", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -1084,9 +1076,7 @@ adw_swipe_tracker_class_init (AdwSwipeTrackerClass *klass)
* Since: 1.0
*/
props[PROP_ALLOW_LONG_SWIPES] =
- g_param_spec_boolean ("allow-long-swipes",
- "Allow long swipes",
- "Whether to allow swiping for more than one snap point at a time",
+ g_param_spec_boolean ("allow-long-swipes", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/src/adw-tab-bar.c b/src/adw-tab-bar.c
index ab76cf45..6b163633 100644
--- a/src/adw-tab-bar.c
+++ b/src/adw-tab-bar.c
@@ -411,9 +411,7 @@ adw_tab_bar_class_init (AdwTabBarClass *klass)
* Since: 1.0
*/
props[PROP_VIEW] =
- g_param_spec_object ("view",
- "View",
- "The tab view the tab bar controls.",
+ g_param_spec_object ("view", NULL, NULL,
ADW_TYPE_TAB_VIEW,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -425,9 +423,7 @@ adw_tab_bar_class_init (AdwTabBarClass *klass)
* Since: 1.0
*/
props[PROP_START_ACTION_WIDGET] =
- g_param_spec_object ("start-action-widget",
- "Start action widget",
- "The widget shown before the tabs",
+ g_param_spec_object ("start-action-widget", NULL, NULL,
GTK_TYPE_WIDGET,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -439,9 +435,7 @@ adw_tab_bar_class_init (AdwTabBarClass *klass)
* Since: 1.0
*/
props[PROP_END_ACTION_WIDGET] =
- g_param_spec_object ("end-action-widget",
- "End action widget",
- "The widget shown after the tabs",
+ g_param_spec_object ("end-action-widget", NULL, NULL,
GTK_TYPE_WIDGET,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -458,9 +452,7 @@ adw_tab_bar_class_init (AdwTabBarClass *klass)
* Since: 1.0
*/
props[PROP_AUTOHIDE] =
- g_param_spec_boolean ("autohide",
- "Autohide",
- "Whether the tabs automatically hide",
+ g_param_spec_boolean ("autohide", NULL, NULL,
TRUE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -474,9 +466,7 @@ adw_tab_bar_class_init (AdwTabBarClass *klass)
* Since: 1.0
*/
props[PROP_TABS_REVEALED] =
- g_param_spec_boolean ("tabs-revealed",
- "Tabs revealed",
- "Whether the tabs are currently revealed",
+ g_param_spec_boolean ("tabs-revealed", NULL, NULL,
FALSE,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
@@ -491,9 +481,7 @@ adw_tab_bar_class_init (AdwTabBarClass *klass)
* Since: 1.0
*/
props[PROP_EXPAND_TABS] =
- g_param_spec_boolean ("expand-tabs",
- "Expand tabs",
- "Whether tabs expand to full width",
+ g_param_spec_boolean ("expand-tabs", NULL, NULL,
TRUE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -508,9 +496,7 @@ adw_tab_bar_class_init (AdwTabBarClass *klass)
* Since: 1.0
*/
props[PROP_INVERTED] =
- g_param_spec_boolean ("inverted",
- "Inverted",
- "Whether tabs use inverted layout",
+ g_param_spec_boolean ("inverted", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -524,9 +510,7 @@ adw_tab_bar_class_init (AdwTabBarClass *klass)
* Since: 1.0
*/
props[PROP_IS_OVERFLOWING] =
- g_param_spec_boolean ("is-overflowing",
- "Is overflowing",
- "Whether the tab bar is overflowing",
+ g_param_spec_boolean ("is-overflowing", NULL, NULL,
FALSE,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
diff --git a/src/adw-tab-box.c b/src/adw-tab-box.c
index 0de72872..4dfc5b0d 100644
--- a/src/adw-tab-box.c
+++ b/src/adw-tab-box.c
@@ -3584,30 +3584,22 @@ adw_tab_box_class_init (AdwTabBoxClass *klass)
widget_class->direction_changed = adw_tab_box_direction_changed;
props[PROP_PINNED] =
- g_param_spec_boolean ("pinned",
- "Pinned",
- "Pinned",
+ g_param_spec_boolean ("pinned", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
props[PROP_TAB_BAR] =
- g_param_spec_object ("tab-bar",
- "Tab Bar",
- "Tab Bar",
+ g_param_spec_object ("tab-bar", NULL, NULL,
ADW_TYPE_TAB_BAR,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
props[PROP_VIEW] =
- g_param_spec_object ("view",
- "View",
- "View",
+ g_param_spec_object ("view", NULL, NULL,
ADW_TYPE_TAB_VIEW,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
props[PROP_RESIZE_FROZEN] =
- g_param_spec_boolean ("resize-frozen",
- "Resize Frozen",
- "Resize Frozen",
+ g_param_spec_boolean ("resize-frozen", NULL, NULL,
FALSE,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
diff --git a/src/adw-tab-view.c b/src/adw-tab-view.c
index 3dc00db5..99dc3a7b 100644
--- a/src/adw-tab-view.c
+++ b/src/adw-tab-view.c
@@ -386,9 +386,7 @@ adw_tab_page_class_init (AdwTabPageClass *klass)
* Since: 1.0
*/
page_props[PAGE_PROP_CHILD] =
- g_param_spec_object ("child",
- "Child",
- "The child of the page",
+ g_param_spec_object ("child", NULL, NULL,
GTK_TYPE_WIDGET,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
@@ -402,9 +400,7 @@ adw_tab_page_class_init (AdwTabPageClass *klass)
* Since: 1.0
*/
page_props[PAGE_PROP_PARENT] =
- g_param_spec_object ("parent",
- "Parent",
- "The parent page of the page",
+ g_param_spec_object ("parent", NULL, NULL,
ADW_TYPE_TAB_PAGE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS |
G_PARAM_EXPLICIT_NOTIFY);
@@ -416,9 +412,7 @@ adw_tab_page_class_init (AdwTabPageClass *klass)
* Since: 1.0
*/
page_props[PAGE_PROP_SELECTED] =
- g_param_spec_boolean ("selected",
- "Selected",
- "Whether the page is selected",
+ g_param_spec_boolean ("selected", NULL, NULL,
FALSE,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
@@ -432,9 +426,7 @@ adw_tab_page_class_init (AdwTabPageClass *klass)
* Since: 1.0
*/
page_props[PAGE_PROP_PINNED] =
- g_param_spec_boolean ("pinned",
- "Pinned",
- "Whether the page is pinned",
+ g_param_spec_boolean ("pinned", NULL, NULL,
FALSE,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
@@ -449,9 +441,7 @@ adw_tab_page_class_init (AdwTabPageClass *klass)
* Since: 1.0
*/
page_props[PAGE_PROP_TITLE] =
- g_param_spec_string ("title",
- "Title",
- "The title of the page",
+ g_param_spec_string ("title", NULL, NULL,
"",
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -468,9 +458,7 @@ adw_tab_page_class_init (AdwTabPageClass *klass)
* Since: 1.0
*/
page_props[PAGE_PROP_TOOLTIP] =
- g_param_spec_string ("tooltip",
- "Tooltip",
- "The tooltip of the page",
+ g_param_spec_string ("tooltip", NULL, NULL,
"",
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -487,9 +475,7 @@ adw_tab_page_class_init (AdwTabPageClass *klass)
* Since: 1.0
*/
page_props[PAGE_PROP_ICON] =
- g_param_spec_object ("icon",
- "Icon",
- "The icon of the page",
+ g_param_spec_object ("icon", NULL, NULL,
G_TYPE_ICON,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -506,9 +492,7 @@ adw_tab_page_class_init (AdwTabPageClass *klass)
* Since: 1.0
*/
page_props[PAGE_PROP_LOADING] =
- g_param_spec_boolean ("loading",
- "Loading",
- "Whether the page is loading",
+ g_param_spec_boolean ("loading", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -531,9 +515,7 @@ adw_tab_page_class_init (AdwTabPageClass *klass)
* Since: 1.0
*/
page_props[PAGE_PROP_INDICATOR_ICON] =
- g_param_spec_object ("indicator-icon",
- "Indicator icon",
- "An indicator icon for the page",
+ g_param_spec_object ("indicator-icon", NULL, NULL,
G_TYPE_ICON,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -550,9 +532,7 @@ adw_tab_page_class_init (AdwTabPageClass *klass)
* Since: 1.0
*/
page_props[PAGE_PROP_INDICATOR_ACTIVATABLE] =
- g_param_spec_boolean ("indicator-activatable",
- "Indicator activatable",
- "Whether the indicator icon is activatable",
+ g_param_spec_boolean ("indicator-activatable", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -568,9 +548,7 @@ adw_tab_page_class_init (AdwTabPageClass *klass)
* Since: 1.0
*/
page_props[PAGE_PROP_NEEDS_ATTENTION] =
- g_param_spec_boolean ("needs-attention",
- "Needs attention",
- "Whether the page needs attention",
+ g_param_spec_boolean ("needs-attention", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -1416,9 +1394,7 @@ adw_tab_view_class_init (AdwTabViewClass *klass)
* Since: 1.0
*/
props[PROP_N_PAGES] =
- g_param_spec_int ("n-pages",
- "Number of pages",
- "The number of pages in the tab view",
+ g_param_spec_int ("n-pages", NULL, NULL,
0, G_MAXINT, 0,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
@@ -1432,9 +1408,7 @@ adw_tab_view_class_init (AdwTabViewClass *klass)
* Since: 1.0
*/
props[PROP_N_PINNED_PAGES] =
- g_param_spec_int ("n-pinned-pages",
- "Number of pinned pages",
- "The number of pinned pages in the tab view",
+ g_param_spec_int ("n-pinned-pages", NULL, NULL,
0, G_MAXINT, 0,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
@@ -1452,9 +1426,7 @@ adw_tab_view_class_init (AdwTabViewClass *klass)
* Since: 1.0
*/
props[PROP_IS_TRANSFERRING_PAGE] =
- g_param_spec_boolean ("is-transferring-page",
- "Is transferring page",
- "Whether a page is being transferred",
+ g_param_spec_boolean ("is-transferring-page", NULL, NULL,
FALSE,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
@@ -1466,9 +1438,7 @@ adw_tab_view_class_init (AdwTabViewClass *klass)
* Since: 1.0
*/
props[PROP_SELECTED_PAGE] =
- g_param_spec_object ("selected-page",
- "Selected page",
- "The currently selected page",
+ g_param_spec_object ("selected-page", NULL, NULL,
ADW_TYPE_TAB_PAGE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -1490,9 +1460,7 @@ adw_tab_view_class_init (AdwTabViewClass *klass)
* Since: 1.0
*/
props[PROP_DEFAULT_ICON] =
- g_param_spec_object ("default-icon",
- "Default icon",
- "Default page icon",
+ g_param_spec_object ("default-icon", NULL, NULL,
G_TYPE_ICON,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -1508,9 +1476,7 @@ adw_tab_view_class_init (AdwTabViewClass *klass)
* Since: 1.0
*/
props[PROP_MENU_MODEL] =
- g_param_spec_object ("menu-model",
- "Menu model",
- "Tab context menu model",
+ g_param_spec_object ("menu-model", NULL, NULL,
G_TYPE_MENU_MODEL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -1526,9 +1492,7 @@ adw_tab_view_class_init (AdwTabViewClass *klass)
* Since: 1.0
*/
props[PROP_PAGES] =
- g_param_spec_object ("pages",
- "Pages",
- "A selection model with the tab view's pages",
+ g_param_spec_object ("pages", NULL, NULL,
GTK_TYPE_SELECTION_MODEL,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
diff --git a/src/adw-tab.c b/src/adw-tab.c
index 603b1397..3c9d71ca 100644
--- a/src/adw-tab.c
+++ b/src/adw-tab.c
@@ -781,37 +781,27 @@ adw_tab_class_init (AdwTabClass *klass)
widget_class->unrealize = adw_tab_unrealize;
props[PROP_VIEW] =
- g_param_spec_object ("view",
- "View",
- "View",
+ g_param_spec_object ("view", NULL, NULL,
ADW_TYPE_TAB_VIEW,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
props[PROP_PINNED] =
- g_param_spec_boolean ("pinned",
- "Pinned",
- "Pinned",
+ g_param_spec_boolean ("pinned", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
props[PROP_DRAGGING] =
- g_param_spec_boolean ("dragging",
- "Dragging",
- "Dragging",
+ g_param_spec_boolean ("dragging", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
props[PROP_PAGE] =
- g_param_spec_object ("page",
- "Page",
- "Page",
+ g_param_spec_object ("page", NULL, NULL,
ADW_TYPE_TAB_PAGE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
props[PROP_INVERTED] =
- g_param_spec_boolean ("inverted",
- "Inverted",
- "Inverted",
+ g_param_spec_boolean ("inverted", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/src/adw-timed-animation.c b/src/adw-timed-animation.c
index 2f90ab8f..8344af2d 100644
--- a/src/adw-timed-animation.c
+++ b/src/adw-timed-animation.c
@@ -224,9 +224,7 @@ adw_timed_animation_class_init (AdwTimedAnimationClass *klass)
* Since: 1.0
*/
props[PROP_VALUE_FROM] =
- g_param_spec_double ("value-from",
- "Initial value",
- "The value to animate from",
+ g_param_spec_double ("value-from", NULL, NULL,
-G_MAXDOUBLE,
G_MAXDOUBLE,
0,
@@ -246,9 +244,7 @@ adw_timed_animation_class_init (AdwTimedAnimationClass *klass)
* Since: 1.0
*/
props[PROP_VALUE_TO] =
- g_param_spec_double ("value-to",
- "Final value",
- "The value to animate to",
+ g_param_spec_double ("value-to", NULL, NULL,
-G_MAXDOUBLE,
G_MAXDOUBLE,
0,
@@ -267,9 +263,7 @@ adw_timed_animation_class_init (AdwTimedAnimationClass *klass)
* Since: 1.0
*/
props[PROP_DURATION] =
- g_param_spec_uint ("duration",
- "Duration",
- "Duration of the animation in milliseconds",
+ g_param_spec_uint ("duration", NULL, NULL,
0,
ADW_DURATION_INFINITE,
0,
@@ -287,9 +281,7 @@ adw_timed_animation_class_init (AdwTimedAnimationClass *klass)
* Since: 1.0
*/
props[PROP_EASING] =
- g_param_spec_enum ("easing",
- "Easing",
- "Easing function used in the animation",
+ g_param_spec_enum ("easing", NULL, NULL,
ADW_TYPE_EASING,
ADW_EASE_OUT_CUBIC,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS |
G_PARAM_EXPLICIT_NOTIFY);
@@ -304,9 +296,7 @@ adw_timed_animation_class_init (AdwTimedAnimationClass *klass)
* Since: 1.0
*/
props[PROP_REPEAT_COUNT] =
- g_param_spec_uint ("repeat-count",
- "Repeat count",
- "Number of times the animation will play",
+ g_param_spec_uint ("repeat-count", NULL, NULL,
0,
G_MAXUINT,
1,
@@ -320,9 +310,7 @@ adw_timed_animation_class_init (AdwTimedAnimationClass *klass)
* Since: 1.0
*/
props[PROP_REVERSE] =
- g_param_spec_boolean ("reverse",
- "Reverse",
- "Whether the animation plays backwards",
+ g_param_spec_boolean ("reverse", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS |
G_PARAM_EXPLICIT_NOTIFY);
@@ -334,9 +322,7 @@ adw_timed_animation_class_init (AdwTimedAnimationClass *klass)
* Since: 1.0
*/
props[PROP_ALTERNATE] =
- g_param_spec_boolean ("alternate",
- "Alternate",
- "Whether the animation changes direction on every iteration",
+ g_param_spec_boolean ("alternate", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS |
G_PARAM_EXPLICIT_NOTIFY);
diff --git a/src/adw-toast-overlay.c b/src/adw-toast-overlay.c
index 1ecfaf05..b1c5dd7b 100644
--- a/src/adw-toast-overlay.c
+++ b/src/adw-toast-overlay.c
@@ -452,9 +452,7 @@ adw_toast_overlay_class_init (AdwToastOverlayClass *klass)
* Since: 1.0
*/
props[PROP_CHILD] =
- g_param_spec_object ("child",
- "Child",
- "The child widget",
+ g_param_spec_object ("child", NULL, NULL,
GTK_TYPE_WIDGET,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/src/adw-toast-widget.c b/src/adw-toast-widget.c
index 1cc2e71b..2e9b832a 100644
--- a/src/adw-toast-widget.c
+++ b/src/adw-toast-widget.c
@@ -227,9 +227,7 @@ adw_toast_widget_class_init (AdwToastWidgetClass *klass)
object_class->set_property = adw_toast_widget_set_property;
props[PROP_TOAST] =
- g_param_spec_object ("toast",
- "Toast",
- "The displayed toast",
+ g_param_spec_object ("toast", NULL, NULL,
ADW_TYPE_TOAST,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
diff --git a/src/adw-toast.c b/src/adw-toast.c
index c8c2f5f0..3af4ac6d 100644
--- a/src/adw-toast.c
+++ b/src/adw-toast.c
@@ -306,9 +306,7 @@ adw_toast_class_init (AdwToastClass *klass)
* Since: 1.0
*/
props[PROP_TITLE] =
- g_param_spec_string ("title",
- "Title",
- "The title of the toast",
+ g_param_spec_string ("title", NULL, NULL,
"",
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -326,9 +324,7 @@ adw_toast_class_init (AdwToastClass *klass)
* Since: 1.0
*/
props[PROP_BUTTON_LABEL] =
- g_param_spec_string ("button-label",
- "Button Label",
- "The label to show on the button",
+ g_param_spec_string ("button-label", NULL, NULL,
NULL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -344,9 +340,7 @@ adw_toast_class_init (AdwToastClass *klass)
* Since: 1.0
*/
props[PROP_ACTION_NAME] =
- g_param_spec_string ("action-name",
- "Action Name",
- "The name of the associated action",
+ g_param_spec_string ("action-name", NULL, NULL,
NULL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -360,9 +354,7 @@ adw_toast_class_init (AdwToastClass *klass)
* Since: 1.0
*/
props[PROP_ACTION_TARGET] =
- g_param_spec_variant ("action-target",
- "Action Target Value",
- "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 | G_PARAM_EXPLICIT_NOTIFY);
@@ -383,9 +375,7 @@ adw_toast_class_init (AdwToastClass *klass)
* Since: 1.0
*/
props[PROP_PRIORITY] =
- g_param_spec_enum ("priority",
- "Priority",
- "The priority of the toast",
+ g_param_spec_enum ("priority", NULL, NULL,
ADW_TYPE_TOAST_PRIORITY,
ADW_TOAST_PRIORITY_NORMAL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -404,9 +394,7 @@ adw_toast_class_init (AdwToastClass *klass)
* Since: 1.0
*/
props[PROP_TIMEOUT] =
- g_param_spec_uint ("timeout",
- "Timeout",
- "The timeout of the toast, in seconds",
+ g_param_spec_uint ("timeout", NULL, NULL,
0, G_MAXUINT, 5,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -423,9 +411,7 @@ adw_toast_class_init (AdwToastClass *klass)
* Since: 1.2
*/
props[PROP_CUSTOM_TITLE] =
- g_param_spec_object ("custom-title",
- "Custom Title",
- "The custom title widget",
+ g_param_spec_object ("custom-title", NULL, NULL,
GTK_TYPE_WIDGET,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/src/adw-view-stack.c b/src/adw-view-stack.c
index 25e946d9..ca3f43e1 100644
--- a/src/adw-view-stack.c
+++ b/src/adw-view-stack.c
@@ -260,9 +260,7 @@ adw_view_stack_page_class_init (AdwViewStackPageClass *class)
* Since: 1.0
*/
page_props[PAGE_PROP_CHILD] =
- g_param_spec_object ("child",
- "Child",
- "The child of the page",
+ g_param_spec_object ("child", NULL, NULL,
GTK_TYPE_WIDGET,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
@@ -274,9 +272,7 @@ adw_view_stack_page_class_init (AdwViewStackPageClass *class)
* Since: 1.0
*/
page_props[PAGE_PROP_NAME] =
- g_param_spec_string ("name",
- "Name",
- "The name of the child page",
+ g_param_spec_string ("name", NULL, NULL,
NULL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -288,9 +284,7 @@ adw_view_stack_page_class_init (AdwViewStackPageClass *class)
* Since: 1.0
*/
page_props[PAGE_PROP_TITLE] =
- g_param_spec_string ("title",
- "Title",
- "The title of the child page",
+ g_param_spec_string ("title", NULL, NULL,
NULL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -302,9 +296,7 @@ adw_view_stack_page_class_init (AdwViewStackPageClass *class)
* Since: 1.0
*/
page_props[PAGE_PROP_ICON_NAME] =
- g_param_spec_string ("icon-name",
- "Icon name",
- "The icon name of the child page",
+ g_param_spec_string ("icon-name", NULL, NULL,
NULL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -318,9 +310,7 @@ adw_view_stack_page_class_init (AdwViewStackPageClass *class)
* Since: 1.0
*/
page_props[PAGE_PROP_NEEDS_ATTENTION] =
- g_param_spec_boolean ("needs-attention",
- "Needs Attention",
- "Whether the page requires the user attention",
+ g_param_spec_boolean ("needs-attention", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -337,9 +327,7 @@ adw_view_stack_page_class_init (AdwViewStackPageClass *class)
* Since: 1.0
*/
page_props[PAGE_PROP_BADGE_NUMBER] =
- g_param_spec_uint ("badge-number",
- "Badge_number",
- "A number associated with the page",
+ g_param_spec_uint ("badge-number", NULL, NULL,
0, G_MAXUINT, 0,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -354,9 +342,7 @@ adw_view_stack_page_class_init (AdwViewStackPageClass *class)
* Since: 1.0
*/
page_props[PAGE_PROP_VISIBLE] =
- g_param_spec_boolean ("visible",
- "Visible",
- "Whether this page is visible",
+ g_param_spec_boolean ("visible", NULL, NULL,
TRUE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -368,9 +354,7 @@ adw_view_stack_page_class_init (AdwViewStackPageClass *class)
* Since: 1.0
*/
page_props[PAGE_PROP_USE_UNDERLINE] =
- g_param_spec_boolean ("use-underline",
- "Use underline",
- "Whether an embedded underline in the title label indicates a mnemonic",
+ g_param_spec_boolean ("use-underline", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -921,9 +905,7 @@ adw_view_stack_class_init (AdwViewStackClass *klass)
* Since: 1.0
*/
props[PROP_HHOMOGENEOUS] =
- g_param_spec_boolean ("hhomogeneous",
- "Horizontally homogeneous",
- "Whether the stack allocates the same width for all children",
+ g_param_spec_boolean ("hhomogeneous", NULL, NULL,
TRUE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -938,9 +920,7 @@ adw_view_stack_class_init (AdwViewStackClass *klass)
* Since: 1.0
*/
props[PROP_VHOMOGENEOUS] =
- g_param_spec_boolean ("vhomogeneous",
- "Vertically homogeneous",
- "Whether the stack allocates the same height for all children",
+ g_param_spec_boolean ("vhomogeneous", NULL, NULL,
TRUE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -952,9 +932,7 @@ adw_view_stack_class_init (AdwViewStackClass *klass)
* Since: 1.0
*/
props[PROP_VISIBLE_CHILD] =
- g_param_spec_object ("visible-child",
- "Visible child",
- "The widget currently visible in the stack",
+ g_param_spec_object ("visible-child", NULL, NULL,
GTK_TYPE_WIDGET,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -968,9 +946,7 @@ adw_view_stack_class_init (AdwViewStackClass *klass)
* Since: 1.0
*/
props[PROP_VISIBLE_CHILD_NAME] =
- g_param_spec_string ("visible-child-name",
- "Name of visible child",
- "The name of the widget currently visible in the stack",
+ g_param_spec_string ("visible-child-name", NULL, NULL,
NULL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -984,9 +960,7 @@ adw_view_stack_class_init (AdwViewStackClass *klass)
* page.
*/
props[PROP_PAGES] =
- g_param_spec_object ("pages",
- "Pages",
- "A selection model with the stack's pages",
+ g_param_spec_object ("pages", NULL, NULL,
GTK_TYPE_SELECTION_MODEL,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
diff --git a/src/adw-view-switcher-bar.c b/src/adw-view-switcher-bar.c
index ce00f363..ac439fa7 100644
--- a/src/adw-view-switcher-bar.c
+++ b/src/adw-view-switcher-bar.c
@@ -190,9 +190,7 @@ adw_view_switcher_bar_class_init (AdwViewSwitcherBarClass *klass)
* Since: 1.0
*/
props[PROP_STACK] =
- g_param_spec_object ("stack",
- "Stack",
- "The stack the view switcher controls",
+ g_param_spec_object ("stack", NULL, NULL,
ADW_TYPE_VIEW_STACK,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -204,9 +202,7 @@ adw_view_switcher_bar_class_init (AdwViewSwitcherBarClass *klass)
* Since: 1.0
*/
props[PROP_REVEAL] =
- g_param_spec_boolean ("reveal",
- "Reveal",
- "Whether the bar should be revealed or hidden",
+ g_param_spec_boolean ("reveal", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/src/adw-view-switcher-button.c b/src/adw-view-switcher-button.c
index d1798d45..37b60626 100644
--- a/src/adw-view-switcher-button.c
+++ b/src/adw-view-switcher-button.c
@@ -281,9 +281,7 @@ adw_view_switcher_button_class_init (AdwViewSwitcherButtonClass *klass)
* Since: 1.0
*/
props[PROP_ICON_NAME] =
- g_param_spec_string ("icon-name",
- "Icon Name",
- "Icon name for image",
+ g_param_spec_string ("icon-name", NULL, NULL,
"text-x-generic-symbolic",
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -299,9 +297,7 @@ adw_view_switcher_button_class_init (AdwViewSwitcherButtonClass *klass)
* Since: 1.0
*/
props[PROP_NEEDS_ATTENTION] =
- g_param_spec_boolean ("needs-attention",
- "Needs attention",
- "Hint the view needs attention",
+ g_param_spec_boolean ("needs-attention", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -313,9 +309,7 @@ adw_view_switcher_button_class_init (AdwViewSwitcherButtonClass *klass)
* Since: 1.0
*/
props[PROP_BADGE_NUMBER] =
- g_param_spec_uint ("badge-number",
- "Badge number",
- "A number to display as a badge on the button",
+ g_param_spec_uint ("badge-number", NULL, NULL,
0,
G_MAXUINT,
0,
diff --git a/src/adw-view-switcher-title.c b/src/adw-view-switcher-title.c
index ccc9d117..6d80ee3f 100644
--- a/src/adw-view-switcher-title.c
+++ b/src/adw-view-switcher-title.c
@@ -288,9 +288,7 @@ adw_view_switcher_title_class_init (AdwViewSwitcherTitleClass *klass)
* Since: 1.0
*/
props[PROP_STACK] =
- g_param_spec_object ("stack",
- "Stack",
- "The stack the view switcher controls",
+ g_param_spec_object ("stack", NULL, NULL,
ADW_TYPE_VIEW_STACK,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -305,9 +303,7 @@ adw_view_switcher_title_class_init (AdwViewSwitcherTitleClass *klass)
* Since: 1.0
*/
props[PROP_TITLE] =
- g_param_spec_string ("title",
- "Title",
- "The title to display",
+ g_param_spec_string ("title", NULL, NULL,
"",
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -321,9 +317,7 @@ adw_view_switcher_title_class_init (AdwViewSwitcherTitleClass *klass)
* Since: 1.0
*/
props[PROP_SUBTITLE] =
- g_param_spec_string ("subtitle",
- "Subtitle",
- "The subtitle to display",
+ g_param_spec_string ("subtitle", NULL, NULL,
"",
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -342,9 +336,7 @@ adw_view_switcher_title_class_init (AdwViewSwitcherTitleClass *klass)
* Since: 1.0
*/
props[PROP_VIEW_SWITCHER_ENABLED] =
- g_param_spec_boolean ("view-switcher-enabled",
- "View switcher enabled",
- "Whether the view switcher is enabled",
+ g_param_spec_boolean ("view-switcher-enabled", NULL, NULL,
TRUE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -359,9 +351,7 @@ adw_view_switcher_title_class_init (AdwViewSwitcherTitleClass *klass)
* Since: 1.0
*/
props[PROP_TITLE_VISIBLE] =
- g_param_spec_boolean ("title-visible",
- "Title visible",
- "Whether the title is currently visible",
+ g_param_spec_boolean ("title-visible", NULL, NULL,
TRUE,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
diff --git a/src/adw-view-switcher.c b/src/adw-view-switcher.c
index f54cbca3..3043e959 100644
--- a/src/adw-view-switcher.c
+++ b/src/adw-view-switcher.c
@@ -357,9 +357,7 @@ adw_view_switcher_class_init (AdwViewSwitcherClass *klass)
* Since: 1.0
*/
props[PROP_POLICY] =
- g_param_spec_enum ("policy",
- "Policy",
- "The policy to determine the mode to use",
+ g_param_spec_enum ("policy", NULL, NULL,
ADW_TYPE_VIEW_SWITCHER_POLICY,
ADW_VIEW_SWITCHER_POLICY_NARROW,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -372,9 +370,7 @@ adw_view_switcher_class_init (AdwViewSwitcherClass *klass)
* Since: 1.0
*/
props[PROP_STACK] =
- g_param_spec_object ("stack",
- "Stack",
- "The stack the view switcher controls",
+ g_param_spec_object ("stack", NULL, NULL,
ADW_TYPE_VIEW_STACK,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/src/adw-window-title.c b/src/adw-window-title.c
index 4d9cc3c8..19e0047d 100644
--- a/src/adw-window-title.c
+++ b/src/adw-window-title.c
@@ -129,9 +129,7 @@ adw_window_title_class_init (AdwWindowTitleClass *klass)
* Since: 1.0
*/
props[PROP_TITLE] =
- g_param_spec_string ("title",
- "Title",
- "The title to display",
+ g_param_spec_string ("title", NULL, NULL,
"",
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@@ -145,9 +143,7 @@ adw_window_title_class_init (AdwWindowTitleClass *klass)
* Since: 1.0
*/
props[PROP_SUBTITLE] =
- g_param_spec_string ("subtitle",
- "Subtitle",
- "The subtitle to display",
+ g_param_spec_string ("subtitle", NULL, NULL,
"",
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
diff --git a/src/adw-window.c b/src/adw-window.c
index 091fb7c5..3cefe15a 100644
--- a/src/adw-window.c
+++ b/src/adw-window.c
@@ -143,9 +143,7 @@ adw_window_class_init (AdwWindowClass *klass)
* Since: 1.0
*/
props[PROP_CONTENT] =
- g_param_spec_object ("content",
- "Content",
- "The content widget",
+ g_param_spec_object ("content", NULL, NULL,
GTK_TYPE_WIDGET,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]