~ubuntu-branches/debian/squeeze/galeon/squeeze

« back to all changes in this revision

Viewing changes to libegg/dock/egg-dock-tablabel.h

  • Committer: Bazaar Package Importer
  • Author(s): Mark Howard
  • Date: 2004-06-06 09:02:01 UTC
  • Revision ID: james.westby@ubuntu.com-20040606090201-yhx6ruhq8um7ggs2
Tags: upstream-1.3.15
Import upstream version 1.3.15

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * egg-dock-tablabel.h
 
3
 *
 
4
 * Copyright (C) 2002 Gustavo Gir�ldez <gustavo.giraldez@gmx.net>
 
5
 * Copyright (C) 2003 Biswapesh Chattopadhyay <biswapesh_chatterjee@tcscal.co.in>
 
6
 *
 
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.
 
11
 *
 
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.
 
16
 *
 
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.  
 
21
 */
 
22
 
 
23
#ifndef __EGG_DOCK_TABLABEL_H__
 
24
#define __EGG_DOCK_TABLABEL_H__
 
25
 
 
26
#include <gtk/gtk.h>
 
27
#include <dock/egg-dock-item.h>
 
28
 
 
29
 
 
30
G_BEGIN_DECLS
 
31
 
 
32
/* standard macros */
 
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))
 
39
 
 
40
/* data types & structures */
 
41
typedef struct _EggDockTablabel      EggDockTablabel;
 
42
typedef struct _EggDockTablabelClass EggDockTablabelClass;
 
43
typedef struct _EggDockTablabelPrivate EggDockTablabelPrivate;
 
44
 
 
45
struct _EggDockTablabel {
 
46
    GtkBin          parent;
 
47
 
 
48
    guint           drag_handle_size;
 
49
    GtkWidget      *item;
 
50
    GdkWindow      *event_window;
 
51
    gboolean        active;
 
52
 
 
53
    GdkEventButton  drag_start_event;
 
54
    gboolean        pre_drag;
 
55
        EggDockTablabelPrivate *_priv;
 
56
};
 
57
 
 
58
struct _EggDockTablabelClass {
 
59
    GtkBinClass      parent_class;
 
60
 
 
61
    void            (*button_pressed_handle)  (EggDockTablabel *tablabel,
 
62
                                               GdkEventButton  *event);
 
63
        gpointer unused[2];
 
64
};
 
65
 
 
66
/* public interface */
 
67
 
 
68
GtkWidget     *egg_dock_tablabel_new           (EggDockItem *item);
 
69
GType          egg_dock_tablabel_get_type      (void);
 
70
 
 
71
void           egg_dock_tablabel_activate      (EggDockTablabel *tablabel);
 
72
void           egg_dock_tablabel_deactivate    (EggDockTablabel *tablabel);
 
73
 
 
74
G_END_DECLS
 
75
 
 
76
#endif