diff options
author | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-04-27 18:15:09 +0800 |
---|---|---|
committer | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-06-09 19:34:56 +0800 |
commit | 4198f9e38072f8e36640af81db324e8787dc8e51 (patch) | |
tree | f3b2a61be1097ceaf758c5341108837c055f96b0 | |
parent | 652f53c7969e0df0ce9c1fa9b01fb2993f270121 (diff) | |
download | gsoc2013-empathy-4198f9e38072f8e36640af81db324e8787dc8e51.tar gsoc2013-empathy-4198f9e38072f8e36640af81db324e8787dc8e51.tar.gz gsoc2013-empathy-4198f9e38072f8e36640af81db324e8787dc8e51.tar.bz2 gsoc2013-empathy-4198f9e38072f8e36640af81db324e8787dc8e51.tar.lz gsoc2013-empathy-4198f9e38072f8e36640af81db324e8787dc8e51.tar.xz gsoc2013-empathy-4198f9e38072f8e36640af81db324e8787dc8e51.tar.zst gsoc2013-empathy-4198f9e38072f8e36640af81db324e8787dc8e51.zip |
Use a define instead of hardcoding a magic number
-rw-r--r-- | libempathy-gtk/empathy-log-window.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-log-window.c b/libempathy-gtk/empathy-log-window.c index b6531ff48..87730c3f9 100644 --- a/libempathy-gtk/empathy-log-window.c +++ b/libempathy-gtk/empathy-log-window.c @@ -176,6 +176,8 @@ enum /* Seconds between two messages to be considered one conversation */ #define MAX_GAP 30*60 +#define WHAT_TYPE_SEPARATOR -1 + typedef enum { EVENT_CALL_INCOMING = 1 << 0, @@ -2080,7 +2082,7 @@ what_row_is_separator (GtkTreeModel *model, COL_WHAT_TYPE, &type, -1); - return (type == -1); + return (type == WHAT_TYPE_SEPARATOR); } static void @@ -2150,7 +2152,7 @@ log_window_what_setup (EmpathyLogWindow *window) guint i; struct event events [] = { { TPL_EVENT_MASK_ANY, 0, NULL, _("Anything") }, - { -1, 0, NULL, "separator" }, + { WHAT_TYPE_SEPARATOR, 0, NULL, "separator" }, { TPL_EVENT_MASK_TEXT, 0, "stock_text_justify", _("Text chats") }, { TPL_EVENT_MASK_CALL, EVENT_CALL_ALL, "call-start", _("Calls") } }; |