From a18b6d6f35bdb808d704a532f4e34b98733bb2e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Janouch?= Date: Mon, 13 Jun 2011 11:10:39 +0200 Subject: Start making a replacement for LdLibraryToolbar. The main advantages are the lack of need to create an icon for each category there is in the library and faster workflow. --- liblogdiag/ld-library-pane.h | 61 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 liblogdiag/ld-library-pane.h (limited to 'liblogdiag/ld-library-pane.h') diff --git a/liblogdiag/ld-library-pane.h b/liblogdiag/ld-library-pane.h new file mode 100644 index 0000000..3b0c98d --- /dev/null +++ b/liblogdiag/ld-library-pane.h @@ -0,0 +1,61 @@ +/* + * ld-library-pane.h + * + * This file is a part of logdiag. + * Copyright Přemysl Janouch 2011. All rights reserved. + * + * See the file LICENSE for licensing information. + * + */ + +#ifndef __LD_LIBRARY_PANE_H__ +#define __LD_LIBRARY_PANE_H__ + +G_BEGIN_DECLS + + +#define LD_TYPE_LIBRARY_PANE (ld_library_pane_get_type ()) +#define LD_LIBRARY_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST \ + ((obj), LD_TYPE_LIBRARY_PANE, LdLibraryPane)) +#define LD_LIBRARY_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST \ + ((klass), LD_TYPE_LIBRARY_PANE, LdLibraryPaneClass)) +#define LD_IS_LIBRARY_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE \ + ((obj), LD_TYPE_LIBRARY_PANE)) +#define LD_IS_LIBRARY_PANE_CLASS(klass) (G_TYPE_CHECK_INSTANCE_TYPE \ + ((klass), LD_TYPE_LIBRARY_PANE)) +#define LD_LIBRARY_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS \ + ((obj), LD_LIBRARY_PANE, LdLibraryPaneClass)) + +typedef struct _LdLibraryPane LdLibraryPane; +typedef struct _LdLibraryPanePrivate LdLibraryPanePrivate; +typedef struct _LdLibraryPaneClass LdLibraryPaneClass; + + +/** + * LdLibraryPane: + */ +struct _LdLibraryPane +{ +/*< private >*/ + GtkVBox parent_instance; + LdLibraryPanePrivate *priv; +}; + +struct _LdLibraryPaneClass +{ +/*< private >*/ + GtkVBoxClass parent_class; +}; + + +GType ld_library_pane_get_type (void) G_GNUC_CONST; + +GtkWidget *ld_library_pane_new (void); + +void ld_library_pane_set_library (LdLibraryPane *self, LdLibrary *library); +LdLibrary *ld_library_pane_get_library (LdLibraryPane *self); + + +G_END_DECLS + +#endif /* ! __LD_LIBRARY_PANE_H__ */ -- cgit v1.2.3