summaryrefslogtreecommitdiff
path: root/src/terminal-app.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/terminal-app.c')
-rw-r--r--src/terminal-app.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/terminal-app.c b/src/terminal-app.c
index d54da49..48f8b0b 100644
--- a/src/terminal-app.c
+++ b/src/terminal-app.c
@@ -1797,6 +1797,14 @@ terminal_app_handle_options (TerminalApp *app,
if (iw->role)
gtk_window_set_role (GTK_WINDOW (window), iw->role);
+ if (iw->icon)
+ {
+ if (g_path_is_absolute (iw->icon))
+ gtk_window_set_icon_from_file (GTK_WINDOW (window), iw->icon, NULL);
+ else
+ gtk_window_set_icon_name (GTK_WINDOW (window), iw->icon);
+ }
+
if (iw->force_menubar_state)
terminal_window_set_menubar_visible (window, iw->menubar_state);