diff options
author | Travis Reitter <treitter@gmail.com> | 2010-07-08 10:22:15 +0800 |
---|---|---|
committer | Travis Reitter <treitter@gmail.com> | 2010-07-21 07:12:36 +0800 |
commit | 7473d7a97d02be9aeefa271269184485ddf460a4 (patch) | |
tree | 28947f297e03ec2a0098b72e373381e65163f6de /libempathy-gtk/empathy-contact-widget.c | |
parent | a854cb126541cda286f4f48d2962c43e3be8a4f5 (diff) | |
download | gsoc2013-empathy-7473d7a97d02be9aeefa271269184485ddf460a4.tar gsoc2013-empathy-7473d7a97d02be9aeefa271269184485ddf460a4.tar.gz gsoc2013-empathy-7473d7a97d02be9aeefa271269184485ddf460a4.tar.bz2 gsoc2013-empathy-7473d7a97d02be9aeefa271269184485ddf460a4.tar.lz gsoc2013-empathy-7473d7a97d02be9aeefa271269184485ddf460a4.tar.xz gsoc2013-empathy-7473d7a97d02be9aeefa271269184485ddf460a4.tar.zst gsoc2013-empathy-7473d7a97d02be9aeefa271269184485ddf460a4.zip |
Use explicit boolean expressions for if-conditionals, according to Telepathy style.
Diffstat (limited to 'libempathy-gtk/empathy-contact-widget.c')
-rw-r--r-- | libempathy-gtk/empathy-contact-widget.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libempathy-gtk/empathy-contact-widget.c b/libempathy-gtk/empathy-contact-widget.c index 851aa5313..99dd077fe 100644 --- a/libempathy-gtk/empathy-contact-widget.c +++ b/libempathy-gtk/empathy-contact-widget.c @@ -577,12 +577,12 @@ contact_widget_cell_toggled (GtkCellRendererToggle *cell, gtk_list_store_set (store, &iter, COL_ENABLED, !enabled, -1); gtk_tree_path_free (path); - if (group) + if (group != NULL) { FolksIndividual *individual = folks_individual_from_empathy_contact ( information->contact); - if (individual) + if (individual != NULL) { folks_groups_change_group (FOLKS_GROUPS (individual), group, !enabled); g_object_unref (individual); @@ -810,7 +810,7 @@ contact_widget_button_group_clicked_cb (GtkButton *button, individual = folks_individual_from_empathy_contact (information->contact); - if (individual) + if (individual != NULL) { folks_groups_change_group (FOLKS_GROUPS (individual), group, TRUE); g_object_unref (individual); @@ -1339,7 +1339,7 @@ contact_widget_entry_alias_focus_event_cb (GtkEditable *editable, FolksIndividual *individual = folks_individual_from_empathy_contact ( information->contact); - if (individual) + if (individual != NULL) { folks_alias_set_alias (FOLKS_ALIAS (individual), alias); g_object_unref (individual); @@ -1537,7 +1537,7 @@ contact_widget_contact_update (EmpathyContactWidget *information) FolksIndividual *individual = folks_individual_from_empathy_contact ( information->contact); - if (individual) + if (individual != NULL) { gboolean is_favourite = folks_favourite_get_is_favourite ( FOLKS_FAVOURITE (individual)); @@ -1674,7 +1674,7 @@ favourite_toggled_cb (GtkToggleButton *button, FolksIndividual *individual = folks_individual_from_empathy_contact ( information->contact); - if (individual) + if (individual != NULL) { gboolean active = gtk_toggle_button_get_active (button); folks_favourite_set_is_favourite (FOLKS_FAVOURITE (individual), active); |