Top | ![]() |
![]() |
![]() |
![]() |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkBin ╰── GtkWindow ╰── HdyWindow ╰── HdyPreferencesWindow
The HdyPreferencesWindow widget presents an application's preferences gathered into pages and groups. The preferences are searchable by the user.
GtkWidget *
hdy_preferences_window_new (void
);
Creates a new HdyPreferencesWindow.
Since: 0.0.10
gboolean
hdy_preferences_window_get_search_enabled
(HdyPreferencesWindow *self
);
Gets whether search is enabled for self
.
Since: 1.0
void hdy_preferences_window_set_search_enabled (HdyPreferencesWindow *self
,gboolean search_enabled
);
Sets whether search is enabled for self
.
Since: 1.0
gboolean
hdy_preferences_window_get_can_swipe_back
(HdyPreferencesWindow *self
);
Returns whether or not self
allows switching from a subpage to the
preferences via a swipe gesture.
Since: 1.0
void hdy_preferences_window_set_can_swipe_back (HdyPreferencesWindow *self
,gboolean can_swipe_back
);
Sets whether or not self
allows switching from a subpage to the preferences
via a swipe gesture.
Since: 1.0
void hdy_preferences_window_present_subpage (HdyPreferencesWindow *self
,GtkWidget *subpage
);
Sets subpage
as the window's subpage and present it.
The transition can be cancelled by the user, in which case visible child will
change back to the previously visible child.
Since: 1.0
void
hdy_preferences_window_close_subpage (HdyPreferencesWindow *self
);
Closes the current subpage to return back to the preferences, if there is no presented subpage, this does nothing.
Since: 1.0