mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-11 23:51:06 +00:00
sysprof: setup document subtitle for window
This commit is contained in:
@ -256,6 +256,10 @@ sysprof_window_set_document (SysprofWindow *self,
|
|||||||
|
|
||||||
sysprof_window_update_action_state (self);
|
sysprof_window_update_action_state (self);
|
||||||
|
|
||||||
|
g_object_bind_property (self->document, "subtitle",
|
||||||
|
self->stack_title, "subtitle",
|
||||||
|
G_BINDING_SYNC_CREATE);
|
||||||
|
|
||||||
g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_DOCUMENT]);
|
g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_DOCUMENT]);
|
||||||
g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_IS_LOADED]);
|
g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_IS_LOADED]);
|
||||||
g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_SESSION]);
|
g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_SESSION]);
|
||||||
@ -691,6 +695,9 @@ sysprof_window_load_cb (GObject *object,
|
|||||||
|
|
||||||
_gtk_widget_hide_with_fade (GTK_WIDGET (self->progress_bar));
|
_gtk_widget_hide_with_fade (GTK_WIDGET (self->progress_bar));
|
||||||
|
|
||||||
|
g_binding_unbind (g_object_get_data (G_OBJECT (loader), "message-binding"));
|
||||||
|
g_object_set_data (G_OBJECT (loader), "message-binding", NULL);
|
||||||
|
|
||||||
if (!(document = sysprof_document_loader_load_finish (loader, result, &error)))
|
if (!(document = sysprof_document_loader_load_finish (loader, result, &error)))
|
||||||
{
|
{
|
||||||
GtkWidget *dialog;
|
GtkWidget *dialog;
|
||||||
@ -743,9 +750,10 @@ sysprof_window_open (SysprofApplication *app,
|
|||||||
g_object_bind_property (loader, "fraction",
|
g_object_bind_property (loader, "fraction",
|
||||||
self->progress_bar, "fraction",
|
self->progress_bar, "fraction",
|
||||||
G_BINDING_SYNC_CREATE);
|
G_BINDING_SYNC_CREATE);
|
||||||
g_object_bind_property (loader, "message",
|
g_object_set_data (G_OBJECT (loader), "message-binding",
|
||||||
self->stack_title, "subtitle",
|
g_object_bind_property (loader, "message",
|
||||||
G_BINDING_SYNC_CREATE);
|
self->stack_title, "subtitle",
|
||||||
|
G_BINDING_SYNC_CREATE));
|
||||||
sysprof_document_loader_load_async (loader,
|
sysprof_document_loader_load_async (loader,
|
||||||
NULL,
|
NULL,
|
||||||
sysprof_window_load_cb,
|
sysprof_window_load_cb,
|
||||||
|
|||||||
Reference in New Issue
Block a user