mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof-ui: add API to reload pages
This can be useful when the page is interactive and needs to reload.
This commit is contained in:
@ -1225,3 +1225,23 @@ sysprof_display_save (SysprofDisplay *self)
|
||||
g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_TITLE]);
|
||||
gtk_native_dialog_destroy (GTK_NATIVE_DIALOG (native));
|
||||
}
|
||||
|
||||
void
|
||||
_sysprof_display_reload_page (SysprofDisplay *self,
|
||||
SysprofPage *page)
|
||||
{
|
||||
SysprofDisplayPrivate *priv = sysprof_display_get_instance_private (self);
|
||||
SysprofSelection *selection;
|
||||
|
||||
g_return_if_fail (SYSPROF_IS_DISPLAY (self));
|
||||
g_return_if_fail (SYSPROF_IS_PAGE (page));
|
||||
g_return_if_fail (priv->reader != NULL);
|
||||
|
||||
selection = sysprof_visualizers_frame_get_selection (priv->visualizers);
|
||||
|
||||
sysprof_page_load_async (page,
|
||||
priv->reader,
|
||||
selection,
|
||||
priv->filter,
|
||||
NULL, NULL, NULL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user