comparison 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
comparison
equal deleted inserted replaced
18090:9018b785ef73 18091:7e0bd339533c
152 } 152 }
153 153
154 return type; 154 return type;
155 } 155 }
156 156
157 GntWS *gnt_ws_new(const char *name)
158 {
159 GntWS *ws = GNT_WS(g_object_new(GNT_TYPE_WS, NULL));
160 ws->name = g_strdup(name ? name : "(noname)");
161 return ws;
162 }
163
157 const char * gnt_ws_get_name(GntWS *ws) 164 const char * gnt_ws_get_name(GntWS *ws)
158 { 165 {
159 return ws->name; 166 return ws->name;
160 } 167 }
161 168