-
-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make pages subclass Adw.NavigationPage (#2118)
* Make pages subclass Adw.NavigationView * Add mininum adwaita version --------- Co-authored-by: Leonhard <[email protected]>
- Loading branch information
1 parent
569048d
commit 71811e4
Showing
7 changed files
with
18 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
* Dane Henson <[email protected]> | ||
*/ | ||
|
||
public class AppCenter.Homepage : Gtk.Box { | ||
public class AppCenter.Homepage : Adw.NavigationPage { | ||
public signal void show_package (AppCenterCore.Package package); | ||
public signal void show_category (AppStream.Category category); | ||
|
||
|
@@ -209,7 +209,8 @@ public class AppCenter.Homepage : Gtk.Box { | |
hscrollbar_policy = Gtk.PolicyType.NEVER | ||
}; | ||
|
||
append (scrolled_window); | ||
child = scrolled_window; | ||
title = _("Home"); | ||
|
||
var local_package = App.local_package; | ||
if (local_package != null) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ | |
* Atheesh Thirumalairajan <[email protected]> | ||
*/ | ||
|
||
public class AppCenter.SearchView : Gtk.Box { | ||
public class AppCenter.SearchView : Adw.NavigationPage { | ||
public signal void show_app (AppCenterCore.Package package); | ||
|
||
public string? current_search_term { get; set; default = null; } | ||
|
@@ -48,7 +48,9 @@ public class AppCenter.SearchView : Gtk.Box { | |
hscrollbar_policy = Gtk.PolicyType.NEVER | ||
}; | ||
|
||
append (scrolled); | ||
child = scrolled; | ||
/// TRANSLATORS: the name of the Search view | ||
title = C_("view", "Search"); | ||
|
||
notify["current-search-term"].connect (() => { | ||
if (current_search_term == null) { | ||
|