~ubuntu-branches/ubuntu/saucy/epiphany-browser/saucy

« back to all changes in this revision

Viewing changes to lib/widgets/gd-main-view.h

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2012-10-02 20:30:38 UTC
  • mfrom: (1.6.14)
  • Revision ID: package-import@ubuntu.com-20121002203038-ijw6x1x3vgv6tyi5
Tags: 3.6.0-0ubuntu1
* New upstream release (LP: #1033909)
  - New overview with most visited sites as start page (LP: #343397)
* Rename gir1.2-epiphany-3.4 -> gir1.2-epiphany-3.6
* debian/control.in:
  - Bump minimum webkit and libsoup
  - Drop build-depends on gnome-doc-utils and seed
  - Build-depend on gcr and gnome-desktop3
* debian/rules:
  - Copy Debian fix to rename epiphany.desktop to
    epiphany-browser.desktop so that the shell recognizes it.
* debian/patches/00_epiphany-browser.patch: Refreshed
* debian/patches/14_pkglibdir.patch:
  - Dropped, applied in new version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (c) 2011 Red Hat, Inc.
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or modify
 
5
 * it under the terms of the GNU Lesser General Public License as published by 
 
6
 * the Free Software Foundation; either version 2 of the License, or (at your
 
7
 * option) any later version.
 
8
 *
 
9
 * This program is distributed in the hope that it will be useful, but
 
10
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 
11
 * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public 
 
12
 * License for more details.
 
13
 *
 
14
 * You should have received a copy of the GNU Lesser General Public License 
 
15
 * along with this program; if not, write to the Free Software Foundation,
 
16
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
17
 *
 
18
 * Author: Cosimo Cecchi <cosimoc@redhat.com>
 
19
 *
 
20
 */
 
21
 
 
22
#ifndef __GD_MAIN_VIEW_H__
 
23
#define __GD_MAIN_VIEW_H__
 
24
 
 
25
#include <glib-object.h>
 
26
 
 
27
#include <gtk/gtk.h>
 
28
 
 
29
G_BEGIN_DECLS
 
30
 
 
31
#define GD_TYPE_MAIN_VIEW gd_main_view_get_type()
 
32
 
 
33
#define GD_MAIN_VIEW(obj) \
 
34
  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
 
35
   GD_TYPE_MAIN_VIEW, GdMainView))
 
36
 
 
37
#define GD_MAIN_VIEW_CLASS(klass) \
 
38
  (G_TYPE_CHECK_CLASS_CAST ((klass), \
 
39
   GD_TYPE_MAIN_VIEW, GdMainViewIface))
 
40
 
 
41
#define GD_IS_MAIN_VIEW(obj) \
 
42
  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
 
43
   GD_TYPE_MAIN_VIEW))
 
44
 
 
45
#define GD_IS_MAIN_VIEW_CLASS(klass) \
 
46
  (G_TYPE_CHECK_CLASS_TYPE ((klass), \
 
47
   GD_TYPE_MAIN_VIEW))
 
48
 
 
49
#define GD_MAIN_VIEW_GET_IFACE(obj) \
 
50
  (G_TYPE_INSTANCE_GET_INTERFACE ((obj), \
 
51
   GD_TYPE_MAIN_VIEW, GdMainViewIface))
 
52
 
 
53
typedef struct _GdMainView GdMainView;
 
54
typedef struct _GdMainViewClass GdMainViewClass;
 
55
typedef struct _GdMainViewPrivate GdMainViewPrivate;
 
56
 
 
57
typedef enum {
 
58
  GD_MAIN_COLUMN_ID,
 
59
  GD_MAIN_COLUMN_URI,
 
60
  GD_MAIN_COLUMN_TITLE,
 
61
  GD_MAIN_COLUMN_AUTHOR,
 
62
  GD_MAIN_COLUMN_ICON,
 
63
  GD_MAIN_COLUMN_MTIME,
 
64
  GD_MAIN_COLUMN_SELECTED
 
65
} GdMainColumns;
 
66
 
 
67
typedef enum {
 
68
  GD_MAIN_VIEW_ICON,
 
69
  GD_MAIN_VIEW_LIST
 
70
} GdMainViewType;
 
71
 
 
72
struct _GdMainView {
 
73
  GtkScrolledWindow parent;
 
74
 
 
75
  GdMainViewPrivate *priv;
 
76
};
 
77
 
 
78
struct _GdMainViewClass {
 
79
  GtkScrolledWindowClass parent_class;
 
80
 
 
81
  gboolean (* item_deleted) (GdMainView *self,
 
82
                             const gchar *path);
 
83
};
 
84
 
 
85
GType gd_main_view_get_type (void) G_GNUC_CONST;
 
86
 
 
87
GdMainView * gd_main_view_new (GdMainViewType type);
 
88
void         gd_main_view_set_view_type (GdMainView *self,
 
89
                                         GdMainViewType type);
 
90
GdMainViewType gd_main_view_get_view_type (GdMainView *self);
 
91
 
 
92
void gd_main_view_set_selection_mode (GdMainView *self,
 
93
                                      gboolean selection_mode);
 
94
GdMainViewType gd_main_view_get_selection_mode (GdMainView *self);
 
95
 
 
96
GList * gd_main_view_get_selection (GdMainView *self);
 
97
 
 
98
GtkTreeModel * gd_main_view_get_model (GdMainView *self);
 
99
void gd_main_view_set_model (GdMainView *self,
 
100
                             GtkTreeModel *model);
 
101
 
 
102
GtkWidget * gd_main_view_get_generic_view (GdMainView *self);
 
103
 
 
104
void        gd_main_view_item_deleted (GdMainView *self, const gchar *path);
 
105
 
 
106
G_END_DECLS
 
107
 
 
108
#endif /* __GD_MAIN_VIEW_H__ */