Code

Prevent localized doubles from being written into filter matrices
[inkscape.git] / src / libgdl / gdl-dock-tablabel.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2  *
3  * gdl-dock-tablabel.h
4  *
5  * This file is part of the GNOME Devtools Libraries.
6  *
7  * Copyright (C) 2002 Gustavo Giráldez <gustavo.giraldez@gmx.net>
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public
11  * License as published by the Free Software Foundation; either
12  * version 2.1 of the License, or (at your option) any later version.
13  *
14  * This library is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17  * Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with this library; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
22  */
24 #ifndef __GDL_DOCK_TABLABEL_H__
25 #define __GDL_DOCK_TABLABEL_H__
27 #include <gtk/gtk.h>
28 #include "libgdl/gdl-dock-item.h"
31 G_BEGIN_DECLS
33 /* standard macros */
34 #define GDL_TYPE_DOCK_TABLABEL            (gdl_dock_tablabel_get_type ())
35 #define GDL_DOCK_TABLABEL(obj)            (GTK_CHECK_CAST ((obj), GDL_TYPE_DOCK_TABLABEL, GdlDockTablabel))
36 #define GDL_DOCK_TABLABEL_CLASS(klass)    (GTK_CHECK_CLASS_CAST ((klass), GDL_TYPE_DOCK_TABLABEL, GdlDockTablabelClass))
37 #define GDL_IS_DOCK_TABLABEL(obj)         (GTK_CHECK_TYPE ((obj), GDL_TYPE_DOCK_TABLABEL))
38 #define GDL_IS_DOCK_TABLABEL_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GDL_TYPE_DOCK_TABLABEL))
39 #define GDL_DOCK_TABLABEL_GET_CLASS(obj)  (GTK_CHECK_GET_CLASS ((obj), GTK_TYPE_DOCK_TABLABEL, GdlDockTablabelClass))
41 /* data types & structures */
42 typedef struct _GdlDockTablabel      GdlDockTablabel;
43 typedef struct _GdlDockTablabelClass GdlDockTablabelClass;
45 struct _GdlDockTablabel {
46     GtkBin          parent;
48     guint           drag_handle_size;
49     GtkWidget      *item;
50     GdkWindow      *event_window;
51     gboolean        active;
53     GdkEventButton  drag_start_event;
54     gboolean        pre_drag;
55 };
57 struct _GdlDockTablabelClass {
58     GtkBinClass      parent_class;
60     void            (*button_pressed_handle)  (GdlDockTablabel *tablabel,
61                                                GdkEventButton  *event);
62 };
64 /* public interface */
65  
66 GtkWidget     *gdl_dock_tablabel_new           (GdlDockItem *item);
67 GType          gdl_dock_tablabel_get_type      (void);
69 void           gdl_dock_tablabel_activate      (GdlDockTablabel *tablabel);
70 void           gdl_dock_tablabel_deactivate    (GdlDockTablabel *tablabel);
72 G_END_DECLS
74 #endif