aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-06-05 04:53:10 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-06-09 01:14:48 +0800
commitf014ab82c81078d60cb1df8c986305c2cc9948c2 (patch)
treec3bde4e5da923c9ee082fcb994b10c2ce2f61dc2 /e-util
parent7428fc93d58921bab9968a999172b843af2a2244 (diff)
downloadgsoc2013-evolution-f014ab82c81078d60cb1df8c986305c2cc9948c2.tar
gsoc2013-evolution-f014ab82c81078d60cb1df8c986305c2cc9948c2.tar.gz
gsoc2013-evolution-f014ab82c81078d60cb1df8c986305c2cc9948c2.tar.bz2
gsoc2013-evolution-f014ab82c81078d60cb1df8c986305c2cc9948c2.tar.lz
gsoc2013-evolution-f014ab82c81078d60cb1df8c986305c2cc9948c2.tar.xz
gsoc2013-evolution-f014ab82c81078d60cb1df8c986305c2cc9948c2.tar.zst
gsoc2013-evolution-f014ab82c81078d60cb1df8c986305c2cc9948c2.zip
Coding style and whitespace cleanups.
Diffstat (limited to 'e-util')
-rw-r--r--e-util/e-dialog-widgets.c20
-rw-r--r--e-util/e-plugin.c3
2 files changed, 13 insertions, 10 deletions
diff --git a/e-util/e-dialog-widgets.c b/e-util/e-dialog-widgets.c
index 9a47e81fc4..60867315b0 100644
--- a/e-util/e-dialog-widgets.c
+++ b/e-util/e-dialog-widgets.c
@@ -79,7 +79,6 @@ e_dialog_editable_set (GtkWidget *widget, const gchar *value)
{
gint pos = 0;
- g_return_if_fail (widget != NULL);
g_return_if_fail (GTK_IS_EDITABLE (widget));
gtk_editable_delete_text (GTK_EDITABLE (widget), 0, -1);
@@ -101,7 +100,6 @@ e_dialog_editable_set (GtkWidget *widget, const gchar *value)
gchar *
e_dialog_editable_get (GtkWidget *widget)
{
- g_return_val_if_fail (widget != NULL, NULL);
g_return_val_if_fail (GTK_IS_EDITABLE (widget), NULL);
return gtk_editable_get_chars (GTK_EDITABLE (widget), 0, -1);
@@ -122,7 +120,6 @@ e_dialog_combo_box_set (GtkWidget *widget, gint value, const gint *value_map)
{
gint i;
- g_return_if_fail (widget != NULL);
g_return_if_fail (GTK_IS_COMBO_BOX (widget));
g_return_if_fail (value_map != NULL);
@@ -131,8 +128,9 @@ e_dialog_combo_box_set (GtkWidget *widget, gint value, const gint *value_map)
if (i != -1)
gtk_combo_box_set_active (GTK_COMBO_BOX (widget), i);
else
- g_message ("e_dialog_combo_box_set(): could not find value %d in value map!",
- value);
+ g_message (
+ "e_dialog_combo_box_set(): could not "
+ "find value %d in value map!", value);
}
/**
@@ -150,17 +148,22 @@ e_dialog_combo_box_set (GtkWidget *widget, gint value, const gint *value_map)
gint
e_dialog_combo_box_get (GtkWidget *widget, const gint *value_map)
{
+ gint active;
gint i;
- g_return_val_if_fail (widget != NULL, -1);
g_return_val_if_fail (GTK_IS_COMBO_BOX (widget), -1);
g_return_val_if_fail (value_map != NULL, -1);
- i = index_to_value (value_map, gtk_combo_box_get_active (GTK_COMBO_BOX (widget)));
+ active = gtk_combo_box_get_active (GTK_COMBO_BOX (widget));
+ i = index_to_value (value_map, active);
+
if (i == -1) {
- g_message ("e_dialog_combo_box_get(): could not find index %d in value map!", i);
+ g_message (
+ "e_dialog_combo_box_get(): could not "
+ "find index %d in value map!", i);
return -1;
}
+
return i;
}
@@ -178,7 +181,6 @@ e_dialog_append_list_store_text (GtkTreeModel *list_store,
GtkTreeIter iter;
GtkListStore *store;
- g_return_if_fail (list_store != NULL);
g_return_if_fail (GTK_IS_LIST_STORE (list_store));
g_return_if_fail (text_column >= 0);
g_return_if_fail (text_value != NULL);
diff --git a/e-util/e-plugin.c b/e-util/e-plugin.c
index e0f1aecd22..52bbe101cb 100644
--- a/e-util/e-plugin.c
+++ b/e-util/e-plugin.c
@@ -408,7 +408,8 @@ ep_load (const gchar *filename, gint load_level)
ep = ep_load_plugin (root, pdoc);
if (ep && load_level == 1)
- e_plugin_invoke (ep, "load_plugin_type_register_function", NULL);
+ e_plugin_invoke (
+ ep, "load_plugin_type_register_function", NULL);
}
} else if (load_level == 2) {
ep = ep_load_plugin (root, pdoc);