mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-09 22:50:54 +00:00
Merge branch 'adw-about-window' into 'master'
Use AdwAboutWindow See merge request GNOME/sysprof!52
This commit is contained in:
@ -16,7 +16,7 @@ sysprof_deps = [
|
|||||||
libsysprof_dep,
|
libsysprof_dep,
|
||||||
libsysprof_ui_dep,
|
libsysprof_ui_dep,
|
||||||
dependency('pangoft2', required: false),
|
dependency('pangoft2', required: false),
|
||||||
dependency('libadwaita-1'),
|
dependency('libadwaita-1', version: '>= 1.2.alpha'),
|
||||||
]
|
]
|
||||||
|
|
||||||
sysprof = executable('sysprof', sysprof_resources + sysprof_sources,
|
sysprof = executable('sysprof', sysprof_resources + sysprof_sources,
|
||||||
|
|||||||
@ -175,7 +175,6 @@ sysprof_about (GSimpleAction *action,
|
|||||||
{
|
{
|
||||||
GtkApplication *app = user_data;
|
GtkApplication *app = user_data;
|
||||||
GtkWindow *best_toplevel = NULL;
|
GtkWindow *best_toplevel = NULL;
|
||||||
GtkWindow *dialog;
|
|
||||||
GList *windows;
|
GList *windows;
|
||||||
|
|
||||||
g_assert (G_IS_APPLICATION (app));
|
g_assert (G_IS_APPLICATION (app));
|
||||||
@ -193,30 +192,20 @@ sysprof_about (GSimpleAction *action,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dialog = g_object_new (GTK_TYPE_ABOUT_DIALOG,
|
adw_show_about_window(best_toplevel,
|
||||||
"application", app,
|
"application-name", _("Sysprof"),
|
||||||
"authors", sysprof_authors,
|
"application-icon", "org.gnome.Sysprof",
|
||||||
"artists", sysprof_artists,
|
"version", "GNOME " SYMBOLIC_VERSION " (" PACKAGE_VERSION ")",
|
||||||
"comments", _("A system profiler"),
|
|
||||||
"copyright", "Copyright 2004-2009 Søren Sandmann Pedersen\n"
|
"copyright", "Copyright 2004-2009 Søren Sandmann Pedersen\n"
|
||||||
"Copyright 2016-2021 Christian Hergert",
|
"Copyright 2016-2021 Christian Hergert",
|
||||||
"transient-for", best_toplevel,
|
"issue-url", "https://gitlab.gnome.org/GNOME/sysprof/-/issues/new",
|
||||||
"modal", TRUE,
|
|
||||||
"translator-credits", _("translator-credits"),
|
|
||||||
"license-type", GTK_LICENSE_GPL_3_0,
|
"license-type", GTK_LICENSE_GPL_3_0,
|
||||||
"logo-icon-name", "org.gnome.Sysprof",
|
"developers", sysprof_authors,
|
||||||
"program-name", _("Sysprof"),
|
"artists", sysprof_artists,
|
||||||
"version", "GNOME " SYMBOLIC_VERSION " (" PACKAGE_VERSION ")",
|
"comments", _("A system profiler"),
|
||||||
|
"translator-credits", _("translator-credits"),
|
||||||
"website", "https://wiki.gnome.org/Apps/Sysprof",
|
"website", "https://wiki.gnome.org/Apps/Sysprof",
|
||||||
"website-label", _("Learn more about Sysprof"),
|
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
g_signal_connect (dialog,
|
|
||||||
"close-request",
|
|
||||||
G_CALLBACK (gtk_window_destroy),
|
|
||||||
NULL);
|
|
||||||
|
|
||||||
gtk_window_present (dialog);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|||||||
Reference in New Issue
Block a user