aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-config.c
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@src.gnome.org>2007-08-31 13:23:46 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2007-08-31 13:23:46 +0800
commit9ea10deea3b27d7bde1b82792cae76b99b5610f6 (patch)
tree0ca0584e525ab8ff7e1e24ec61437406dcbcf5d4 /widgets/table/e-table-config.c
parent095302aef20099e51739209a4e4229379da85047 (diff)
downloadgsoc2013-evolution-9ea10deea3b27d7bde1b82792cae76b99b5610f6.tar
gsoc2013-evolution-9ea10deea3b27d7bde1b82792cae76b99b5610f6.tar.gz
gsoc2013-evolution-9ea10deea3b27d7bde1b82792cae76b99b5610f6.tar.bz2
gsoc2013-evolution-9ea10deea3b27d7bde1b82792cae76b99b5610f6.tar.lz
gsoc2013-evolution-9ea10deea3b27d7bde1b82792cae76b99b5610f6.tar.xz
gsoc2013-evolution-9ea10deea3b27d7bde1b82792cae76b99b5610f6.tar.zst
gsoc2013-evolution-9ea10deea3b27d7bde1b82792cae76b99b5610f6.zip
Move away from g_asserts from g_return*.
svn path=/trunk/; revision=34142
Diffstat (limited to 'widgets/table/e-table-config.c')
-rw-r--r--widgets/table/e-table-config.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/widgets/table/e-table-config.c b/widgets/table/e-table-config.c
index 8e5e36e6d9..dd92445a77 100644
--- a/widgets/table/e-table-config.c
+++ b/widgets/table/e-table-config.c
@@ -175,12 +175,12 @@ configure_combo_box_add (GtkComboBox *combo_box, const gchar *item,
COLUMN_ITEM, item, COLUMN_VALUE, value, -1);
index = g_object_get_data (G_OBJECT (combo_box), "index");
- g_assert (index != NULL);
+ g_return_if_fail (index != NULL);
/* Add an entry to the tree model index. */
path = gtk_tree_model_get_path (model, &iter);
reference = gtk_tree_row_reference_new (model, path);
- g_assert (reference != NULL);
+ g_return_if_fail (reference != NULL);
g_hash_table_insert (index, g_strdup (value), reference);
gtk_tree_path_free (path);
}
@@ -211,7 +211,7 @@ configure_combo_box_set_active (GtkComboBox *combo_box, const gchar *value)
GHashTable *index;
index = g_object_get_data (G_OBJECT (combo_box), "index");
- g_assert (index != NULL);
+ g_return_if_fail (index != NULL);
reference = g_hash_table_lookup (index, value);
if (reference != NULL) {
@@ -338,9 +338,9 @@ update_sort_and_group_config_dialog (ETableConfig *config, gboolean is_sort)
widgets [i].radio_ascending);
if (is_sort)
- g_assert (widgets [i].radio_ascending != config->group [i].radio_ascending);
+ g_return_if_fail (widgets [i].radio_ascending != config->group [i].radio_ascending);
else
- g_assert (widgets [i].radio_ascending != config->sort [i].radio_ascending);
+ g_return_if_fail (widgets [i].radio_ascending != config->sort [i].radio_ascending);
gtk_toggle_button_set_active (t, 1);
}