From fa5df0324942721999ae2dd7ad8425379fbc59c9 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 17 May 2011 10:03:16 +0200 Subject: coding style fixes --- src/empathy-invite-participant-dialog.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'src/empathy-invite-participant-dialog.c') diff --git a/src/empathy-invite-participant-dialog.c b/src/empathy-invite-participant-dialog.c index 743c460af..bdae6bf82 100644 --- a/src/empathy-invite-participant-dialog.c +++ b/src/empathy-invite-participant-dialog.c @@ -14,7 +14,7 @@ #include "empathy-invite-participant-dialog.h" -#include "libempathy-gtk/empathy-individual-view.h" +#include G_DEFINE_TYPE (EmpathyInviteParticipantDialog, empathy_invite_participant_dialog, GTK_TYPE_DIALOG); @@ -202,7 +202,7 @@ filter_func (GtkTreeModel *model, if (handle == 0) handle = empathy_contact_get_handle (member); - if (handle == tp_contact_get_handle (contact)) + if (handle == tp_contact_get_handle (contact)) { display = FALSE; break; @@ -218,9 +218,6 @@ filter_func (GtkTreeModel *model, static void empathy_invite_participant_dialog_init (EmpathyInviteParticipantDialog *self) { - EmpathyInviteParticipantDialogPrivate *priv = G_TYPE_INSTANCE_GET_PRIVATE ( - self, EMPATHY_TYPE_INVITE_PARTICIPANT_DIALOG, - EmpathyInviteParticipantDialogPrivate); GtkDialog *dialog = GTK_DIALOG (self); GtkWidget *label; char *str; @@ -229,7 +226,9 @@ empathy_invite_participant_dialog_init (EmpathyInviteParticipantDialog *self) GtkTreeSelection *selection; GtkWidget *scroll; - self->priv = priv; + self->priv = G_TYPE_INSTANCE_GET_PRIVATE ( + self, EMPATHY_TYPE_INVITE_PARTICIPANT_DIALOG, + EmpathyInviteParticipantDialogPrivate); content = gtk_dialog_get_content_area (dialog); @@ -253,8 +252,8 @@ empathy_invite_participant_dialog_init (EmpathyInviteParticipantDialog *self) empathy_individual_store_set_show_groups (self->priv->store, FALSE); - self->priv->view = empathy_individual_view_new (self->priv->store, - EMPATHY_INDIVIDUAL_VIEW_FEATURE_NONE , EMPATHY_INDIVIDUAL_FEATURE_NONE); + self->priv->view = empathy_individual_view_new (self->priv->store, + EMPATHY_INDIVIDUAL_VIEW_FEATURE_NONE, EMPATHY_INDIVIDUAL_FEATURE_NONE); empathy_individual_view_set_custom_filter (self->priv->view, filter_func, self); @@ -306,7 +305,7 @@ empathy_invite_participant_dialog_get_selected ( FolksIndividual *individual; TpContact *contact; - individual = empathy_individual_view_dup_selected (self->priv->view); + individual = empathy_individual_view_dup_selected (self->priv->view); if (individual == NULL) return NULL; -- cgit v1.2.3