diff --git a/src/About Dialog/code.rs b/src/About Dialog/code.rs index 5ed8b407..5005c866 100644 --- a/src/About Dialog/code.rs +++ b/src/About Dialog/code.rs @@ -28,7 +28,7 @@ fn on_button_clicked() { dialog.add_link( "Documentation", - "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.5/class.AboutDialog.html", + "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.6/class.AboutDialog.html", ); dialog.add_legal_section( diff --git a/src/About Dialog/main.blp b/src/About Dialog/main.blp index 08cd84c7..17c4351d 100644 --- a/src/About Dialog/main.blp +++ b/src/About Dialog/main.blp @@ -21,7 +21,7 @@ Adw.StatusPage { LinkButton { label: _("API Reference"); - uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.5/class.AboutDialog.html"; + uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.6/class.AboutDialog.html"; } } } diff --git a/src/About Dialog/main.js b/src/About Dialog/main.js index 5678c8d4..f805d312 100644 --- a/src/About Dialog/main.js +++ b/src/About Dialog/main.js @@ -25,7 +25,7 @@ function openAboutDialog() { dialog.add_link( _("Documentation"), - "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.5/class.AboutDialog.html", + "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.6/class.AboutDialog.html", ); dialog.add_legal_section( diff --git a/src/About Dialog/main.py b/src/About Dialog/main.py index ebd764ae..326bb2ce 100644 --- a/src/About Dialog/main.py +++ b/src/About Dialog/main.py @@ -28,7 +28,7 @@ def open_about_window(_widget): dialog.add_link( _("Documentation"), - "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.5/class.AboutDialog.html", + "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.6/class.AboutDialog.html", ) dialog.add_legal_section( diff --git a/src/About Dialog/main.vala b/src/About Dialog/main.vala index ae4cebe3..f4787b16 100644 --- a/src/About Dialog/main.vala +++ b/src/About Dialog/main.vala @@ -25,7 +25,7 @@ public void on_button_clicked () { }; dialog.add_link ( "Documentation", - "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.5/class.AboutDialog.html" + "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.6/class.AboutDialog.html" ); dialog.add_legal_section ( "Fonts", diff --git a/src/Advanced Buttons/main.blp b/src/Advanced Buttons/main.blp index 04c33fe2..186a56a2 100644 --- a/src/Advanced Buttons/main.blp +++ b/src/Advanced Buttons/main.blp @@ -71,7 +71,7 @@ Adw.StatusPage { LinkButton { margin-bottom: 36; label: _("API Reference"); - uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.5/class.SplitButton.html"; + uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.6/class.SplitButton.html"; } Box { @@ -157,7 +157,7 @@ Adw.StatusPage { LinkButton { label: _("API Reference"); - uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.5/class.ButtonContent.html"; + uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.6/class.ButtonContent.html"; } } } diff --git a/src/Animation/main.blp b/src/Animation/main.blp index eb6030af..876a4e41 100644 --- a/src/Animation/main.blp +++ b/src/Animation/main.blp @@ -163,12 +163,12 @@ Adw.Clamp { LinkButton { label: _("Timed Animation"); - uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.5/class.TimedAnimation.html"; + uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.6/class.TimedAnimation.html"; } LinkButton { label: _("Spring Animation"); - uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.5/class.SpringAnimation.html"; + uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.6/class.SpringAnimation.html"; } } } diff --git a/src/Avatar/main.blp b/src/Avatar/main.blp index d8290323..a464d063 100644 --- a/src/Avatar/main.blp +++ b/src/Avatar/main.blp @@ -47,7 +47,7 @@ Adw.StatusPage { LinkButton { label: _("API Reference"); - uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.5/class.Avatar.html"; + uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.6/class.Avatar.html"; } } } diff --git a/src/Banner/main.blp b/src/Banner/main.blp index de9401d6..9b7ae115 100644 --- a/src/Banner/main.blp +++ b/src/Banner/main.blp @@ -36,7 +36,7 @@ Adw.ToastOverlay overlay { LinkButton { label: _("API Reference"); - uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.5/class.Banner.html"; + uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.6/class.Banner.html"; } LinkButton { diff --git a/src/Boxed Lists/main.blp b/src/Boxed Lists/main.blp index 4908f118..51a6235d 100644 --- a/src/Boxed Lists/main.blp +++ b/src/Boxed Lists/main.blp @@ -113,7 +113,7 @@ Adw.StatusPage { LinkButton { margin-top: 24; label: _("API Reference"); - uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.5/boxed-lists.html"; + uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.6/boxed-lists.html"; } LinkButton { diff --git a/src/Breakpoints/main.blp b/src/Breakpoints/main.blp index 103cc678..afb8db3c 100644 --- a/src/Breakpoints/main.blp +++ b/src/Breakpoints/main.blp @@ -41,12 +41,12 @@ Gtk.Window { LinkButton { margin-top: 24; label: _("Breakpoint"); - uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.5/class.Breakpoint.html"; + uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.6/class.Breakpoint.html"; } LinkButton { label: _("Breakpoint Bin"); - uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.5/class.BreakpointBin.html"; + uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.6/class.BreakpointBin.html"; } }; } diff --git a/src/Carousel/main.blp b/src/Carousel/main.blp index 09490702..b5f9efb1 100644 --- a/src/Carousel/main.blp +++ b/src/Carousel/main.blp @@ -21,7 +21,7 @@ Box root_box { LinkButton { label: _("API Reference"); - uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.5/class.Carousel.html"; + uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.6/class.Carousel.html"; margin-top: 12; } } diff --git a/src/Clamp/main.blp b/src/Clamp/main.blp index a1d9ba7f..1b1cb48b 100644 --- a/src/Clamp/main.blp +++ b/src/Clamp/main.blp @@ -26,7 +26,7 @@ Adw.StatusPage { LinkButton { margin-top: 12; label: _("API Reference"); - uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.5/class.Clamp.html"; + uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.6/class.Clamp.html"; } Adw.Clamp clamp { diff --git a/src/Dialog/main.blp b/src/Dialog/main.blp index d59e0170..bc2fbe1d 100644 --- a/src/Dialog/main.blp +++ b/src/Dialog/main.blp @@ -46,7 +46,7 @@ Adw.StatusPage { LinkButton { label: _("API Reference"); - uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.5/class.Dialog.html"; + uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.6/class.Dialog.html"; } LinkButton { diff --git a/src/Header Bar/main.blp b/src/Header Bar/main.blp index efc3a63c..4bb67853 100644 --- a/src/Header Bar/main.blp +++ b/src/Header Bar/main.blp @@ -41,7 +41,7 @@ Gtk.Window { LinkButton { label: _("API Reference"); - uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.5/class.HeaderBar.html"; + uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.6/class.HeaderBar.html"; } LinkButton { diff --git a/src/Message Dialogs/main.blp b/src/Message Dialogs/main.blp index 30ed76bb..2b25a7c0 100644 --- a/src/Message Dialogs/main.blp +++ b/src/Message Dialogs/main.blp @@ -38,7 +38,7 @@ Adw.StatusPage { LinkButton { label: _("API Reference"); - uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.5/class.AlertDialog.html"; + uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.6/class.AlertDialog.html"; } LinkButton { diff --git a/src/Navigation Split View/main.blp b/src/Navigation Split View/main.blp index f8ff62ab..abe9bcc5 100644 --- a/src/Navigation Split View/main.blp +++ b/src/Navigation Split View/main.blp @@ -61,7 +61,7 @@ Adw.Window { LinkButton { label: _("API Reference"); - uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.5/class.NavigationSplitView.html"; + uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.6/class.NavigationSplitView.html"; } }; }; diff --git a/src/Navigation View/main.blp b/src/Navigation View/main.blp index 453fa1bc..e5c4aa45 100644 --- a/src/Navigation View/main.blp +++ b/src/Navigation View/main.blp @@ -89,7 +89,7 @@ Adw.StatusPage { LinkButton { label: _("API Reference"); - uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.5/class.NavigationView.html"; + uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.6/class.NavigationView.html"; } } } diff --git a/src/Overlay Split View/main.blp b/src/Overlay Split View/main.blp index d8de1340..5ffc1f79 100644 --- a/src/Overlay Split View/main.blp +++ b/src/Overlay Split View/main.blp @@ -81,7 +81,7 @@ Adw.Window { LinkButton { label: _("API Reference"); - uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.5/class.OverlaySplitView.html"; + uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.6/class.OverlaySplitView.html"; margin-top: 24; } } diff --git a/src/Preferences Dialog/main.blp b/src/Preferences Dialog/main.blp index 3815ae61..c3fb294d 100644 --- a/src/Preferences Dialog/main.blp +++ b/src/Preferences Dialog/main.blp @@ -27,22 +27,22 @@ Adw.StatusPage { LinkButton { label: _("PreferencesDialog"); - uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.5/class.PreferencesDialog.html"; + uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.6/class.PreferencesDialog.html"; } LinkButton { label: _("PreferencesPage"); - uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.5/class.PreferencesPage.html"; + uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.6/class.PreferencesPage.html"; } LinkButton { label: _("PreferencesGroup"); - uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.5/class.PreferencesGroup.html"; + uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.6/class.PreferencesGroup.html"; } LinkButton { label: _("PreferencesRow"); - uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.5/class.PreferencesRow.html"; + uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.6/class.PreferencesRow.html"; } } } diff --git a/src/Spinner/code.rs b/src/Spinner/code.rs index 131eab9e..109b6cca 100644 --- a/src/Spinner/code.rs +++ b/src/Spinner/code.rs @@ -6,12 +6,12 @@ pub fn main() { let spinner: gtk::Spinner = workbench::builder().object("spinner").unwrap(); button.connect_clicked(move |button| { - if spinner.is_spinning() { + if spinner.is_visible() { button.set_icon_name("media-playback-start"); - spinner.set_spinning(false); + spinner.set_visible(false); } else { - button.set_icon_name("media-playback-pause"); - spinner.set_spinning(true); + button.set_icon_name("media-playback-stop"); + spinner.set_visible(true); } }); } diff --git a/src/Spinner/main.blp b/src/Spinner/main.blp index ff255ca2..d7df9da7 100644 --- a/src/Spinner/main.blp +++ b/src/Spinner/main.blp @@ -8,15 +8,17 @@ Adw.StatusPage { Box { orientation: vertical; halign: center; + spacing: 24; - Spinner spinner { - spinning: true; - margin-bottom: 30; + Adw.Spinner spinner { + halign: center; + valign: center; + width-request: 48; + height-request: 48; } Button button { - icon-name: "media-playback-pause"; - margin-bottom: 30; + icon-name: "media-playback-stop"; halign: center; styles [ @@ -24,19 +26,18 @@ Adw.StatusPage { ] } - LinkButton { - label: _("Tutorial"); - uri: "https://developer.gnome.org/documentation/tutorials/beginners/components/spinner.html"; - } + Box { + orientation: vertical; - LinkButton { - label: _("API Reference"); - uri: "https://docs.gtk.org/gtk4/class.Spinner.html"; - } + LinkButton { + label: _("API Reference"); + uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.6/class.Spinner.html"; + } - LinkButton { - label: _("Human Interface Guidelines"); - uri: "https://developer.gnome.org/hig/patterns/feedback/spinners.html"; + LinkButton { + label: _("Human Interface Guidelines"); + uri: "https://developer.gnome.org/hig/patterns/feedback/spinners.html"; + } } } } diff --git a/src/Spinner/main.js b/src/Spinner/main.js index 83633967..80d76343 100644 --- a/src/Spinner/main.js +++ b/src/Spinner/main.js @@ -2,11 +2,11 @@ const button = workbench.builder.get_object("button"); const spinner = workbench.builder.get_object("spinner"); button.connect("clicked", () => { - if (spinner.spinning === true) { + if (spinner.visible === true) { button.icon_name = "media-playback-start"; - spinner.spinning = false; + spinner.visible = false; } else { - button.icon_name = "media-playback-pause"; - spinner.spinning = true; + button.icon_name = "media-playback-stop"; + spinner.visible = true; } }); diff --git a/src/Spinner/main.json b/src/Spinner/main.json index 7cb696e8..37659ad4 100644 --- a/src/Spinner/main.json +++ b/src/Spinner/main.json @@ -2,5 +2,6 @@ "category": "feedback", "description": "Display loading state", "panels": ["ui", "preview"], - "autorun": true + "autorun": true, + "runtime-version": "47" } diff --git a/src/Spinner/main.py b/src/Spinner/main.py index df2648ef..9b56985b 100644 --- a/src/Spinner/main.py +++ b/src/Spinner/main.py @@ -9,12 +9,12 @@ def button_clicked(_widget): - if spinner.get_spinning(): + if spinner.get_visible(): button.set_icon_name("media-playback-start") - spinner.set_spinning(False) + spinner.set_visible(False) else: - button.set_icon_name("media-playback-pause") - spinner.set_spinning(True) + button.set_icon_name("media-playback-stop") + spinner.set_visible(True) button.connect("clicked", button_clicked) diff --git a/src/Spinner/main.vala b/src/Spinner/main.vala index 7d04d24a..18fd435b 100644 --- a/src/Spinner/main.vala +++ b/src/Spinner/main.vala @@ -7,12 +7,12 @@ public void main () { var spinner = (Gtk.Spinner) workbench.builder.get_object ("spinner"); button.clicked.connect (() => { - if (spinner.spinning) { + if (spinner.visible) { button.icon_name = "media-playback-start"; - spinner.spinning = false; + spinner.visible = false; } else { - button.icon_name = "media-playback-pause"; - spinner.spinning = true; + button.icon_name = "media-playback-stop"; + spinner.visible = true; } }); } diff --git a/src/Status Page/main.blp b/src/Status Page/main.blp index 0a835c93..c33f85a7 100644 --- a/src/Status Page/main.blp +++ b/src/Status Page/main.blp @@ -13,7 +13,7 @@ Adw.StatusPage status_page { LinkButton { label: _("API Reference"); - uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.5/class.StatusPage.html"; + uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.6/class.StatusPage.html"; } LinkButton { diff --git a/src/Styling with CSS/main.blp b/src/Styling with CSS/main.blp index 570f3ff3..a9ee969f 100644 --- a/src/Styling with CSS/main.blp +++ b/src/Styling with CSS/main.blp @@ -81,12 +81,12 @@ Adw.StatusPage { LinkButton { label: _("Style Classes"); - uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.5/style-classes.html"; + uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.6/style-classes.html"; } LinkButton { label: _("Named Colors"); - uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.5/named-colors.html"; + uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.6/named-colors.html"; } } } diff --git a/src/Tab View/main.blp b/src/Tab View/main.blp index e973a18c..acd18369 100644 --- a/src/Tab View/main.blp +++ b/src/Tab View/main.blp @@ -50,17 +50,17 @@ Adw.Window { LinkButton { label: _("Tab View"); - uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.5/class.TabView.html"; + uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.6/class.TabView.html"; } LinkButton { label: _("Tab Bar"); - uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.5/class.TabBar.html"; + uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.6/class.TabBar.html"; } LinkButton { label: _("Tab Overview"); - uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.5/class.TabOverview.html"; + uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.6/class.TabOverview.html"; } } diff --git a/src/Toasts/main.blp b/src/Toasts/main.blp index 99fb6cd6..e252a34a 100644 --- a/src/Toasts/main.blp +++ b/src/Toasts/main.blp @@ -35,7 +35,7 @@ Adw.ToastOverlay overlay { LinkButton { label: _("API Reference"); - uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.5/class.Toast.html"; + uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.6/class.Toast.html"; } LinkButton { diff --git a/src/Toolbar View/main.blp b/src/Toolbar View/main.blp index f6eb5bd6..545ad8ab 100644 --- a/src/Toolbar View/main.blp +++ b/src/Toolbar View/main.blp @@ -64,7 +64,7 @@ Adw.Window { LinkButton { label: _("API Reference"); - uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.5/class.ToolbarView.html"; + uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.6/class.ToolbarView.html"; } ListBox list_box { diff --git a/src/View Switcher/main.blp b/src/View Switcher/main.blp index e1f749a4..c34259a4 100644 --- a/src/View Switcher/main.blp +++ b/src/View Switcher/main.blp @@ -44,7 +44,7 @@ Adw.Window { LinkButton { label: _("API Reference"); - uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.5/class.ViewSwitcher.html"; + uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.6/class.ViewSwitcher.html"; } LinkButton { @@ -71,7 +71,7 @@ Adw.Window { LinkButton { label: _("API Reference"); - uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.5/class.ViewSwitcher.html"; + uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.6/class.ViewSwitcher.html"; } LinkButton { @@ -126,7 +126,7 @@ Adw.Window { LinkButton { label: _("API Reference"); - uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.5/class.ViewSwitcher.html"; + uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.6/class.ViewSwitcher.html"; } LinkButton { diff --git a/src/Window/main.blp b/src/Window/main.blp index ef7cab6e..bd5b5526 100644 --- a/src/Window/main.blp +++ b/src/Window/main.blp @@ -29,7 +29,7 @@ Adw.Window window { LinkButton { label: _("API Reference"); - uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.5/class.ApplicationWindow.html"; + uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.6/class.ApplicationWindow.html"; } LinkButton {