2
* This file is part of libslab.
4
* Copyright (c) 2006 Novell, Inc.
6
* Libslab is free software; you can redistribute it and/or modify it under the
7
* terms of the GNU Lesser General Public License as published by the Free
8
* Software Foundation; either version 2 of the License, or (at your option)
11
* Libslab is distributed in the hope that it will be useful, but WITHOUT ANY
12
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
16
* You should have received a copy of the GNU Lesser General Public License
17
* along with libslab; if not, write to the Free Software Foundation, Inc., 51
18
* Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21
#ifndef __APP_RESIZER_H__
22
#define __APP_RESIZER_H__
25
#include <gtk/gtklayout.h>
26
#include <gtk/gtkvbox.h>
27
#include <gtk/gtktable.h>
31
#define INITIAL_NUM_COLS 3
32
#define APP_RESIZER_TYPE (app_resizer_get_type ())
33
#define APP_RESIZER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), APP_RESIZER_TYPE, AppResizer))
34
#define APP_RESIZER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), APP_RESIZER_TYPE, AppResizerClass))
35
#define IS_APP_RESIZER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), APP_RESIZER_TYPE))
36
#define IS_APP_RESIZER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), APP_RESIZER_TYPE))
37
#define APP_RESIZER_GET_CLASS(obj) (G_TYPE_CHECK_GET_CLASS ((obj), APP_RESIZER_TYPE, AppResizerClass))
39
typedef struct _AppResizer AppResizer;
40
typedef struct _AppResizerClass AppResizerClass;
47
GList *cached_tables_list;
48
gint cached_element_width;
49
gint cached_table_spacing;
50
gboolean table_elements_homogeneous;
52
gboolean setting_style;
53
AppShellData *app_data;
56
struct _AppResizerClass
58
GtkLayoutClass parent_class;
61
void app_resizer_set_homogeneous (AppResizer * widget, gboolean value);
62
void remove_container_entries (GtkContainer * widget);
64
GType app_resizer_get_type (void);
65
GtkWidget *app_resizer_new (GtkVBox * child, gint initial_num_columns, gboolean homogeneous,
66
AppShellData * app_data);
67
void app_resizer_set_table_cache (AppResizer * widget, GList * cache_list);
68
void app_resizer_layout_table_default (AppResizer * widget, GtkTable * table, GList * element_list);
69
void app_resizer_set_vadjustment_value (GtkWidget * widget, gdouble value);
72
#endif /* __APP_RESIZER_H__ */