~ubuntu-branches/debian/sid/gnome-main-menu/sid

« back to all changes in this revision

Viewing changes to libslab/app-resizer.h

  • Committer: Bazaar Package Importer
  • Author(s): Emilio Pozuelo Monfort
  • Date: 2009-11-08 21:22:49 UTC
  • mto: (5.1.3 squeeze)
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20091108212249-9cql8cptajeua2eh
Tags: upstream-0.9.13
ImportĀ upstreamĀ versionĀ 0.9.13

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * This file is part of libslab.
3
 
 *
4
 
 * Copyright (c) 2006 Novell, Inc.
5
 
 *
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)
9
 
 * any later version.
10
 
 *
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
14
 
 * more details.
15
 
 *
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
19
 
 */
20
 
 
21
 
#ifndef __APP_RESIZER_H__
22
 
#define __APP_RESIZER_H__
23
 
 
24
 
#include <glib.h>
25
 
#include <gtk/gtklayout.h>
26
 
#include <gtk/gtkvbox.h>
27
 
#include <gtk/gtktable.h>
28
 
 
29
 
G_BEGIN_DECLS
30
 
 
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))
38
 
 
39
 
typedef struct _AppResizer AppResizer;
40
 
typedef struct _AppResizerClass AppResizerClass;
41
 
 
42
 
struct _AppResizer
43
 
{
44
 
        GtkLayout parent;
45
 
 
46
 
        GtkVBox *child;
47
 
        GList *cached_tables_list;
48
 
        gint cached_element_width;
49
 
        gint cached_table_spacing;
50
 
        gboolean table_elements_homogeneous;
51
 
        gint cur_num_cols;
52
 
        gboolean setting_style;
53
 
        AppShellData *app_data;
54
 
};
55
 
 
56
 
struct _AppResizerClass
57
 
{
58
 
        GtkLayoutClass parent_class;
59
 
};
60
 
 
61
 
void app_resizer_set_homogeneous (AppResizer * widget, gboolean value);
62
 
void remove_container_entries (GtkContainer * widget);
63
 
 
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);
70
 
 
71
 
G_END_DECLS
72
 
#endif /* __APP_RESIZER_H__ */