mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
app: use gtk_show_uri_on_window()
We need the window so that placement is correct on wayland. Also, to avoid the deprecated API.
This commit is contained in:
@ -197,10 +197,18 @@ sysprof_help (GSimpleAction *action,
|
|||||||
GVariant *param,
|
GVariant *param,
|
||||||
gpointer user_data)
|
gpointer user_data)
|
||||||
{
|
{
|
||||||
gtk_show_uri (gdk_screen_get_default (),
|
SpApplication *self = user_data;
|
||||||
"help:sysprof",
|
GtkWindow *window;
|
||||||
gtk_get_current_event_time (),
|
|
||||||
NULL);
|
g_assert (SP_IS_APPLICATION (self));
|
||||||
|
g_assert (G_IS_SIMPLE_ACTION (action));
|
||||||
|
|
||||||
|
window = gtk_application_get_active_window (GTK_APPLICATION (self));
|
||||||
|
|
||||||
|
gtk_show_uri_on_window (window,
|
||||||
|
"help:sysprof",
|
||||||
|
gtk_get_current_event_time (),
|
||||||
|
NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|||||||
Reference in New Issue
Block a user