~ubuntu-branches/ubuntu/vivid/liferea/vivid-proposed

« back to all changes in this revision

Viewing changes to src/ui/ui_subscription.h

  • Committer: Package Import Robot
  • Author(s): bojo42
  • Date: 2012-03-29 14:17:21 UTC
  • mfrom: (1.3.9) (3.2.5 sid)
  • Revision ID: package-import@ubuntu.com-20120329141721-tbfopcrc5797wxt7
Tags: 1.8.3-0.1ubuntu1
* New upstream release (LP: #290666, #371754, #741543, #716688)
* Merge from Debian unstable (LP: #935147), remaining changes:
* debian/patches:
  - drop gtk-status-icon.patch & notification-append as in upstream
  - drop fix_systray_behavior as mostly upstreamed and rest seems unused
  - 01_ubuntu_feedlists: update & rename, move planets to "Open Source"  
  - add_X-Ubuntu-Gettext-Domain: rebase
  - libunity.patch: rebase, apply before indicator patch (liferea_shell.c)
  - libindicate_increase_version.patch: exclude from libindicate.patch
  - deactivate libindicate.patch, seems partly upstreamed and needs rework
* debian/control: libindicate-dev, libindicate-gtk-dev & libunity-dev
* debian/liferea.indicate & liferea.install: ship indicator desktop file
* debian/rules: enable libindicate

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/**
2
 
 * @file ui_subscription.h  default subscription dialogs for feed subscriptions
3
 
 *
4
 
 * Copyright (C) 2007-2009 Lars Lindner <lars.lindner@gmail.com>
5
 
 *
6
 
 * This program is free software; you can redistribute it and/or modify
7
 
 * it under the terms of the GNU General Public License as published by
8
 
 * the Free Software Foundation; either version 2 of the License, or
9
 
 * (at your option) any later version.
10
 
 *
11
 
 * This program is distributed in the hope that it will be useful,
12
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 
 * GNU General Public License for more details.
15
 
 *
16
 
 * You should have received a copy of the GNU General Public License
17
 
 * along with this program; if not, write to the Free Software
18
 
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19
 
 */
20
 
 
21
 
#ifndef _UI_SUBSCRIPTION_H
22
 
#define _UI_SUBSCRIPTION_H
23
 
 
24
 
#include <gtk/gtk.h>
25
 
 
26
 
#include "subscription.h"
27
 
 
28
 
G_BEGIN_DECLS
29
 
 
30
 
typedef struct SubscriptionDialogPrivate        SubscriptionDialogPrivate;
31
 
 
32
 
#define SUBSCRIPTION_PROP_DIALOG_TYPE                   (subscription_prop_dialog_get_type ())
33
 
#define SUBSCRIPTION_PROP_DIALOG(obj)                   (G_TYPE_CHECK_INSTANCE_CAST ((obj), SUBSCRIPTION_PROP_DIALOG_TYPE, SubscriptionPropDialog))
34
 
#define SUBSCRIPTION_PROP_DIALOG_CLASS(klass)           (G_TYPE_CHECK_CLASS_CAST ((klass), SUBSCRIPTION_PROP_DIALOG_TYPE, SubscriptionPropDialogClass))
35
 
#define IS_SUBSCRIPTION_PROP_DIALOG(obj)                (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SUBSCRIPTION_PROP_DIALOG_TYPE))
36
 
#define IS_SUBSCRIPTION_PROP_DIALOG_CLASS(klass)        (G_TYPE_CHECK_CLASS_TYPE ((klass), SUBSCRIPTION_PROP_DIALOG_TYPE))
37
 
 
38
 
typedef struct SubscriptionPropDialog           SubscriptionPropDialog;
39
 
typedef struct SubscriptionPropDialogClass      SubscriptionPropDialogClass;
40
 
 
41
 
struct SubscriptionPropDialog
42
 
{
43
 
        GObject parent;
44
 
        
45
 
        /*< private >*/
46
 
        SubscriptionDialogPrivate       *priv;
47
 
};
48
 
 
49
 
struct SubscriptionPropDialogClass 
50
 
{
51
 
        GtkObjectClass parent_class;
52
 
};
53
 
 
54
 
GType subscription_prop_dialog_get_type (void);
55
 
 
56
 
/**
57
 
 * Creates a feed properties dialog (FIXME: handle 
58
 
 * generic subscriptions too)
59
 
 *
60
 
 * @param subscription  the subscription to load into the dialog
61
 
 *
62
 
 * @returns a properties dialog
63
 
 */
64
 
SubscriptionPropDialog *ui_subscription_prop_dialog_new (subscriptionPtr subscription);
65
 
 
66
 
 
67
 
#define NEW_SUBSCRIPTION_DIALOG_TYPE            (new_subscription_dialog_get_type ())
68
 
#define NEW_SUBSCRIPTION_DIALOG(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), NEW_SUBSCRIPTION_DIALOG_TYPE, NewSubscriptionDialog))
69
 
#define NEW_SUBSCRIPTION_DIALOG_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), NEW_SUBSCRIPTION_DIALOG_TYPE, NewSubscriptionDialogClass))
70
 
#define IS_NEW_SUBSCRIPTION_DIALOG(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NEW_SUBSCRIPTION_DIALOG_TYPE))
71
 
#define IS_NEW_SUBSCRIPTION_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NEW_SUBSCRIPTION_DIALOG_TYPE))
72
 
 
73
 
typedef struct NewSubscriptionDialog            NewSubscriptionDialog;
74
 
typedef struct NewSubscriptionDialogClass       NewSubscriptionDialogClass;
75
 
 
76
 
struct NewSubscriptionDialog
77
 
{
78
 
        GObject parent;
79
 
        
80
 
        /*< private >*/
81
 
        SubscriptionDialogPrivate       *priv;
82
 
};
83
 
 
84
 
struct NewSubscriptionDialogClass 
85
 
{
86
 
        GtkObjectClass parent_class;
87
 
};
88
 
 
89
 
GType new_subscription_dialog_get_type  (void);
90
 
 
91
 
/**
92
 
 * Create a new complex subscription dialog. Used only
93
 
 * when requested by user from simple subscription dialog.
94
 
 *
95
 
 * @returns dialog instance
96
 
 */
97
 
NewSubscriptionDialog *ui_complex_subscription_dialog_new (void);
98
 
 
99
 
 
100
 
#define SIMPLE_SUBSCRIPTION_DIALOG_TYPE                 (simple_subscription_dialog_get_type ())
101
 
#define SIMPLE_SUBSCRIPTION_DIALOG(obj)                 (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIMPLE_SUBSCRIPTION_DIALOG_TYPE, SimpleSubscriptionDialog))
102
 
#define SIMPLE_SUBSCRIPTION_DIALOG_CLASS(klass)         (G_TYPE_CHECK_CLASS_CAST ((klass), SIMPLE_SUBSCRIPTION_DIALOG_TYPE, SimpleSubscriptionDialogClass))
103
 
#define IS_SIMPLE_SUBSCRIPTION_DIALOG(obj)              (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIMPLE_SUBSCRIPTION_DIALOG_TYPE))
104
 
#define IS_SIMPLE_SUBSCRIPTION_DIALOG_CLASS(klass)      (G_TYPE_CHECK_CLASS_TYPE ((klass), SIMPLE_SUBSCRIPTION_DIALOG_TYPE))
105
 
 
106
 
typedef struct SimpleSubscriptionDialog         SimpleSubscriptionDialog;
107
 
typedef struct SimpleSubscriptionDialogClass    SimpleSubscriptionDialogClass;
108
 
 
109
 
struct SimpleSubscriptionDialog
110
 
{
111
 
        GObject parent;
112
 
        
113
 
        /*< private >*/
114
 
        SubscriptionDialogPrivate       *priv;
115
 
};
116
 
 
117
 
struct SimpleSubscriptionDialogClass 
118
 
{
119
 
        GtkObjectClass parent_class;
120
 
};
121
 
 
122
 
GType simple_subscription_dialog_get_type (void);
123
 
 
124
 
/**
125
 
 * Create a simple subscription dialog.
126
 
 *
127
 
 * @returns dialog instance
128
 
 */
129
 
SimpleSubscriptionDialog *ui_subscription_dialog_new (void);
130
 
 
131
 
 
132
 
G_END_DECLS
133
 
 
134
 
#endif /* _UI_SUBSCRIPTION_H */