~ubuntu-branches/ubuntu/wily/evolution/wily

« back to all changes in this revision

Viewing changes to modules/backup-restore/e-mail-config-restore-ready-page.c

  • Committer: Package Import Robot
  • Author(s): Mathieu Trudel-Lapierre
  • Date: 2012-07-03 23:07:40 UTC
  • mfrom: (1.1.92)
  • Revision ID: package-import@ubuntu.com-20120703230740-0hjh6kfpxsyb88gx
Tags: 3.5.3.1-0ubuntu1
* New upstream release 3.5.3.1.
* debian/control:
  - Add libwebkitgtk-3.0-dev, libjavascriptcoregtk-3.0-dev >= 1.8.0 to build
    dependencies.
  - Adjust Build-Depends for the new minimum versions required for EDS 3.5.
  - Also update evolution's Depends to require evolution-data-server >= 3.5,
    and << 3.6.
* debian/rules:
  - Update ELIBDIR to point to /usr/lib/evolution/3.6 now, as per the base
    version defined in configure.
  - Build all plugins rather than enabling experimental specifically; we can
    sort them to other packages after.
  - Drop the binary-install/evolution-common target.
* debian/patches/01_ubuntu_signature.patch: dropped; upstream code has changed
  sufficiently that it would pretty much need a rewrite; and Evolution is no
  longer the default shipped mail client on Desktop.
* debian/patches/04_delay_alarm_notifier.patch: refreshed.
* debian/patches/89_remove_component_id_registration.patch: dropped: we don't
  have UNE anymore and component ID registration has been moved to GSettings.
* debian/patches/10_revert_libevolution_avoid-version.patch: refreshed.
* debian/patches/91_add_u1_email_translations.patch: refreshed.
* debian/evolution-common.install:
  - Drop debian/signature.py.
  - Don't install /usr/share/mime-info; it's not built anymore.
* debian/signature.py: dropped; since we dropped the Ubuntu signature patch.
* debian/evolution.install: don't try to install files in /etc/gconf; evo
  has migrated to GSettings so there are no such files anymore.
* debian/evolution.install,
  debian/evolution-plugins.install,
  debian/evolution-plugins-experimental.install: remove the plugins that were
  converted to modules. Modules are already installed by libevolution.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * e-mail-config-restore-ready-page.c
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or
 
5
 * modify it under the terms of the GNU Lesser General Public
 
6
 * License as published by the Free Software Foundation; either
 
7
 * version 2 of the License, or (at your option) version 3.
 
8
 *
 
9
 * This program is distributed in the hope that it will be useful,
 
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
12
 * Lesser General Public License for more details.
 
13
 *
 
14
 * You should have received a copy of the GNU Lesser General Public
 
15
 * License along with the program; if not, see <http://www.gnu.org/licenses/>
 
16
 *
 
17
 */
 
18
 
 
19
/* NOTE: This page is never actually shown to the user.  It works as a
 
20
 *       placeholder, visible only when the user chooses a backup file
 
21
 *       to restore.  As soon as we arrive on this page we execl() the
 
22
 *       "evolution-backup" tool, and the startup wizard disappears. */
 
23
 
 
24
#include "e-mail-config-restore-ready-page.h"
 
25
 
 
26
#include <config.h>
 
27
#include <glib/gi18n-lib.h>
 
28
 
 
29
/* Forward Declarations */
 
30
static void     e_mail_config_restore_ready_page_interface_init
 
31
                                        (EMailConfigPageInterface *interface);
 
32
 
 
33
G_DEFINE_DYNAMIC_TYPE_EXTENDED (
 
34
        EMailConfigRestoreReadyPage,
 
35
        e_mail_config_restore_ready_page,
 
36
        GTK_TYPE_BOX,
 
37
        0,
 
38
        G_IMPLEMENT_INTERFACE_DYNAMIC (
 
39
                E_TYPE_MAIL_CONFIG_PAGE,
 
40
                e_mail_config_restore_ready_page_interface_init))
 
41
 
 
42
static void
 
43
e_mail_config_restore_ready_page_class_init (EMailConfigRestoreReadyPageClass *class)
 
44
{
 
45
}
 
46
 
 
47
static void
 
48
e_mail_config_restore_ready_page_class_finalize (EMailConfigRestoreReadyPageClass *class)
 
49
{
 
50
}
 
51
 
 
52
static void
 
53
e_mail_config_restore_ready_page_interface_init (EMailConfigPageInterface *interface)
 
54
{
 
55
        /* Keep the title identical to EMailConfigRestorePage
 
56
         * so it's only shown once in the assistant sidebar. */
 
57
        interface->title = _("Restore from Backup");
 
58
        interface->sort_order = E_MAIL_CONFIG_RESTORE_READY_PAGE_SORT_ORDER;
 
59
}
 
60
 
 
61
static void
 
62
e_mail_config_restore_ready_page_init (EMailConfigRestoreReadyPage *page)
 
63
{
 
64
}
 
65
 
 
66
void
 
67
e_mail_config_restore_ready_page_type_register (GTypeModule *type_module)
 
68
{
 
69
        /* XXX G_DEFINE_DYNAMIC_TYPE declares a static type registration
 
70
         *     function, so we have to wrap it with a public function in
 
71
         *     order to register types from a separate compilation unit. */
 
72
        e_mail_config_restore_ready_page_register_type (type_module);
 
73
}
 
74
 
 
75
EMailConfigPage *
 
76
e_mail_config_restore_ready_page_new (void)
 
77
{
 
78
        return g_object_new (E_TYPE_MAIL_CONFIG_RESTORE_READY_PAGE, NULL);
 
79
}
 
80