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-04-27 18:25:51 +0800 |
commit | 69c06be1de1ec60afd3237efef260873c65b3cd2 (patch) | |
tree | 4bfbc3f145010e2da59965c742ba2b692d4d2f6f | |
parent | 9c9759b23f5f31c48b70579d118bc028deeccf41 (diff) | |
download | gsoc2013-empathy-69c06be1de1ec60afd3237efef260873c65b3cd2.tar gsoc2013-empathy-69c06be1de1ec60afd3237efef260873c65b3cd2.tar.gz gsoc2013-empathy-69c06be1de1ec60afd3237efef260873c65b3cd2.tar.bz2 gsoc2013-empathy-69c06be1de1ec60afd3237efef260873c65b3cd2.tar.lz gsoc2013-empathy-69c06be1de1ec60afd3237efef260873c65b3cd2.tar.xz gsoc2013-empathy-69c06be1de1ec60afd3237efef260873c65b3cd2.tar.zst gsoc2013-empathy-69c06be1de1ec60afd3237efef260873c65b3cd2.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 d7d97c24c..ca36c83d4 100644 --- a/libempathy-gtk/empathy-log-window.c +++ b/libempathy-gtk/empathy-log-window.c @@ -175,6 +175,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, @@ -2076,7 +2078,7 @@ what_row_is_separator (GtkTreeModel *model, COL_WHAT_TYPE, &type, -1); - return (type == -1); + return (type == WHAT_TYPE_SEPARATOR); } static void @@ -2146,7 +2148,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") } }; |