Mercurial > pidgin
diff finch/libgnt/gntws.c @ 18091:7e0bd339533c
merge of '121873f517c4c5e2d65c3a1cdd152694834d7db0'
and 'b6554a097db9af922d42e44a8f82e43d8774a781'
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Tue, 12 Jun 2007 21:25:56 +0000 |
parents | 34e011c8ed2b |
children | 5023ad94ebc9 |
line wrap: on
line diff
--- a/finch/libgnt/gntws.c Mon Jun 11 17:36:40 2007 +0000 +++ b/finch/libgnt/gntws.c Tue Jun 12 21:25:56 2007 +0000 @@ -154,6 +154,13 @@ return type; } +GntWS *gnt_ws_new(const char *name) +{ + GntWS *ws = GNT_WS(g_object_new(GNT_TYPE_WS, NULL)); + ws->name = g_strdup(name ? name : "(noname)"); + return ws; +} + const char * gnt_ws_get_name(GntWS *ws) { return ws->name;