Mercurial > pidgin
comparison src/savedstatuses.c @ 12781:ab65ade2e93f
[gaim-migrate @ 15128]
Make primitives without messages show up as the primitive name instead
of a blank name in the gtkstatusbox's popular status
committer: Tailor Script <tailor@pidgin.im>
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Mon, 09 Jan 2006 07:04:40 +0000 |
| parents | d3232d64fafd |
| children | f88f145884c0 |
comparison
equal
deleted
inserted
replaced
| 12780:c886fc7e3f24 | 12781:ab65ade2e93f |
|---|---|
| 795 return saved_status->title; | 795 return saved_status->title; |
| 796 | 796 |
| 797 /* Otherwise, this is a transient status and we make up a title on the fly */ | 797 /* Otherwise, this is a transient status and we make up a title on the fly */ |
| 798 message = gaim_savedstatus_get_message(saved_status); | 798 message = gaim_savedstatus_get_message(saved_status); |
| 799 | 799 |
| 800 if (message == NULL) | 800 if ((message == NULL) || (*message == '\0')) |
| 801 { | 801 { |
| 802 GaimStatusPrimitive primitive; | 802 GaimStatusPrimitive primitive; |
| 803 primitive = gaim_savedstatus_get_type(saved_status); | 803 primitive = gaim_savedstatus_get_type(saved_status); |
| 804 return gaim_primitive_get_id_from_type(primitive); | 804 return gaim_primitive_get_id_from_type(primitive); |
| 805 } | 805 } |
