~noskcaj/ubuntu/vivid/epiphany-browser/3.14

« back to all changes in this revision

Viewing changes to lib/ephy-loader.c

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher
  • Date: 2013-11-13 11:39:29 UTC
  • mfrom: (105.1.10 sid)
  • Revision ID: package-import@ubuntu.com-20131113113929-1ufk6ama9z3ejgjj
Tags: 3.8.2-4ubuntu1
* Resynchronize on Debian, remaining changes
* debian/patches/07_bookmarks.patch:
  - Ubuntu-specific default bookmarks, borrowed from Firefox
* debian/patches/81_ubuntu_force_update_bookmarks_menu.patch:
  - update the bookmarks on changes, needed for appmenu to work correctly

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 *  Copyright © 2003 Marco Pesenti Gritti
3
 
 *  Copyright © 2003, 2004 Christian Persch
4
 
 *
5
 
 *  This program is free software; you can redistribute it and/or modify
6
 
 *  it under the terms of the GNU General Public License as published by
7
 
 *  the Free Software Foundation; either version 2, or (at your option)
8
 
 *  any later version.
9
 
 *
10
 
 *  This program is distributed in the hope that it will be useful,
11
 
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 
 *  GNU General Public License for more details.
14
 
 *
15
 
 *  You should have received a copy of the GNU General Public License
16
 
 *  along with this program; if not, write to the Free Software
17
 
 *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18
 
 *
19
 
 */
20
 
 
21
 
#include "config.h"
22
 
 
23
 
#include "ephy-loader.h"
24
 
 
25
 
GType
26
 
ephy_loader_get_type (void)
27
 
{
28
 
        static GType type = 0;
29
 
 
30
 
        if (G_UNLIKELY (type == 0))
31
 
        {
32
 
                const GTypeInfo our_info =
33
 
                {
34
 
                        sizeof (EphyLoaderIface),
35
 
                        NULL,
36
 
                        NULL,
37
 
                };
38
 
        
39
 
                type = g_type_register_static (G_TYPE_INTERFACE,
40
 
                                               "EphyLoader",
41
 
                                               &our_info, 0);
42
 
        }
43
 
 
44
 
        return type;
45
 
}
46
 
 
47
 
const char *
48
 
ephy_loader_type (const EphyLoader *loader)
49
 
{
50
 
        EphyLoaderIface *iface = EPHY_LOADER_GET_IFACE (loader);
51
 
        return iface->type;
52
 
}
53
 
 
54
 
GObject *
55
 
ephy_loader_get_object (EphyLoader *loader,
56
 
                        GKeyFile *keyfile)
57
 
{
58
 
        EphyLoaderIface *iface = EPHY_LOADER_GET_IFACE (loader);
59
 
        return iface->get_object (loader, keyfile);
60
 
}
61
 
 
62
 
void
63
 
ephy_loader_release_object (EphyLoader *loader,
64
 
                             GObject *object)
65
 
{
66
 
        EphyLoaderIface *iface = EPHY_LOADER_GET_IFACE (loader);
67
 
        iface->release_object (loader, object);
68
 
}