comparison finch/libgnt/wms/irssi.c @ 18312:adcb44a07a2d

This is a more flexible way of getting random settings from .gntrc.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Wed, 27 Jun 2007 18:21:02 +0000
parents f52def9dc7c9
children 8aff2d3d6820
comparison
equal deleted inserted replaced
18305:ffd706ec0220 18312:adcb44a07a2d
278 Irssi *irssi; 278 Irssi *irssi;
279 279
280 irssi = g_object_new(TYPE_IRSSI, NULL); 280 irssi = g_object_new(TYPE_IRSSI, NULL);
281 *wm = GNT_WM(irssi); 281 *wm = GNT_WM(irssi);
282 282
283 style = gnt_style_get_from_name("irssi-split-v"); 283 style = gnt_style_get_from_name("irssi", "split-v");
284 irssi->vert = style ? atoi(style) : 1; 284 irssi->vert = style ? atoi(style) : 1;
285 285
286 style = gnt_style_get_from_name("irssi-split-h"); 286 style = gnt_style_get_from_name("irssi", "split-h");
287 irssi->horiz = style ? atoi(style) : 1; 287 irssi->horiz = style ? atoi(style) : 1;
288 288
289 irssi->vert = MAX(irssi->vert, 1); 289 irssi->vert = MAX(irssi->vert, 1);
290 irssi->horiz = MAX(irssi->horiz, 1); 290 irssi->horiz = MAX(irssi->horiz, 1);
291 291