~sense/ubuntu/lucid/transmission/fix-497882

« back to all changes in this revision

Viewing changes to gtk/sexy-icon-entry.h

  • Committer: Bazaar Package Importer
  • Author(s): Chris Coulson
  • Date: 2008-11-28 15:33:48 UTC
  • mfrom: (1.1.19 upstream)
  • Revision ID: james.westby@ubuntu.com-20081128153348-it70trfnxiroblmc
Tags: 1.40-0ubuntu1
* New upstream release (LP: #302672)
  - Tracker communication uses fewer resources
  - More accurate bandwidth limits
  - Reduce disk fragmentation by preallocating files (LP: #287726)
  - Stability, security and performance improvements to the RPC /
    Web UI server (closes LP: #290423)
  - Support compression when serving Web UI and RPC responses
  - Simplify the RPC whitelist
  - Fix bug that prevented handshakes with encrypted BitComet peers
  - Fix 1.3x bug that could re-download some data unnecessarily
    (LP: #295040)
  - Option to automatically update the blocklist weekly
  - Added off-hour bandwidth scheduling
  - Simplify file/priority selection in the details dialog
  - Fix a couple of crashes
  - New / updated translations
  - Don't inhibit hibernation by default (LP: #292929)
  - Use "close" animation when sending to notification area (LP: #130811)
  - Fix resize problems (LP: #269872)
  - Support "--version" option when launching from command line
    (LP: #292011)
  - Correctly parse announce URLs that have leading or trailing
    spaces (LP: #262411)
  - Display an error when "Open Torrent" fails (LP: #281463)
* Dropped 10_fix_crasher_from_upstream.dpatch: Fix is in this
  upstream release.
* debian/control: Don't just build-depend on libcurl-dev, which is
  a virtual package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
typedef struct _SexyIconEntryClass SexyIconEntryClass;
26
26
typedef struct _SexyIconEntryPriv  SexyIconEntryPriv;
27
27
 
28
 
#include <gtk/gtkentry.h>
29
 
#include <gtk/gtkimage.h>
 
28
#include <gtk/gtk.h>
30
29
 
31
 
#define SEXY_TYPE_ICON_ENTRY (sexy_icon_entry_get_type())
32
 
#define SEXY_ICON_ENTRY(obj) \
33
 
                (G_TYPE_CHECK_INSTANCE_CAST((obj), SEXY_TYPE_ICON_ENTRY, SexyIconEntry))
34
 
#define SEXY_ICON_ENTRY_CLASS(klass) \
35
 
                (G_TYPE_CHECK_CLASS_CAST((klass), SEXY_TYPE_ICON_ENTRY, SexyIconEntryClass))
36
 
#define SEXY_IS_ICON_ENTRY(obj) \
37
 
                (G_TYPE_CHECK_INSTANCE_TYPE((obj), SEXY_TYPE_ICON_ENTRY))
38
 
#define SEXY_IS_ICON_ENTRY_CLASS(klass) \
39
 
                (G_TYPE_CHECK_CLASS_TYPE((klass), SEXY_TYPE_ICON_ENTRY))
40
 
#define SEXY_ICON_ENTRY_GET_CLASS(obj) \
41
 
                (G_TYPE_INSTANCE_GET_CLASS ((obj), SEXY_TYPE_ICON_ENTRY, SexyIconEntryClass))
 
30
#define SEXY_TYPE_ICON_ENTRY ( sexy_icon_entry_get_type( ) )
 
31
#define SEXY_ICON_ENTRY( obj ) \
 
32
    ( G_TYPE_CHECK_INSTANCE_CAST( ( obj ), SEXY_TYPE_ICON_ENTRY,\
 
33
                                 SexyIconEntry ) )
 
34
#define SEXY_ICON_ENTRY_CLASS( klass ) \
 
35
    ( G_TYPE_CHECK_CLASS_CAST( ( klass ), SEXY_TYPE_ICON_ENTRY,\
 
36
                              SexyIconEntryClass ) )
 
37
#define SEXY_IS_ICON_ENTRY( obj ) \
 
38
    ( G_TYPE_CHECK_INSTANCE_TYPE( ( obj ), SEXY_TYPE_ICON_ENTRY ) )
 
39
#define SEXY_IS_ICON_ENTRY_CLASS( klass ) \
 
40
    ( G_TYPE_CHECK_CLASS_TYPE( ( klass ), SEXY_TYPE_ICON_ENTRY ) )
 
41
#define SEXY_ICON_ENTRY_GET_CLASS( obj ) \
 
42
    ( G_TYPE_INSTANCE_GET_CLASS ( ( obj ), SEXY_TYPE_ICON_ENTRY,\
 
43
                                 SexyIconEntryClass ) )
42
44
 
43
45
typedef enum
44
46
{
45
 
        SEXY_ICON_ENTRY_PRIMARY,
46
 
        SEXY_ICON_ENTRY_SECONDARY
47
 
 
 
47
    SEXY_ICON_ENTRY_PRIMARY,
 
48
    SEXY_ICON_ENTRY_SECONDARY
48
49
} SexyIconEntryPosition;
49
50
 
50
51
struct _SexyIconEntry
51
52
{
52
 
        GtkEntry parent_object;
53
 
 
54
 
        SexyIconEntryPriv *priv;
55
 
 
56
 
        void (*gtk_reserved1)(void);
57
 
        void (*gtk_reserved2)(void);
58
 
        void (*gtk_reserved3)(void);
59
 
        void (*gtk_reserved4)(void);
 
53
    GtkEntry             parent_object;
 
54
 
 
55
    SexyIconEntryPriv *  priv;
 
56
 
 
57
    void                 ( *gtk_reserved1 )( void );
 
58
    void                 ( *gtk_reserved2 )( void );
 
59
    void                 ( *gtk_reserved3 )( void );
 
60
    void                 ( *gtk_reserved4 )( void );
60
61
};
61
62
 
62
63
struct _SexyIconEntryClass
63
64
{
64
 
        GtkEntryClass parent_class;
65
 
 
66
 
        /* Signals */
67
 
        void (*icon_pressed)(SexyIconEntry *entry, SexyIconEntryPosition icon_pos,
68
 
                                                 int button);
69
 
        void (*icon_released)(SexyIconEntry *entry, SexyIconEntryPosition icon_pos,
70
 
                                                  int button);
71
 
 
72
 
        void (*gtk_reserved1)(void);
73
 
        void (*gtk_reserved2)(void);
74
 
        void (*gtk_reserved3)(void);
75
 
        void (*gtk_reserved4)(void);
 
65
    GtkEntryClass    parent_class;
 
66
 
 
67
    /* Signals */
 
68
    void    ( *icon_pressed )( SexyIconEntry *       entry,
 
69
                               SexyIconEntryPosition icon_pos,
 
70
                               int                   button );
 
71
    void    ( *icon_released )( SexyIconEntry *       entry,
 
72
                                SexyIconEntryPosition icon_pos,
 
73
                                int                   button );
 
74
 
 
75
    void    ( *gtk_reserved1 )( void );
 
76
    void    ( *gtk_reserved2 )( void );
 
77
    void    ( *gtk_reserved3 )( void );
 
78
    void    ( *gtk_reserved4 )( void );
76
79
};
77
80
 
78
81
G_BEGIN_DECLS
79
82
 
80
 
GType sexy_icon_entry_get_type(void);
81
 
 
82
 
GtkWidget *sexy_icon_entry_new(void);
83
 
 
84
 
void sexy_icon_entry_set_icon(SexyIconEntry *entry,
85
 
                                                          SexyIconEntryPosition position,
86
 
                                                          GtkImage *icon);
87
 
 
88
 
void sexy_icon_entry_set_icon_highlight(SexyIconEntry *entry,
89
 
                                                                                SexyIconEntryPosition position,
90
 
                                                                                gboolean highlight);
91
 
 
92
 
GtkImage *sexy_icon_entry_get_icon(const SexyIconEntry *entry,
93
 
                                                                   SexyIconEntryPosition position);
94
 
 
95
 
gboolean sexy_icon_entry_get_icon_highlight(const SexyIconEntry *entry,
96
 
                                                                                        SexyIconEntryPosition position);
97
 
void sexy_icon_entry_add_clear_button(SexyIconEntry *icon_entry);
 
83
GType      sexy_icon_entry_get_type( void );
 
84
 
 
85
GtkWidget *sexy_icon_entry_new( void );
 
86
 
 
87
void       sexy_icon_entry_set_icon( SexyIconEntry *       entry,
 
88
                                     SexyIconEntryPosition position,
 
89
                                     GtkImage *            icon );
 
90
 
 
91
void       sexy_icon_entry_set_icon_highlight(
 
92
    SexyIconEntry *entry,
 
93
    SexyIconEntryPosition
 
94
                   position,
 
95
    gboolean
 
96
                   highlight );
 
97
 
 
98
GtkImage * sexy_icon_entry_get_icon( const SexyIconEntry * entry,
 
99
                                     SexyIconEntryPosition position );
 
100
 
 
101
gboolean   sexy_icon_entry_get_icon_highlight(
 
102
    const SexyIconEntry *entry,
 
103
    SexyIconEntryPosition
 
104
                         position );
 
105
 
 
106
void       sexy_icon_entry_add_clear_button( SexyIconEntry *icon_entry );
98
107
 
99
108
G_END_DECLS
100
109