move install buttons to the right

This commit is contained in:
guinux 2017-09-21 21:19:37 +02:00
parent e86ac4c3fd
commit 42e151a6a8
2 changed files with 2 additions and 31 deletions

View File

@ -669,7 +669,6 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="border_width">18</property>
<property name="orientation">vertical</property>
<property name="spacing">18</property>
<child>
<object class="GtkBox" id="properties_box2">
@ -745,6 +744,7 @@
<object class="GtkButtonBox" id="details_buttonbox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<property name="spacing">12</property>
<property name="layout_style">start</property>
<child>
@ -793,6 +793,7 @@
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="pack_type">end</property>
<property name="position">2</property>
</packing>
</child>

View File

@ -504,36 +504,6 @@ namespace Pamac {
syncdbs.next ();
}
result.join (syncpkgs.diff (result, (Alpm.List.CompareFunc) alpm_pkg_compare_name));
// search in Appstream
Alpm.List<unowned Alpm.Package> appstream_results = null;
app_store.get_apps ().foreach ((app) => {
var iter = HashTableIter<string,string> (app.get_names ());
unowned string name;
while (iter.next (null, out name)) {
if (search_string in name) {
unowned Alpm.Package? alpm_pkg = alpm_handle.localdb.get_pkg (app.get_pkgname_default ());
if (alpm_pkg == null) {
alpm_pkg = get_syncpkg (app.get_pkgname_default ());
}
if (alpm_pkg != null) {
appstream_results.add (alpm_pkg);
}
}
}
iter = HashTableIter<string,string> (app.get_descriptions ());
unowned string desc;
while (iter.next (null, out desc)) {
if (search_string in desc) {
unowned Alpm.Package? alpm_pkg = alpm_handle.localdb.get_pkg (app.get_pkgname_default ());
if (alpm_pkg == null) {
alpm_pkg = get_syncpkg (app.get_pkgname_default ());
}
if (alpm_pkg != null) {
appstream_results.add (alpm_pkg);
}
}
}
});
// use custom sort function
global_search_string = search_string;
result.sort (result.length, (Alpm.List.CompareFunc) alpm_pkg_sort_search_by_relevance);