~ubuntu-branches/ubuntu/natty/xfce4-panel/natty

« back to all changes in this revision

Viewing changes to panel/frap-icon-entry.h

  • Committer: Bazaar Package Importer
  • Author(s): Lionel Le Folgoc
  • Date: 2010-12-04 15:45:53 UTC
  • mfrom: (1.1.25 upstream)
  • Revision ID: james.westby@ubuntu.com-20101204154553-c1k0n2p2j83chld0
Tags: 4.7.5-0ubuntu1
Upload to natty (pkg-xfce svn r4611).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id$
2
 
 *
3
 
 * Copyright (c) 2005-2006 Benedikt Meurer <benny@xfce.org>
4
 
 *
5
 
 * This program is free software; you can redistribute it and/or modify it
6
 
 * under the terms of the GNU General Public License as published by the Free
7
 
 * Software Foundation; either version 2 of the License, or (at your option)
8
 
 * any later version.
9
 
 *
10
 
 * This program is distributed in the hope that it will be useful, but WITHOUT
11
 
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12
 
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
13
 
 * more details.
14
 
 *
15
 
 * You should have received a copy of the GNU General Public License along with
16
 
 * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
17
 
 * Place, Suite 330, Boston, MA  02111-1307  USA
18
 
 */
19
 
 
20
 
#ifndef __FRAP_ICON_ENTRY_H__
21
 
#define __FRAP_ICON_ENTRY_H__
22
 
 
23
 
#include <gtk/gtk.h>
24
 
 
25
 
G_BEGIN_DECLS;
26
 
 
27
 
typedef struct _FrapIconEntryPrivate FrapIconEntryPrivate;
28
 
typedef struct _FrapIconEntryClass   FrapIconEntryClass;
29
 
typedef struct _FrapIconEntry        FrapIconEntry;
30
 
 
31
 
#define FRAP_TYPE_ICON_ENTRY            (frap_icon_entry_get_type ())
32
 
#define FRAP_ICON_ENTRY(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), FRAP_TYPE_ICON_ENTRY, FrapIconEntry))
33
 
#define FRAP_ICON_ENTRY_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), FRAP_TYPE_ICON_ENTRY, FrapIconEntryClass))
34
 
#define FRAP_IS_ICON_ENTRY(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FRAP_TYPE_ICON_ENTRY))
35
 
#define FRAP_IS_ICON_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), FRAP_TYPE_ICON_ENTRY))
36
 
#define FRAP_ICON_ENTRY_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), FRAP_TYPE_ICON_ENTRY, FrapIconEntryClass))
37
 
 
38
 
struct _FrapIconEntryClass
39
 
{
40
 
  GtkEntryClass __parent__;
41
 
};
42
 
 
43
 
struct _FrapIconEntry
44
 
{
45
 
  GtkEntry              __parent__;
46
 
  GdkWindow            *icon_area;
47
 
  FrapIconEntryPrivate *priv;
48
 
};
49
 
 
50
 
GType        frap_icon_entry_get_type     (void) G_GNUC_CONST;
51
 
 
52
 
GtkWidget   *frap_icon_entry_new          (void) G_GNUC_MALLOC;
53
 
 
54
 
GtkIconSize  frap_icon_entry_get_size     (FrapIconEntry *icon_entry);
55
 
void         frap_icon_entry_set_size     (FrapIconEntry *icon_entry,
56
 
                                           GtkIconSize    size);
57
 
 
58
 
const gchar *frap_icon_entry_get_stock_id (FrapIconEntry *icon_entry);
59
 
void         frap_icon_entry_set_stock_id (FrapIconEntry *icon_entry,
60
 
                                           const gchar   *stock_id);
61
 
 
62
 
G_END_DECLS;
63
 
 
64
 
#endif /* !__FRAP_ICON_ENTRY_H__ */