Skip to content

Commit

Permalink
File selector: Switch to TreeView (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmhewitt authored May 4, 2023
1 parent 6d8e23a commit 2ddabd7
Show file tree
Hide file tree
Showing 33 changed files with 3,703 additions and 3,191 deletions.
5 changes: 3 additions & 2 deletions data/com.github.davidmhewitt.torrential.gresource.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
<gresource prefix="/com/github/davidmhewitt/torrential">
<file alias="open-magnet.svg" compressed="true" preprocess="xml-stripblanks">icons/open-magnet.svg</file>
<file compressed="true" preprocess="xml-stripblanks">icons/filter.svg</file>
<file preprocess="xml-stripblanks">icons/open-magnet.svg</file>
<file preprocess="xml-stripblanks">icons/filter.svg</file>
<file compressed="true" preprocess="xml-stripblanks">ui/FileSelectFactory.ui</file>
</gresource>
</gresources>

52 changes: 52 additions & 0 deletions data/ui/FileSelectFactory.ui
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="GtkListItem">
<property name="child">
<object class="GtkTreeExpander" id="expander">
<binding name="list-row">
<lookup name="item">GtkListItem</lookup>
</binding>
<property name="child">
<object class="GtkBox">
<property name="orientation">horizontal</property>
<property name="spacing">3</property>
<child>
<object class="GtkCheckButton">
<binding name="active">
<lookup name="download" type="FileSelectorModelTorrentFile">
<lookup name="item">expander</lookup>
</lookup>
</binding>
<binding name="inconsistent">
<lookup name="inconsistent" type="FileSelectorModelTorrentFile">
<lookup name="item">expander</lookup>
</lookup>
</binding>
<signal name="notify::active" handler="download_changed"/>
</object>
</child>
<child>
<object class="GtkImage">
<binding name="icon-name">
<lookup name="icon-name" type="FileSelectorModelTorrentFile">
<lookup name="item">expander</lookup>
</lookup>
</binding>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="xalign">0</property>
<binding name="label">
<lookup name="name" type="FileSelectorModelTorrentFile">
<lookup name="item">expander</lookup>
</lookup>
</binding>
</object>
</child>
</object>
</property>
</object>
</property>
</template>
</interface>
3 changes: 1 addition & 2 deletions po/POTFILES
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
src/Dialogs/FileSelectDialog.vala
src/Widgets/FileSelectTreeView.vala
src/FileSelector/FileSelectDialog.vala
src/Widgets/MultiInfoBar.vala
src/Widgets/TorrentListBox.vala
src/Widgets/TorrentListRow.vala
Expand Down
Loading

0 comments on commit 2ddabd7

Please sign in to comment.