Skip to content

Commit

Permalink
misc: port to AdwSpinner
Browse files Browse the repository at this point in the history
  • Loading branch information
SeaDve committed Jul 14, 2024
1 parent a853563 commit 1a9496a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ edition = "2021"
lto = true

[dependencies]
adw = { package = "libadwaita", version = "0.7", features = ["v1_5"] }
adw = { package = "libadwaita", version = "0.7", features = ["v1_6"] }
anyhow = "1.0.75"
async-lock = "3.2"
futures-util = { version = "0.3.29", features = ["io"] }
Expand Down
6 changes: 2 additions & 4 deletions data/resources/ui/page.ui
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,10 @@
<property name="can-target">False</property>
<property name="transition-type">crossfade</property>
<property name="child">
<object class="GtkSpinner">
<property name="width-request">18</property>
<property name="height-request">18</property>
<object class="AdwSpinner">
<property name="margin-start">6</property>
<property name="margin-end">6</property>
<property name="spinning">True</property>
<property name="size">18</property>
</object>
</property>
</object>
Expand Down
6 changes: 2 additions & 4 deletions data/resources/ui/recent_popover.ui
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,10 @@
<property name="vhomogeneous">false</property>
<property name="hhomogeneous">false</property>
<child>
<object class="GtkSpinner" id="loading_page">
<property name="spinning">True</property>
<property name="width-request">24</property>
<property name="height-request">24</property>
<object class="AdwSpinner" id="loading_page">
<property name="margin-top">24</property>
<property name="margin-bottom">24</property>
<property name="size">24</property>
</object>
</child>
<child>
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ dependency('glib-2.0', version: '>= 2.66')
dependency('gio-2.0', version: '>= 2.66')
dependency('gtk4', version: '>= 4.15.3')
dependency('gtksourceview-5', version: '>= 5.11')
dependency('libadwaita-1', version: '>= 1.5')
dependency('libadwaita-1', version: '>= 1.6')
dependency('webkitgtk-6.0', version: '>= 2.43')

glib_compile_resources = find_program('glib-compile-resources', required: true)
Expand Down
2 changes: 1 addition & 1 deletion src/recent_popover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ mod imp {
#[template_child]
pub(super) stack: TemplateChild<gtk::Stack>,
#[template_child]
pub(super) loading_page: TemplateChild<gtk::Spinner>,
pub(super) loading_page: TemplateChild<adw::Spinner>,
#[template_child]
pub(super) empty_page: TemplateChild<adw::StatusPage>,
#[template_child]
Expand Down

0 comments on commit 1a9496a

Please sign in to comment.