From 42e151a6a81ac384bb362b9173cb9e84d65fb242 Mon Sep 17 00:00:00 2001 From: guinux Date: Thu, 21 Sep 2017 21:19:37 +0200 Subject: [PATCH] move install buttons to the right --- resources/manager_window.ui | 3 ++- src/user_daemon.vala | 30 ------------------------------ 2 files changed, 2 insertions(+), 31 deletions(-) diff --git a/resources/manager_window.ui b/resources/manager_window.ui index 35aed84..0e02b51 100644 --- a/resources/manager_window.ui +++ b/resources/manager_window.ui @@ -669,7 +669,6 @@ True False 18 - vertical 18 @@ -745,6 +744,7 @@ True False + vertical 12 start @@ -793,6 +793,7 @@ False True + end 2 diff --git a/src/user_daemon.vala b/src/user_daemon.vala index 70e0ee1..5a670cf 100644 --- a/src/user_daemon.vala +++ b/src/user_daemon.vala @@ -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 appstream_results = null; - app_store.get_apps ().foreach ((app) => { - var iter = HashTableIter (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 (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);