~ubuntu-branches/ubuntu/wily/gnome-software/wily-proposed

« back to all changes in this revision

Viewing changes to src/gs-page.h

  • Committer: Package Import Robot
  • Author(s): Michael Biebl
  • Date: 2015-07-22 00:03:04 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20150722000304-ctnkwytku720qft7
Tags: 3.16.4-1
* New upstream release.
* Update Build-Depends as per configure.ac:
  - Add appstream-util.
  - Add libpolkit-gobject-1-dev.
  - Bump libappstream-glib-dev to (>= 0.3.4).
  - Bump libgtk-3-dev to (>= 3.16).
* Drop hard-coded dependency on libappstream-glib7 now that the library
  provides a symbols file.
* Use dh_install's exclude (-X) functionality to not install the .a and .la
  files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
 
2
 *
 
3
 * Copyright (C) 2013 Richard Hughes <richard@hughsie.com>
 
4
 *
 
5
 * Licensed under the GNU General Public License Version 2
 
6
 *
 
7
 * This program is free software; you can redistribute it and/or modify
 
8
 * it under the terms of the GNU General Public License as published by
 
9
 * the Free Software Foundation; either version 2 of the License, or
 
10
 * (at your option) any later version.
 
11
 *
 
12
 * This program is distributed in the hope that it will be useful,
 
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
 * GNU General Public License for more details.
 
16
 *
 
17
 * You should have received a copy of the GNU General Public License
 
18
 * along with this program; if not, write to the Free Software
 
19
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
20
 */
 
21
 
 
22
#ifndef GS_PAGE_H
 
23
#define GS_PAGE_H
 
24
 
 
25
#include <glib-object.h>
 
26
#include <gtk/gtk.h>
 
27
 
 
28
#include "gs-shell.h"
 
29
#include "gs-plugin-loader.h"
 
30
 
 
31
G_BEGIN_DECLS
 
32
 
 
33
#define GS_TYPE_PAGE            (gs_page_get_type ())
 
34
#define GS_PAGE(o)              (G_TYPE_CHECK_INSTANCE_CAST ((o), GS_TYPE_PAGE, GsPage))
 
35
#define GS_PAGE_CLASS(k)        (G_TYPE_CHECK_CLASS_CAST((k), GS_TYPE_PAGE, GsPageClass))
 
36
#define GS_IS_PAGE(o)           (G_TYPE_CHECK_INSTANCE_TYPE ((o), GS_TYPE_PAGE))
 
37
#define GS_IS_PAGE_CLASS(k)     (G_TYPE_CHECK_CLASS_TYPE ((k), GS_TYPE_PAGE))
 
38
#define GS_PAGE_GET_CLASS(o)    (G_TYPE_INSTANCE_GET_CLASS ((o), GS_TYPE_PAGE, GsPageClass))
 
39
 
 
40
typedef struct _GsPage          GsPage;
 
41
typedef struct _GsPageClass     GsPageClass;
 
42
typedef struct _GsPagePrivate   GsPagePrivate;
 
43
 
 
44
struct _GsPageClass
 
45
{
 
46
        GtkBinClass      parent_class;
 
47
 
 
48
        void            (*app_installed)        (GsPage          *page,
 
49
                                                 GsApp           *app);
 
50
        void            (*app_removed)          (GsPage          *page,
 
51
                                                 GsApp           *app);
 
52
};
 
53
 
 
54
struct _GsPage
 
55
{
 
56
         GtkBin          parent;
 
57
};
 
58
 
 
59
GType            gs_page_get_type                       (void);
 
60
GsPage          *gs_page_new                            (void);
 
61
void             gs_page_install_app                    (GsPage         *page,
 
62
                                                         GsApp          *app);
 
63
void             gs_page_remove_app                     (GsPage         *page,
 
64
                                                         GsApp          *app);
 
65
void             gs_page_setup                          (GsPage         *page,
 
66
                                                         GsShell        *shell,
 
67
                                                         GsPluginLoader *plugin_loader,
 
68
                                                         GCancellable   *cancellable);
 
69
 
 
70
G_END_DECLS
 
71
 
 
72
#endif /* GS_PAGE_H */
 
73
 
 
74
/* vim: set noexpandtab: */