Second click on weather plugin icon should hide conditions dialog if it's shown.
[lxde/lxpanel.git] / src / icon-grid.h
CommitLineData
2918994e 1/**
2 * Copyright (c) 2009 LxDE Developers, see the file AUTHORS for details.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program 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
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software Foundation,
16 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 */
18
19#ifndef ICON_GRID_H
20#define ICON_GRID_H
21
22#include <gtk/gtk.h>
23
9fac586f
AG
24#define PANEL_TYPE_ICON_GRID (panel_icon_grid_get_type())
25#define PANEL_ICON_GRID(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \
26 PANEL_TYPE_ICON_GRID, PanelIconGrid))
27#define PANEL_ICON_GRID_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \
28 PANEL_TYPE_ICON_GRID, PanelIconGridClass))
29#define PANEL_IS_ICON_GRID(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
30 PANEL_TYPE_ICON_GRID))
31#define PANEL_IS_ICON_GRID_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \
32 PANEL_TYPE_ICON_GRID), PanelIconGrid)
33
34extern GType panel_icon_grid_get_type (void) G_GNUC_CONST;
35
36typedef struct _PanelIconGrid PanelIconGrid;
37typedef struct _PanelIconGridClass PanelIconGridClass;
38
39extern GtkWidget * panel_icon_grid_new(
8f9e6256 40 GtkOrientation orientation, gint child_width, gint child_height, gint spacing, gint border, gint target_dimension);
2918994e 41 /* Create an icon grid */
9fac586f 42extern void panel_icon_grid_set_constrain_width(PanelIconGrid * ig, gboolean constrain_width);
b33a8cc6 43 /* Set the constrain-width property */
756c623e
AG
44/* extern void panel_icon_grid_set_fill_width(PanelIconGrid * ig, gboolean fill_width);
45 Set the fill-width property */
9fac586f 46extern void panel_icon_grid_set_geometry(PanelIconGrid * ig,
8f9e6256 47 GtkOrientation orientation, gint child_width, gint child_height, gint spacing, gint border, gint target_dimension);
48 /* Change the geometry of an icon grid */
9fac586f 49extern gint panel_icon_grid_get_child_position(PanelIconGrid * ig, GtkWidget * child);
eb713fbc 50 /* Get the index of an icon grid element. */
9fac586f 51extern void panel_icon_grid_reorder_child(PanelIconGrid * ig, GtkWidget * child, gint position);
2918994e 52 /* Reorder the position of a child in the icon grid */
2918994e 53
54#endif