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

« back to all changes in this revision

Viewing changes to panel/popup.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
/*  popup.h
 
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_POPUP_H__
 
21
#define __XFCE_POPUP_H__
 
22
 
 
23
#include <libxml/tree.h>
 
24
#include <panel/global.h>
 
25
 
 
26
struct _PanelPopup
 
27
{
 
28
    /* button */
 
29
    GtkWidget *button;
 
30
 
 
31
    /* menu */
 
32
    gboolean detached;
 
33
 
 
34
    GtkWidget *window;
 
35
    GtkWidget *frame;
 
36
    GtkWidget *vbox;
 
37
 
 
38
    GtkSizeGroup *hgroup;
 
39
 
 
40
    Item *addtomenu_item;
 
41
    GtkWidget *separator;
 
42
    GtkWidget *tearoff_button;
 
43
 
 
44
    GtkWidget *item_vbox;
 
45
    GList *items;               /* type Item */
 
46
};
 
47
 
 
48
/* Panel popups */
 
49
PanelPopup *create_panel_popup (void);
 
50
void panel_popup_free (PanelPopup * pp);
 
51
 
 
52
void panel_popup_pack (PanelPopup * pp, GtkBox * box);
 
53
void panel_popup_unpack (PanelPopup * pp);
 
54
 
 
55
void panel_popup_add_item (PanelPopup * pp, Item * mi);
 
56
void panel_popup_remove_item (PanelPopup * pp, Item * mi);
 
57
 
 
58
void panel_popup_set_size (PanelPopup * pp, int size);
 
59
void panel_popup_set_popup_position (PanelPopup * pp, int position);
 
60
void panel_popup_set_layer (PanelPopup * pp, int layer);
 
61
void panel_popup_set_theme (PanelPopup * pp, const char *theme);
 
62
void panel_popup_set_arrow_type (PanelPopup * pp, GtkArrowType type);
 
63
 
 
64
void hide_current_popup_menu (void);
 
65
 
 
66
void panel_popup_set_from_xml (PanelPopup * pp, xmlNodePtr node);
 
67
void panel_popup_write_xml (PanelPopup * pp, xmlNodePtr root);
 
68
 
 
69
#endif /* __XFCE_POPUP_H__ */