Browse Source

move install buttons to the right

tags/v5.1.2
guinux 2 years ago
parent
commit
42e151a6a8
2 changed files with 2 additions and 31 deletions
  1. +2
    -1
      resources/manager_window.ui
  2. +0
    -30
      src/user_daemon.vala

+ 2
- 1
resources/manager_window.ui 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>


+ 0
- 30
src/user_daemon.vala 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);


Loading…
Cancel
Save