[epiphany-extensions] adblock: tiny style fixes
- From: Xan Lopez <xan src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [epiphany-extensions] adblock: tiny style fixes
- Date: Sat, 5 Dec 2009 21:50:45 +0000 (UTC)
commit 100864143795d74dfeae2eb3d32ec2ff70d4918f
Author: Xan Lopez <xan gnome org>
Date: Sat Dec 5 23:47:43 2009 +0200
adblock: tiny style fixes
extensions/adblock/ad-blocker.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/extensions/adblock/ad-blocker.c b/extensions/adblock/ad-blocker.c
index a227f8a..fda1e52 100644
--- a/extensions/adblock/ad-blocker.c
+++ b/extensions/adblock/ad-blocker.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Copyright © 2004 Adam Hooper
*
@@ -15,7 +16,6 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
- * $Id$
*/
#include "config.h"
@@ -91,14 +91,18 @@ ad_blocker_new (void)
void
ad_blocker_blocked_uri (AdBlocker *blocker)
{
- blocker->priv->num_blocked++;
+ g_return_if_fail (IS_AD_BLOCKER (blocker));
- g_object_notify (G_OBJECT (blocker), "num-blocked");
+ blocker->priv->num_blocked++;
+
+ g_object_notify (G_OBJECT (blocker), "num-blocked");
}
void
ad_blocker_reset (AdBlocker *blocker)
{
+ g_return_if_fail (IS_AD_BLOCKER (blocker));
+
blocker->priv->num_blocked = 0;
switch (blocker->priv->noblock_state) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]