diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-12-01 10:53:20 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2012-02-20 23:04:25 +0800 |
commit | 23f5773903d64a554d977ae7d0ebbaca73528f1f (patch) | |
tree | 104e1a59da8bf96b004bce204b79f47bbe0a6d13 /plugins/attachment-reminder | |
parent | 49bc4c2d765ee1780c23fdc9f42152850dabb220 (diff) | |
download | gsoc2013-evolution-23f5773903d64a554d977ae7d0ebbaca73528f1f.tar gsoc2013-evolution-23f5773903d64a554d977ae7d0ebbaca73528f1f.tar.gz gsoc2013-evolution-23f5773903d64a554d977ae7d0ebbaca73528f1f.tar.bz2 gsoc2013-evolution-23f5773903d64a554d977ae7d0ebbaca73528f1f.tar.lz gsoc2013-evolution-23f5773903d64a554d977ae7d0ebbaca73528f1f.tar.xz gsoc2013-evolution-23f5773903d64a554d977ae7d0ebbaca73528f1f.tar.zst gsoc2013-evolution-23f5773903d64a554d977ae7d0ebbaca73528f1f.zip |
Coding style and whitespace cleanup.
Diffstat (limited to 'plugins/attachment-reminder')
-rw-r--r-- | plugins/attachment-reminder/attachment-reminder.c | 48 |
1 files changed, 34 insertions, 14 deletions
diff --git a/plugins/attachment-reminder/attachment-reminder.c b/plugins/attachment-reminder/attachment-reminder.c index 9f2837d923..9eb8dd77af 100644 --- a/plugins/attachment-reminder/attachment-reminder.c +++ b/plugins/attachment-reminder/attachment-reminder.c @@ -60,11 +60,16 @@ enum { CLUE_N_COLUMNS }; -gint e_plugin_lib_enable (EPlugin *ep, gint enable); -GtkWidget *e_plugin_lib_get_configure_widget (EPlugin *plugin); - -void org_gnome_evolution_attachment_reminder (EPlugin *ep, EMEventTargetComposer *t); -GtkWidget * org_gnome_attachment_reminder_config_option (EPlugin *plugin, struct _EConfigHookItemFactoryData *data); +gint e_plugin_lib_enable (EPlugin *ep, + gint enable); +GtkWidget * e_plugin_lib_get_configure_widget + (EPlugin *plugin); +void org_gnome_evolution_attachment_reminder + (EPlugin *ep, + EMEventTargetComposer *t); +GtkWidget * org_gnome_attachment_reminder_config_option + (EPlugin *plugin, + EConfigHookItemFactoryData *data); static gboolean ask_for_missing_attachment (EPlugin *ep, GtkWindow *widget); static gboolean check_for_attachment_clues (gchar *msg); @@ -99,9 +104,14 @@ org_gnome_evolution_attachment_reminder (EPlugin *ep, g_byte_array_free (raw_msg_barray, TRUE); /* Set presend_check_status for the composer*/ - if (check_for_attachment_clues (filtered_str) && !check_for_attachment (t->composer)) + if (check_for_attachment_clues (filtered_str) && + !check_for_attachment (t->composer)) { if (!ask_for_missing_attachment (ep, (GtkWindow *) t->composer)) - g_object_set_data ((GObject *) t->composer, "presend_check_status", GINT_TO_POINTER(1)); + g_object_set_data ( + G_OBJECT (t->composer), + "presend_check_status", + GINT_TO_POINTER (1)); + } g_free (filtered_str); } @@ -355,11 +365,14 @@ clue_edit_clicked (GtkButton *button, if (!gtk_tree_selection_get_selected (selection, &model, &iter)) return; - focus_col = gtk_tree_view_get_column (GTK_TREE_VIEW (ui->treeview), CLUE_KEYWORD_COLUMN); + focus_col = gtk_tree_view_get_column ( + GTK_TREE_VIEW (ui->treeview), CLUE_KEYWORD_COLUMN); path = gtk_tree_model_get_path (model, &iter); if (path) { - gtk_tree_view_set_cursor (GTK_TREE_VIEW (ui->treeview), path, focus_col, TRUE); + gtk_tree_view_set_cursor ( + GTK_TREE_VIEW (ui->treeview), + path, focus_col, TRUE); gtk_tree_path_free (path); } } @@ -419,12 +432,16 @@ e_plugin_lib_get_configure_widget (EPlugin *plugin) clue_container = gtk_hbox_new (FALSE, 6); gtk_widget_show (clue_container); - gtk_box_pack_start (GTK_BOX (reminder_configuration_box), clue_container, TRUE, TRUE, 0); + gtk_box_pack_start ( + GTK_BOX (reminder_configuration_box), + clue_container, TRUE, TRUE, 0); scrolledwindow1 = gtk_scrolled_window_new (NULL, NULL); gtk_widget_show (scrolledwindow1); gtk_box_pack_start (GTK_BOX (clue_container), scrolledwindow1, TRUE, TRUE, 0); - gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow1), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); + gtk_scrolled_window_set_policy ( + GTK_SCROLLED_WINDOW (scrolledwindow1), + GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); clue_treeview = gtk_tree_view_new (); gtk_widget_show (clue_treeview); @@ -458,11 +475,14 @@ e_plugin_lib_get_configure_widget (EPlugin *plugin) ui->store = gtk_list_store_new (CLUE_N_COLUMNS, G_TYPE_STRING); - gtk_tree_view_set_model (GTK_TREE_VIEW (ui->treeview), GTK_TREE_MODEL (ui->store)); + gtk_tree_view_set_model ( + GTK_TREE_VIEW (ui->treeview), + GTK_TREE_MODEL (ui->store)); renderer = gtk_cell_renderer_text_new (); - gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (ui->treeview), -1, _("Keywords"), - renderer, "text", CLUE_KEYWORD_COLUMN, NULL); + gtk_tree_view_insert_column_with_attributes ( + GTK_TREE_VIEW (ui->treeview), -1, _("Keywords"), + renderer, "text", CLUE_KEYWORD_COLUMN, NULL); g_object_set (renderer, "editable", TRUE, NULL); g_signal_connect ( renderer, "edited", |