~ubuntu-branches/ubuntu/trusty/xfce4-panel/trusty-proposed

« back to all changes in this revision

Viewing changes to panel/item.h

  • Committer: Bazaar Package Importer
  • Author(s): Simon Huggins
  • Date: 2004-06-08 10:44:21 UTC
  • Revision ID: james.westby@ubuntu.com-20040608104421-b0b77kis8o0uoi6q
Tags: upstream-4.0.5
ImportĀ upstreamĀ versionĀ 4.0.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*  xfce4
 
2
 *  
 
3
 *  Copyright (C) 2002 Jasper Huijsmans (huysmans@users.sourceforge.net)
 
4
 *
 
5
 *  This program is free software; you can redistribute it and/or modify
 
6
 *  it under the terms of the GNU General Public License as published by
 
7
 *  the Free Software Foundation; either version 2 of the License, or
 
8
 *  (at your option) any later version.
 
9
 *
 
10
 *  This program is distributed in the hope that it will be useful,
 
11
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
 *  GNU General Public License for more details.
 
14
 *
 
15
 *  You should have received a copy of the GNU General Public License
 
16
 *  along with this program; if not, write to the Free Software
 
17
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
18
*/
 
19
 
 
20
#ifndef __XFCE_ITEMS_H
 
21
#define __XFCE_ITEMS_H
 
22
 
 
23
#include <panel/global.h>
 
24
 
 
25
enum
 
26
{ PANELITEM, MENUITEM };
 
27
 
 
28
struct _Item
 
29
{
 
30
    char *command;
 
31
    gboolean in_terminal;
 
32
    gboolean use_sn;
 
33
    char *caption;
 
34
    char *tooltip;
 
35
 
 
36
    int icon_id;
 
37
    char *icon_path;
 
38
 
 
39
    int type;
 
40
    GtkWidget *button;
 
41
 
 
42
    /* for menu items */
 
43
    PanelPopup *parent;
 
44
    int pos;
 
45
 
 
46
    /* for panel launchers */
 
47
    gboolean with_popup;
 
48
};
 
49
 
 
50
/* special menu item */
 
51
void create_addtomenu_item (Item * mi);
 
52
 
 
53
/* menu items */
 
54
Item *menu_item_new (PanelPopup * pp);
 
55
 
 
56
void create_menu_item (Item * mi);
 
57
 
 
58
void menu_item_set_popup_size (Item * item, int size);
 
59
 
 
60
/*  panel control interface for panel items */
 
61
void create_panel_item (Control * control);
 
62
 
 
63
void panel_item_class_init (ControlClass * cc);
 
64
 
 
65
/* common functions */
 
66
void item_free (Item * item);
 
67
 
 
68
void item_set_theme (Item * item, const char *theme);
 
69
 
 
70
void item_apply_config (Item * item);
 
71
 
 
72
void item_read_config (Item * item, xmlNodePtr node);
 
73
 
 
74
void item_write_config (Item * item, xmlNodePtr node);
 
75
 
 
76
#endif /* __XFCE_ITEMS_H */