From 62569cfa651e3839221ce2ae150cc4cf6d2c8c6e Mon Sep 17 00:00:00 2001 From: tamplan <50292710+tamplan@users.noreply.github.com> Date: Wed, 8 May 2019 13:29:49 +0200 Subject: add icon for the font viewer window --- font-viewer/font-view.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'font-viewer') diff --git a/font-viewer/font-view.c b/font-viewer/font-view.c index 4d77b071..041d9a29 100644 --- a/font-viewer/font-view.c +++ b/font-viewer/font-view.c @@ -41,6 +41,7 @@ #include "sushi-font-widget.h" #define FONT_VIEW_TYPE_APPLICATION font_view_application_get_type() +#define FONT_VIEW_ICON_NAME "preferences-desktop-font" #define FONT_VIEW_APPLICATION(obj) \ (G_TYPE_CHECK_INSTANCE_CAST ((obj), FONT_VIEW_TYPE_APPLICATION, FontViewApplication)) @@ -781,7 +782,7 @@ action_about (GSimpleAction *action, "authors", authors, "program-name", _("Font Viewer"), "comments", _("View fonts on your system"), - "logo-icon-name", "preferences-desktop-font", + "logo-icon-name", FONT_VIEW_ICON_NAME, "translator-credits", _("translator-credits"), "license-type", GTK_LICENSE_GPL_2_0, "wrap-license", TRUE, @@ -829,6 +830,7 @@ font_view_application_startup (GApplication *application) gtk_window_set_resizable (GTK_WINDOW (window), TRUE); gtk_window_set_default_size (GTK_WINDOW (window), 800, 600); + gtk_window_set_icon_name (GTK_WINDOW (window), FONT_VIEW_ICON_NAME); gtk_window_set_hide_titlebar_when_maximized (GTK_WINDOW (window), TRUE); gtk_window_set_title (GTK_WINDOW (window), _("Font Viewer")); -- cgit v1.2.1