~ubuntu-branches/ubuntu/precise/evolution/precise

« back to all changes in this revision

Viewing changes to plugins/prefer-plain/prefer-plain.c

  • Committer: Bazaar Package Importer
  • Author(s): Mathieu Trudel-Lapierre
  • Date: 2011-06-24 00:27:53 UTC
  • mfrom: (1.1.80 upstream)
  • Revision ID: james.westby@ubuntu.com-20110624002753-2vh1vjavlya7r103
Tags: 3.1.2-0ubuntu1
* New upstream release 3.1.2.
* debian/control: adjust Build-Depends to match new upstream requirements for
  the new release.
* debian/control: update evolution and evolution-dev Depends to require the
  right versions of e-d-s (>= 3.1, << 3.2), and drop libunique-3.0-dev.
* debian/control,
  debian/evolution.install: remove groupwise-features from the plugin list,
  it's now split out into a separate module.
* debian/patches/03_lpi.patch: refreshed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 */
22
22
 
23
23
#ifdef HAVE_CONFIG_H
24
 
#include "config.h"
 
24
#include <config.h>
25
25
#endif
26
26
 
27
27
#include <gtk/gtk.h>
122
122
                part = camel_multipart_get_part (mp, i);
123
123
 
124
124
                if (part != except) {
125
 
                        CamelMultipart *multipart = (CamelMultipart *)camel_medium_get_content ((CamelMedium *)part);
 
125
                        CamelMultipart *multipart = (CamelMultipart *) camel_medium_get_content ((CamelMedium *) part);
126
126
 
127
127
                        if (CAMEL_IS_MULTIPART (multipart)) {
128
128
                                export_as_attachments (multipart, format, stream, except);
136
136
void
137
137
org_gnome_prefer_plain_multipart_alternative (gpointer ep, EMFormatHookTarget *t)
138
138
{
139
 
        CamelMultipart *mp = (CamelMultipart *)camel_medium_get_content ((CamelMedium *)t->part);
 
139
        CamelMultipart *mp = (CamelMultipart *) camel_medium_get_content ((CamelMedium *) t->part);
140
140
        CamelMimePart *part, *display_part = NULL, *calendar_part = NULL;
141
141
        gint i, nparts, partidlen, displayid = 0, calendarid = 0;
142
142
 
292
292
        gtk_widget_show (check);
293
293
        g_signal_connect (check, "toggled", G_CALLBACK (epp_show_suppressed_toggled), NULL);
294
294
 
295
 
        dropdown = (GtkComboBox *)gtk_combo_box_new ();
 
295
        dropdown = (GtkComboBox *) gtk_combo_box_new ();
296
296
        cell = gtk_cell_renderer_text_new ();
297
297
        store = gtk_list_store_new (1, G_TYPE_STRING);
298
298
        for (i = 0; i < G_N_ELEMENTS (epp_options); i++) {
300
300
                gtk_list_store_set (store, &iter, 0, _(epp_options[i].label), -1);
301
301
        }
302
302
 
303
 
        gtk_cell_layout_pack_start ((GtkCellLayout *)dropdown, cell, TRUE);
 
303
        gtk_cell_layout_pack_start ((GtkCellLayout *) dropdown, cell, TRUE);
304
304
        gtk_cell_layout_set_attributes((GtkCellLayout *)dropdown, cell, "text", 0, NULL);
305
 
        gtk_combo_box_set_model (dropdown, (GtkTreeModel *)store);
 
305
        gtk_combo_box_set_model (dropdown, (GtkTreeModel *) store);
306
306
        /*gtk_combo_box_set_active(dropdown, -1);*/
307
307
        gtk_combo_box_set_active (dropdown, epp_mode);
308
 
        gtk_widget_show ((GtkWidget *)dropdown);
 
308
        gtk_widget_show ((GtkWidget *) dropdown);
309
309
 
310
310
        dropdown_label = gtk_label_new_with_mnemonic (_("HTML _Mode"));
311
311
        gtk_widget_show (dropdown_label);
312
 
        gtk_label_set_mnemonic_widget (GTK_LABEL (dropdown_label), (GtkWidget *)dropdown);
 
312
        gtk_label_set_mnemonic_widget (GTK_LABEL (dropdown_label), (GtkWidget *) dropdown);
313
313
 
314
314
        info = gtk_label_new (NULL);
315
315
        gtk_misc_set_alignment (GTK_MISC (info), 0.0, 0.5);
321
321
        g_signal_connect (dropdown, "changed", G_CALLBACK(epp_mode_changed), info);
322
322
 
323
323
        g_object_get (data->parent, "n-rows", &i, NULL);
324
 
        gtk_table_attach ((GtkTable *)data->parent, check, 0, 2, i, i + 1, GTK_FILL | GTK_EXPAND, 0, 0, 0);
325
 
        gtk_table_attach ((GtkTable *)data->parent, dropdown_label, 0, 1, i + 1, i + 2, 0, 0, 0, 0);
326
 
        gtk_table_attach ((GtkTable *)data->parent, (GtkWidget *)dropdown, 1, 2, i + 1, i + 2, GTK_FILL | GTK_EXPAND, 0, 0, 0);
327
 
        gtk_table_attach ((GtkTable *)data->parent, info, 1, 2, i + 2, i + 3, GTK_FILL | GTK_EXPAND, 0, 0, 0);
 
324
        gtk_table_attach ((GtkTable *) data->parent, check, 0, 2, i, i + 1, GTK_FILL | GTK_EXPAND, 0, 0, 0);
 
325
        gtk_table_attach ((GtkTable *) data->parent, dropdown_label, 0, 1, i + 1, i + 2, 0, 0, 0, 0);
 
326
        gtk_table_attach ((GtkTable *) data->parent, (GtkWidget *) dropdown, 1, 2, i + 1, i + 2, GTK_FILL | GTK_EXPAND, 0, 0, 0);
 
327
        gtk_table_attach ((GtkTable *) data->parent, info, 1, 2, i + 2, i + 3, GTK_FILL | GTK_EXPAND, 0, 0, 0);
328
328
 
329
329
        /* since this isnt dynamic, we don't need to track each item */
330
330
 
331
 
        return (GtkWidget *)dropdown;
 
331
        return (GtkWidget *) dropdown;
332
332
}
333
333
 
334
334
gint e_plugin_lib_enable (EPlugin *ep, gint enable);