diff options
author | Peter Eisenmann <p3732@getgoogleoff.me> | 2021-12-31 08:12:29 +0100 |
---|---|---|
committer | António Fernandes <antoniof@gnome.org> | 2022-07-28 19:16:34 +0100 |
commit | 1d3e7ec914faf9007325483ceb0991c6e99d8a73 (patch) | |
tree | f0a534b9b6e71951e4b5ad634a5dcb9448390909 /libnautilus-extension | |
parent | 517d0317d444ffcd0686da158a2c434bfc14d77d (diff) | |
download | nautilus-1d3e7ec914faf9007325483ceb0991c6e99d8a73.tar.gz |
properties-window: Use GtkStack for navigation
Replace the tabbed GtkNotebook view with inlined navigation rows that
link to subpages and a back button that allows navigating back.
Add additional needed getters to NautilusPropertyPage.
Also, replace the now-inadequate .view style class with .background.
Part of #1326
Diffstat (limited to 'libnautilus-extension')
-rw-r--r-- | libnautilus-extension/nautilus-property-page.c | 18 | ||||
-rw-r--r-- | libnautilus-extension/nautilus-property-page.h | 25 |
2 files changed, 43 insertions, 0 deletions
diff --git a/libnautilus-extension/nautilus-property-page.c b/libnautilus-extension/nautilus-property-page.c index dad8e5315..bd37a3602 100644 --- a/libnautilus-extension/nautilus-property-page.c +++ b/libnautilus-extension/nautilus-property-page.c @@ -222,3 +222,21 @@ nautilus_property_page_class_init (NautilusPropertyPageClass *class) GTK_TYPE_WIDGET, G_PARAM_READWRITE)); } + +GtkWidget * +nautilus_property_page_get_label (NautilusPropertyPage *page) +{ + return page->label; +} + +const char * +nautilus_property_page_get_name (NautilusPropertyPage *page) +{ + return page->name; +} + +GtkWidget * +nautilus_property_page_get_widget (NautilusPropertyPage *page) +{ + return page->page; +} diff --git a/libnautilus-extension/nautilus-property-page.h b/libnautilus-extension/nautilus-property-page.h index 35181fe10..d9b51bf4f 100644 --- a/libnautilus-extension/nautilus-property-page.h +++ b/libnautilus-extension/nautilus-property-page.h @@ -68,4 +68,29 @@ NautilusPropertyPage *nautilus_property_page_new (const char *name, * page (widget) - the property page to display */ +/** + * nautilus_property_page_get_label: + * @page: the property page + * + * Returns: (transfer none): the label of this #NautilusPropertyPage + */ +GtkWidget * nautilus_property_page_get_label (NautilusPropertyPage *page); + +/** + * nautilus_property_page_get_name: + * @page: the property page + * + * Returns: (transfer none): the name of this #NautilusPropertyPage + */ +const char *nautilus_property_page_get_name (NautilusPropertyPage *page); + +/** + * nautilus_property_page_get_widget: + * @page: the property page + * + * Returns: (transfer none): the widget associated wtih this #NautilusPropertyPage + */ +GtkWidget * nautilus_property_page_get_widget (NautilusPropertyPage *page); + + G_END_DECLS |