Blame src/shell/e-shell-sidebar.h

Packit 15f964
/*
Packit 15f964
 * e-shell-sidebar.h
Packit 15f964
 *
Packit 15f964
 * This program is free software; you can redistribute it and/or modify it
Packit 15f964
 * under the terms of the GNU Lesser General Public License as published by
Packit 15f964
 * the Free Software Foundation.
Packit 15f964
 *
Packit 15f964
 * This program is distributed in the hope that it will be useful, but
Packit 15f964
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
Packit 15f964
 * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
Packit 15f964
 * for more details.
Packit 15f964
 *
Packit 15f964
 * You should have received a copy of the GNU Lesser General Public License
Packit 15f964
 * along with this program; if not, see <http://www.gnu.org/licenses/>.
Packit 15f964
 *
Packit 15f964
 *
Packit 15f964
 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
Packit 15f964
 *
Packit 15f964
 */
Packit 15f964
Packit 15f964
#ifndef E_SHELL_SIDEBAR_H
Packit 15f964
#define E_SHELL_SIDEBAR_H
Packit 15f964
Packit 15f964
#include <shell/e-shell-common.h>
Packit 15f964
Packit 15f964
/* Standard GObject macros */
Packit 15f964
#define E_TYPE_SHELL_SIDEBAR \
Packit 15f964
	(e_shell_sidebar_get_type ())
Packit 15f964
#define E_SHELL_SIDEBAR(obj) \
Packit 15f964
	(G_TYPE_CHECK_INSTANCE_CAST \
Packit 15f964
	((obj), E_TYPE_SHELL_SIDEBAR, EShellSidebar))
Packit 15f964
#define E_SHELL_SIDEBAR_CLASS(cls) \
Packit 15f964
	(G_TYPE_CHECK_CLASS_CAST \
Packit 15f964
	((cls), E_TYPE_SHELL_SIDEBAR, EShellSidebarClass))
Packit 15f964
#define E_IS_SHELL_SIDEBAR(obj) \
Packit 15f964
	(G_TYPE_CHECK_INSTANCE_TYPE \
Packit 15f964
	((obj), E_TYPE_SHELL_SIDEBAR))
Packit 15f964
#define E_IS_SHELL_SIDEBAR_CLASS(cls) \
Packit 15f964
	(G_TYPE_CHECK_CLASS_TYPE \
Packit 15f964
	((obj), E_TYPE_SHELL_SIDEBAR))
Packit 15f964
#define E_SHELL_SIDEBAR_GET_CLASS(obj) \
Packit 15f964
	(G_TYPE_INSTANCE_GET_CLASS \
Packit 15f964
	((obj), E_TYPE_SHELL_SIDEBAR, EShellSidebarClass))
Packit 15f964
Packit 15f964
G_BEGIN_DECLS
Packit 15f964
Packit 15f964
/* Avoid including <e-shell-view.h>, because it includes us! */
Packit 15f964
struct _EShellView;
Packit 15f964
Packit 15f964
typedef struct _EShellSidebar EShellSidebar;
Packit 15f964
typedef struct _EShellSidebarClass EShellSidebarClass;
Packit 15f964
typedef struct _EShellSidebarPrivate EShellSidebarPrivate;
Packit 15f964
Packit 15f964
/**
Packit 15f964
 * EShellSidebar:
Packit 15f964
 *
Packit 15f964
 * Contains only private data that should be read and manipulated using the
Packit 15f964
 * functions below.
Packit 15f964
 **/
Packit 15f964
struct _EShellSidebar {
Packit 15f964
	GtkBin parent;
Packit 15f964
	EShellSidebarPrivate *priv;
Packit 15f964
};
Packit 15f964
Packit 15f964
struct _EShellSidebarClass {
Packit 15f964
	GtkBinClass parent_class;
Packit 15f964
Packit 15f964
	guint32		(*check_state)		(EShellSidebar *shell_sidebar);
Packit 15f964
};
Packit 15f964
Packit 15f964
GType		e_shell_sidebar_get_type	(void);
Packit 15f964
GtkWidget *	e_shell_sidebar_new		(struct _EShellView *shell_view);
Packit 15f964
guint32		e_shell_sidebar_check_state	(EShellSidebar *shell_sidebar);
Packit 15f964
struct _EShellView *
Packit 15f964
		e_shell_sidebar_get_shell_view	(EShellSidebar *shell_sidebar);
Packit 15f964
const gchar *	e_shell_sidebar_get_icon_name	(EShellSidebar *shell_sidebar);
Packit 15f964
void		e_shell_sidebar_set_icon_name	(EShellSidebar *shell_sidebar,
Packit 15f964
						 const gchar *icon_name);
Packit 15f964
const gchar *	e_shell_sidebar_get_primary_text
Packit 15f964
						(EShellSidebar *shell_sidebar);
Packit 15f964
void		e_shell_sidebar_set_primary_text
Packit 15f964
						(EShellSidebar *shell_sidebar,
Packit 15f964
						 const gchar *primary_text);
Packit 15f964
const gchar *	e_shell_sidebar_get_secondary_text
Packit 15f964
						(EShellSidebar *shell_sidebar);
Packit 15f964
void		e_shell_sidebar_set_secondary_text
Packit 15f964
						(EShellSidebar *shell_sidebar,
Packit 15f964
						 const gchar *secondary_text);
Packit 15f964
Packit 15f964
G_END_DECLS
Packit 15f964
Packit 15f964
#endif /* E_SHELL_SIDEBAR_H */