mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
sysprof: use sysprof_window_new()
This commit is contained in:
@ -72,10 +72,7 @@ sysprof_application_activate (GApplication *app)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
window = g_object_new (SYSPROF_TYPE_WINDOW,
|
window = SYSPROF_WINDOW (sysprof_window_new (SYSPROF_APPLICATION (app)));
|
||||||
"application", app,
|
|
||||||
NULL);
|
|
||||||
|
|
||||||
gtk_window_present (GTK_WINDOW (window));
|
gtk_window_present (GTK_WINDOW (window));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -239,9 +236,7 @@ sysprof_new_window (GSimpleAction *action,
|
|||||||
g_assert (G_IS_SIMPLE_ACTION (action));
|
g_assert (G_IS_SIMPLE_ACTION (action));
|
||||||
g_assert (variant == NULL);
|
g_assert (variant == NULL);
|
||||||
|
|
||||||
window = g_object_new (SYSPROF_TYPE_WINDOW,
|
window = SYSPROF_WINDOW (sysprof_window_new (self));
|
||||||
"application", self,
|
|
||||||
NULL);
|
|
||||||
gtk_window_present (GTK_WINDOW (window));
|
gtk_window_present (GTK_WINDOW (window));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -293,9 +288,7 @@ sysprof_show_help_overlay (GSimpleAction *action,
|
|||||||
|
|
||||||
if (window == NULL)
|
if (window == NULL)
|
||||||
{
|
{
|
||||||
window = g_object_new (SYSPROF_TYPE_WINDOW,
|
window = SYSPROF_WINDOW (sysprof_window_new (SYSPROF_APPLICATION (app)));
|
||||||
"application", app,
|
|
||||||
NULL);
|
|
||||||
gtk_window_present (GTK_WINDOW (window));
|
gtk_window_present (GTK_WINDOW (window));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user