From 77b5fa0ab7dd0b3d501bb982c599168e4f015c4a Mon Sep 17 00:00:00 2001 From: Giuseppe Date: Wed, 30 May 2012 13:40:38 +0300 Subject: [PATCH] Add the window icon. --- termite.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/termite.c b/termite.c index 569841f..e9af5f5 100644 --- a/termite.c +++ b/termite.c @@ -166,6 +166,10 @@ int main(int argc, char **argv) { GtkWidget *window = gtk_window_new(GTK_WINDOW_TOPLEVEL); /*gtk_window_set_default_size(GTK_WINDOW(window), 400, 400);*/ + GdkPixbuf *icon = gtk_icon_theme_load_icon (gtk_icon_theme_get_default (), "terminal", 48, 0, NULL); + if (icon) { + gtk_window_set_icon (GTK_WINDOW (window), icon); + } GtkWidget *vte = vte_terminal_new();