Changeset 5968 for branches/newosd
- Timestamp:
- 12/21/07 05:02:43 (11 months ago)
- Files:
-
- 1 modified
-
branches/newosd/src/iface.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/newosd/src/iface.cpp
r5966 r5968 1 1 #include "iface.h" 2 3 #include <string> 2 4 3 5 #include <licq_icqd.h> … … 62 64 return false; 63 65 64 char* alias = strdup(u->GetAlias());66 string str = u->GetAlias(); 65 67 gUserManager.DropUser(u); 66 alias = static_cast<char*>(realloc(alias, strlen(alias) + 3)); 67 strcat(alias, ": "); 68 str += ": "; 68 69 69 pango_layout_set_text(trd.lay, alias, -1);70 pango_layout_set_text(trd.lay, str.c_str(), -1); 70 71 pango_layout_get_size(trd.lay, &tag_width, NULL); 71 72 pango_layout_set_indent(trd.lay, -tag_width); 72 73 73 char* x = "received\nthe\nsignal"; 74 alias = static_cast<char*>(realloc(alias, strlen(alias) + strlen(x) + 1)); 75 strcat(alias, x); 74 str += "received\nthe\nsignal"; 76 75 77 pango_layout_set_text_aosd(trd.lay, alias); 78 free(alias); 76 pango_layout_set_text_aosd(trd.lay, const_cast<char*>(str.c_str())); 79 77 pango_layout_get_size_aosd(trd.lay, &width, &height, &trd.lbearing); 80 78
