aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2011-07-21 19:35:59 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2011-07-21 19:35:59 +0200
commit496912ca7cf829cb919b1e4f124a4ca0b1271097 (patch)
tree28886da0a1d7dee646bc15a83d3e0d2b2fc8fa92
parent6cb0f2f76838e6d25e96bece26bdf65ed8e1c4cf (diff)
downloadayatana-indicator-messages-496912ca7cf829cb919b1e4f124a4ca0b1271097.tar.gz
ayatana-indicator-messages-496912ca7cf829cb919b1e4f124a4ca0b1271097.tar.bz2
ayatana-indicator-messages-496912ca7cf829cb919b1e4f124a4ca0b1271097.zip
Don't use g_return_if_fail in middle-click cb function
We don't need an assertion there.
-rw-r--r--src/indicator-messages.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/indicator-messages.c b/src/indicator-messages.c
index 4849e77..c2b32e9 100644
--- a/src/indicator-messages.c
+++ b/src/indicator-messages.c
@@ -813,7 +813,8 @@ static void
indicator_messages_middle_click (IndicatorObject * io, IndicatorObjectEntry * entry,
guint time, gpointer data)
{
- g_return_if_fail(attention);
+ if (!attention)
+ return;
clear_attention();
}