Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

demo: Usb panel improvements #267

Merged
merged 5 commits into from
Feb 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions ashpd-demo/data/resources/ui/usb.ui
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@
<property name="description" translatable="yes">Calls AcquireDevices or ReleaseDevices on org.freedesktop.portal.Usb.</property>
<property name="header-suffix">
<object class="GtkButton">
<property name="label" translatable="yes">Refresh</property>
<property name="tooltip-text" translatable="yes">Refresh</property>
<property name="icon-name">view-refresh-symbolic</property>
<property name="action-name">usb.refresh</property>
<property name="valign">center</property>
<style>
<class name="flat"/>
</style>
</object>
</property>
</object>
Expand All @@ -39,7 +42,7 @@
</child>
<child>
<object class="GtkButton">
<property name="label">_Stop Session</property>
<property name="label">S_top Session</property>
<property name="use-underline">True</property>
<property name="sensitive">false</property>
<property name="halign">end</property>
Expand Down
16 changes: 13 additions & 3 deletions ashpd-demo/data/resources/ui/usb_device_row.ui
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,35 @@
<child type="prefix">
<object class="GtkCheckButton" id="checkbox">
<property name="sensitive">false</property>
<style>
<class name="selection-mode"/>
</style>
</object>
</child>
<child type="suffix">
<object class="GtkBox" id="box1">
<property name="margin-top">6</property>
<property name="margin-bottom">6</property>
<style>
<class name="linked" />
</style>
<property name="spacing">6</property>
<property name="valign">center</property>
<child>
<object class="GtkButton" id="acquire">
<signal name="clicked" handler="handle_acquire_clicked" swapped="true" />
<property name="icon-name">preferences-system-sharing-symbolic</property>
<property name="tooltip-text" translatable="yes">Acquire</property>
<style>
<class name="flat"/>
</style>
</object>
</child>
<child type="suffix">
<object class="GtkButton" id="release">
<signal name="clicked" handler="handle_release_clicked" swapped="true"/>
<property name="icon-name">process-stop-symbolic</property>
<property name="tooltip-text" translatable="yes">Release</property>
<style>
<class name="flat"/>
</style>
</object>
</child>
</object>
Expand Down
Loading