File: windowlist.h

package info (click to toggle)
xfce4-panel 4.6.4-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 6,516 kB
  • ctags: 2,609
  • sloc: ansic: 21,392; sh: 10,234; makefile: 977; xml: 564; perl: 92
file content (85 lines) | stat: -rw-r--r-- 2,118 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/* vim: set expandtab ts=8 sw=4: */

/*  $Id$
 *
 *  Copyright (c) 2003 Andre Lerche <a.lerche@gmx.net>
 *  Copyright (c) 2003 Benedikt Meurer <benedikt.meurer@unix-ag.uni-siegen.de>
 *  Copyright (c) 2006 Jani Monoses <jani@ubuntu.com>
 *  Copyright (c) 2006 Jasper Huijsmans <jasper@xfce.org>
 *  Copyright (c) 2006 Nick Schermer <nick@xfce.org>
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU Library General Public License as published
 *  by the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Library General Public License for more details.
 *
 *  You should have received a copy of the GNU Library General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 */

#ifndef _WINDOWLIST_H
#define _WINDOWLIST_H

#include <libwnck/libwnck.h>
#include <libxfcegui4/libxfcegui4.h>
#include <libxfce4panel/xfce-panel-plugin.h>
#include <gtk/gtk.h>

typedef enum
{
    ICON_BUTTON,
    ARROW_BUTTON,
}
ButtonLayout;

typedef enum
{
    DISABLED,
    OTHER_WORKSPACES,
    ALL_WORKSPACES,
}
UrgencyNotify;

typedef struct
{
    XfcePanelPlugin *plugin;

    /* Widget stuff */
    GtkWidget	*button;
    GtkWidget	*icon;
    GtkArrowType arrowtype;
    GtkTooltips *tooltips;

    WnckScreen	*screen;
    guint	 screen_callback_id;

    /* Settings */
    ButtonLayout layout;

    guint show_all_workspaces : 1;
    guint show_window_icons : 1;
    guint show_workspace_actions : 1;

    UrgencyNotify notify;

    /* Blink button stuff */
    guint search_timeout_id;
    guint blink_timeout_id;
    guint blink : 1;
    guint block_blink : 1;
}
Windowlist;

void
windowlist_start_blink (Windowlist * wl);

void
windowlist_create_button (Windowlist * wl);

#endif /* _WINDOWLIST_H */