empathy r2174 - trunk/libempathy



Author: xclaesse
Date: Fri Jan  9 16:14:40 2009
New Revision: 2174
URL: http://svn.gnome.org/viewvc/empathy?rev=2174&view=rev

Log:
Style fixes

Signed-off-by: Sjoerd Simons <sjoerd simons collabora co uk>

Modified:
   trunk/libempathy/empathy-message.c
   trunk/libempathy/empathy-message.h

Modified: trunk/libempathy/empathy-message.c
==============================================================================
--- trunk/libempathy/empathy-message.c	(original)
+++ trunk/libempathy/empathy-message.c	Fri Jan  9 16:14:40 2009
@@ -37,7 +37,7 @@
 	EmpathyContact           *receiver;
 	gchar                    *body;
 	time_t                    timestamp;
-	guint		                  id;
+	guint                     id;
 } EmpathyMessagePriv;
 
 static void empathy_message_finalize   (GObject            *object);
@@ -485,6 +485,8 @@
 {
 	EmpathyMessagePriv *priv = GET_PRIV (message);
 
+	g_return_val_if_fail (EMPATHY_IS_MESSAGE (message), 0);
+
 	return priv->id;
 }
 

Modified: trunk/libempathy/empathy-message.h
==============================================================================
--- trunk/libempathy/empathy-message.h	(original)
+++ trunk/libempathy/empathy-message.h	Fri Jan  9 16:14:40 2009
@@ -72,8 +72,8 @@
 TpChannelTextMessageType empathy_message_type_from_str     (const gchar              *type_str);
 const gchar *            empathy_message_type_to_str       (TpChannelTextMessageType  type);
 
-guint empathy_message_get_id (EmpathyMessage *message);
-void  empathy_message_set_id (EmpathyMessage *message, guint id);
+guint                    empathy_message_get_id (EmpathyMessage *message);
+void                     empathy_message_set_id (EmpathyMessage *message, guint id);
 
 G_END_DECLS
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]