GTK+2 panel 

GTK+2 panel Git Source Tree

Root/libgpwidgets/gpw-enums.c

1/* Gtk2Panel - A bleeding edge Gtk+2 panel
2 * Copyright (C) 2009 Nicola Fontana <ntd at entidi.it>
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18 */
19
20
21#include "gpw-enums.h"
22
23
24/**
25 * SECTION:gpw-enums
26 * @title: libgpwidgets enums
27 * @short_description: Public enums used through the libgpwidgets library
28 *
29 * Documentation repository for all the enums used by the Gtk+2 panel
30 * custom widgets.
31 **/
32
33/**
34 * GpwEdge:
35 * @GPW_EDGE_TOP: The panel will be attached at the top of the screen.
36 * Its width will be extended to match the screen width.
37 * @GPW_EDGE_BOTTOM: The panel will be attached at the bottom of the screen.
38 * Its width will be extended to match the screen width.
39 *
40 * Specifies in which edge a #GpwPanel should be attached. Currently,
41 * gtk2panel only support horizontal edges.
42 **/
43
44GType
45gpw_edge_get_type(void)
46{
47 static GType etype = 0;
48
49 if (G_UNLIKELY(etype == 0)) {
50 static const GEnumValue values[] = {
51 { GPW_EDGE_TOP, "GPW_EDGE_TOP", "top" },
52 { GPW_EDGE_BOTTOM, "GPW_EDGE_BOTTOM", "bottom" },
53 { 0, NULL, NULL }
54 };
55 etype = g_enum_register_static("GpwEdge", values);
56 }
57
58 return etype;
59}

Archive Download this file

Branches

Tags