/*
 *  Copyright (C) 2000, 2001, 2002 Marco Pesenti Gritti
 *  Copyright (C) 2003 Philip Langdale
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2, or (at your option)
 *  any later version.
 *
 *  This program 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 General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 */

#ifndef GALEON_POPUP_H
#define GALEON_POPUP_H

typedef struct GaleonPopup GaleonPopup;
typedef struct GaleonPopupPrivate GaleonPopupPrivate;

#include "galeon-window.h"
#include <gtk/gtkuimanager.h>
#include <glib-object.h>

G_BEGIN_DECLS

typedef struct GaleonPopupClass GaleonPopupClass;

#define GALEON_POPUP_TYPE             (galeon_popup_get_type ())
#define GALEON_POPUP(obj)             (GTK_CHECK_CAST ((obj), GALEON_POPUP_TYPE, GaleonPopup))
#define GALEON_POPUP_CLASS(klass)     (GTK_CHECK_CLASS_CAST ((klass), GALEON_POPUP_TYPE, GaleonPopupClass))
#define IS_GALEON_POPUP(obj)          (GTK_CHECK_TYPE ((obj), GALEON_POPUP_TYPE))
#define IS_GALEON_POPUP_CLASS(klass)  (GTK_CHECK_CLASS_TYPE ((klass), GALEON_POPUP))
#define GALEON_POPUP_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), GALEON_EMBED_POPUP_TYPE, GaleonPopupClass))

struct GaleonPopup 
{
	GObject parent;
        GaleonPopupPrivate *priv;
};

struct GaleonPopupClass
{
        GObjectClass parent_class;

	void	(*show)					(GaleonPopup *p,
							 GaleonEmbed *embed);
};



/* this class is abstract, don't look for the constructor */

GType             	galeon_popup_get_type 		(void);
GaleonPopup *		galeon_popup_new		(GaleonWindow *window);
void		  	galeon_popup_connect_verbs	(GaleonPopup *p,
							 GtkUIManager *merge);
void			galeon_popup_set_embed		(GaleonPopup *p, 
							 GaleonEmbed *e);
GaleonEmbed *		galeon_popup_get_embed		(GaleonPopup *p);
void		  	galeon_popup_set_event 		(GaleonPopup *p,
							 GaleonEmbedEvent *event);
GaleonEmbedEvent *	galeon_popup_get_event		(GaleonPopup *p);
void              	galeon_popup_show		(GaleonPopup *p,
							 GaleonEmbed *embed);
const char *		galeon_popup_get_popup_path	(GaleonPopup *p);

G_END_DECLS

#endif
