4
* Copyright (C) 2002 Gustavo Gir�ldez <gustavo.giraldez@gmx.net>
5
* Copyright (C) 2003 Biswapesh Chattopadhyay <biswapesh_chatterjee@tcscal.co.in>
7
* This program is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation; either version 2 of the License, or
10
* (at your option) any later version.
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
17
* You should have received a copy of the GNU General Public License
18
* along with this program; if not, write to the Free Software
19
* Foundation, Inc., 59 Temple Place - Suite 330,
20
* Boston, MA 02111-1307, USA.
23
#ifndef __EGG_DOCK_TABLABEL_H__
24
#define __EGG_DOCK_TABLABEL_H__
27
#include <dock/egg-dock-item.h>
33
#define EGG_TYPE_DOCK_TABLABEL (egg_dock_tablabel_get_type ())
34
#define EGG_DOCK_TABLABEL(obj) (GTK_CHECK_CAST ((obj), EGG_TYPE_DOCK_TABLABEL, EggDockTablabel))
35
#define EGG_DOCK_TABLABEL_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), EGG_TYPE_DOCK_TABLABEL, EggDockTablabelClass))
36
#define EGG_IS_DOCK_TABLABEL(obj) (GTK_CHECK_TYPE ((obj), EGG_TYPE_DOCK_TABLABEL))
37
#define EGG_IS_DOCK_TABLABEL_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), EGG_TYPE_DOCK_TABLABEL))
38
#define EGG_DOCK_TABLABEL_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), GTK_TYPE_DOCK_TABLABEL, EggDockTablabelClass))
40
/* data types & structures */
41
typedef struct _EggDockTablabel EggDockTablabel;
42
typedef struct _EggDockTablabelClass EggDockTablabelClass;
43
typedef struct _EggDockTablabelPrivate EggDockTablabelPrivate;
45
struct _EggDockTablabel {
48
guint drag_handle_size;
50
GdkWindow *event_window;
53
GdkEventButton drag_start_event;
55
EggDockTablabelPrivate *_priv;
58
struct _EggDockTablabelClass {
59
GtkBinClass parent_class;
61
void (*button_pressed_handle) (EggDockTablabel *tablabel,
62
GdkEventButton *event);
66
/* public interface */
68
GtkWidget *egg_dock_tablabel_new (EggDockItem *item);
69
GType egg_dock_tablabel_get_type (void);
71
void egg_dock_tablabel_activate (EggDockTablabel *tablabel);
72
void egg_dock_tablabel_deactivate (EggDockTablabel *tablabel);