Mercurial > pidgin.yaz
comparison console/libgnt/gntbox.c @ 14337:1a500db56415
[gaim-migrate @ 17033]
Show titles in windows if it has borders.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Fri, 25 Aug 2006 23:59:23 +0000 |
parents | 27182f83b79b |
children | 0387a167f342 |
comparison
equal
deleted
inserted
replaced
14336:f3ef96e8428f | 14337:1a500db56415 |
---|---|
34 | 34 |
35 g_list_foreach(box->list, (GFunc)gnt_widget_draw, NULL); | 35 g_list_foreach(box->list, (GFunc)gnt_widget_draw, NULL); |
36 | 36 |
37 gnt_box_sync_children(box); | 37 gnt_box_sync_children(box); |
38 | 38 |
39 if (box->title) | 39 if (box->title && !GNT_WIDGET_IS_FLAG_SET(widget, GNT_WIDGET_NO_BORDER)) |
40 { | 40 { |
41 gchar *title = g_strdup(box->title); | 41 gchar *title = g_strdup(box->title); |
42 int pos = g_utf8_strlen(title, -1), right; | 42 int pos = g_utf8_strlen(title, -1), right; |
43 | 43 |
44 if (pos >= widget->priv.width - 4) | 44 if (pos >= widget->priv.width - 4) |