Merge pull request #3 from LemonBoy/master

add a window icon
This commit is contained in:
Daniel Micay 2012-05-30 03:52:33 -07:00
commit 7d40d65adf
1 changed files with 4 additions and 0 deletions

View File

@ -166,6 +166,10 @@ int main(int argc, char **argv) {
GtkWidget *window = gtk_window_new(GTK_WINDOW_TOPLEVEL); GtkWidget *window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
/*gtk_window_set_default_size(GTK_WINDOW(window), 400, 400);*/ /*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(); GtkWidget *vte = vte_terminal_new();