aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/save-calendar
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-11-10 11:40:00 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-11-11 04:54:43 +0800
commit2c4ae5e7685c462f8d464448e4617b8dea029e72 (patch)
treec34f0cbb7c500ff70f10fce846631b0a948b341c /plugins/save-calendar
parent583da46b8caf4b2a8b548b03c38fe0e84164abfb (diff)
downloadgsoc2013-evolution-2c4ae5e7685c462f8d464448e4617b8dea029e72.tar
gsoc2013-evolution-2c4ae5e7685c462f8d464448e4617b8dea029e72.tar.gz
gsoc2013-evolution-2c4ae5e7685c462f8d464448e4617b8dea029e72.tar.bz2
gsoc2013-evolution-2c4ae5e7685c462f8d464448e4617b8dea029e72.tar.lz
gsoc2013-evolution-2c4ae5e7685c462f8d464448e4617b8dea029e72.tar.xz
gsoc2013-evolution-2c4ae5e7685c462f8d464448e4617b8dea029e72.tar.zst
gsoc2013-evolution-2c4ae5e7685c462f8d464448e4617b8dea029e72.zip
Coding style and whitespace cleanup.
Diffstat (limited to 'plugins/save-calendar')
-rw-r--r--plugins/save-calendar/rdf-format.c5
-rw-r--r--plugins/save-calendar/save-calendar.c30
2 files changed, 21 insertions, 14 deletions
diff --git a/plugins/save-calendar/rdf-format.c b/plugins/save-calendar/rdf-format.c
index c4326ccd0f..28e0b4c35f 100644
--- a/plugins/save-calendar/rdf-format.c
+++ b/plugins/save-calendar/rdf-format.c
@@ -75,8 +75,9 @@ display_error_message (GtkWidget *parent,
{
GtkWidget *dialog;
- dialog = gtk_message_dialog_new (GTK_WINDOW (parent), 0, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE,
- "%s", error->message);
+ dialog = gtk_message_dialog_new (
+ GTK_WINDOW (parent), 0, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE,
+ "%s", error->message);
gtk_dialog_run (GTK_DIALOG (dialog));
gtk_widget_destroy (dialog);
}
diff --git a/plugins/save-calendar/save-calendar.c b/plugins/save-calendar/save-calendar.c
index 6577335519..9e2c99754e 100644
--- a/plugins/save-calendar/save-calendar.c
+++ b/plugins/save-calendar/save-calendar.c
@@ -87,7 +87,8 @@ on_type_combobox_changed (GtkComboBox *combobox,
gtk_combo_box_get_active_iter (combobox, &iter);
- gtk_tree_model_get (model, &iter,
+ gtk_tree_model_get (
+ model, &iter,
DEST_HANDLER, &handler, -1);
if (handler->options_widget)
@@ -152,18 +153,21 @@ ask_destination_and_save (ESourceSelector *selector,
gtk_list_store_clear (store);
renderer = gtk_cell_renderer_text_new ();
gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (combo), renderer, TRUE);
- gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (combo),
- renderer, "text", DEST_NAME_COLUMN, NULL);
+ gtk_cell_layout_set_attributes (
+ GTK_CELL_LAYOUT (combo),
+ renderer, "text", DEST_NAME_COLUMN, NULL);
while (format_handlers) {
handler = format_handlers->data;
gtk_list_store_append (store, &iter);
- gtk_list_store_set (store, &iter, DEST_NAME_COLUMN,
+ gtk_list_store_set (
+ store, &iter, DEST_NAME_COLUMN,
handler->combo_label, -1);
gtk_list_store_set (store, &iter, DEST_HANDLER, handler, -1);
if (handler->options_widget) {
- gtk_box_pack_start (GTK_BOX (extra_widget),
+ gtk_box_pack_start (
+ GTK_BOX (extra_widget),
GTK_WIDGET (handler->options_widget), TRUE, TRUE, 0);
gtk_widget_hide (handler->options_widget);
}
@@ -182,12 +186,13 @@ ask_destination_and_save (ESourceSelector *selector,
G_CALLBACK (on_type_combobox_changed), extra_widget);
g_object_set_data (G_OBJECT (combo), "format-box", hbox);
- dialog = gtk_file_chooser_dialog_new (_("Select destination file"),
- NULL,
- GTK_FILE_CHOOSER_ACTION_SAVE,
- GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
- GTK_STOCK_SAVE_AS, GTK_RESPONSE_OK,
- NULL);
+ dialog = gtk_file_chooser_dialog_new (
+ _("Select destination file"),
+ NULL,
+ GTK_FILE_CHOOSER_ACTION_SAVE,
+ GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
+ GTK_STOCK_SAVE_AS, GTK_RESPONSE_OK,
+ NULL);
gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
gtk_file_chooser_set_extra_widget (GTK_FILE_CHOOSER (dialog), extra_widget);
@@ -201,7 +206,8 @@ ask_destination_and_save (ESourceSelector *selector,
gchar *tmp = NULL;
gtk_combo_box_get_active_iter (combo, &iter);
- gtk_tree_model_get (model, &iter,
+ gtk_tree_model_get (
+ model, &iter,
DEST_HANDLER, &handler, -1);
dest_uri = gtk_file_chooser_get_uri