summaryrefslogtreecommitdiff
path: root/libslab/app-resizer.h
diff options
context:
space:
mode:
authorPerberos <[email protected]>2011-12-01 21:51:44 -0300
committerPerberos <[email protected]>2011-12-01 21:51:44 -0300
commit0b0e6bc987da4fd88a7854ebb12bde705e92c428 (patch)
tree47d329edd31c67eaa36b2147780e37e197e901b5 /libslab/app-resizer.h
downloadmate-control-center-0b0e6bc987da4fd88a7854ebb12bde705e92c428.tar.bz2
mate-control-center-0b0e6bc987da4fd88a7854ebb12bde705e92c428.tar.xz
moving from https://github.com/perberos/mate-desktop-environment
Diffstat (limited to 'libslab/app-resizer.h')
-rw-r--r--libslab/app-resizer.h76
1 files changed, 76 insertions, 0 deletions
diff --git a/libslab/app-resizer.h b/libslab/app-resizer.h
new file mode 100644
index 00000000..af974653
--- /dev/null
+++ b/libslab/app-resizer.h
@@ -0,0 +1,76 @@
+/*
+ * This file is part of libslab.
+ *
+ * Copyright (c) 2006 Novell, Inc.
+ *
+ * Libslab is free software; you can redistribute it and/or modify it under the
+ * terms of the GNU Lesser General Public License as published by the Free
+ * Software Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * Libslab is distributed in the hope that it will be useful, but WITHOUT ANY
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with libslab; if not, write to the Free Software Foundation, Inc., 51
+ * Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#ifndef __APP_RESIZER_H__
+#define __APP_RESIZER_H__
+
+#include <glib.h>
+#include <gtk/gtk.h>
+
+#include <libslab/app-shell.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define INITIAL_NUM_COLS 3
+#define APP_RESIZER_TYPE (app_resizer_get_type ())
+#define APP_RESIZER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), APP_RESIZER_TYPE, AppResizer))
+#define APP_RESIZER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), APP_RESIZER_TYPE, AppResizerClass))
+#define IS_APP_RESIZER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), APP_RESIZER_TYPE))
+#define IS_APP_RESIZER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), APP_RESIZER_TYPE))
+#define APP_RESIZER_GET_CLASS(obj) (G_TYPE_CHECK_GET_CLASS ((obj), APP_RESIZER_TYPE, AppResizerClass))
+
+typedef struct _AppResizer AppResizer;
+typedef struct _AppResizerClass AppResizerClass;
+
+struct _AppResizer
+{
+ GtkLayout parent;
+
+ GtkVBox *child;
+ GList *cached_tables_list;
+ gint cached_element_width;
+ gint cached_table_spacing;
+ gboolean table_elements_homogeneous;
+ gint cur_num_cols;
+ gboolean setting_style;
+ AppShellData *app_data;
+};
+
+struct _AppResizerClass
+{
+ GtkLayoutClass parent_class;
+};
+
+void app_resizer_set_homogeneous (AppResizer * widget, gboolean value);
+void remove_container_entries (GtkContainer * widget);
+
+GType app_resizer_get_type (void);
+GtkWidget *app_resizer_new (GtkVBox * child, gint initial_num_columns, gboolean homogeneous,
+ AppShellData * app_data);
+void app_resizer_set_table_cache (AppResizer * widget, GList * cache_list);
+void app_resizer_layout_table_default (AppResizer * widget, GtkTable * table, GList * element_list);
+void app_resizer_set_vadjustment_value (GtkWidget * widget, gdouble value);
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* __APP_RESIZER_H__ */