aboutsummaryrefslogblamecommitdiffstats
path: root/embed/ephy-embed-popup-control.h
blob: 075e62a9b69e2548a20352a5b62de5b5d766371d (plain) (tree)




















                                                                              

                                  


                             





















                                                                                                        
                       




                                           
                                  


                                                                       
 

                                                                                         










                                                                                                  


           
/*
 *  Copyright (C) 2000, 2001, 2002 Ricardo Fernández Pascual
 *
 *  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 EPHY_EMBED_POPUP_CONTROL_H
#define EPHY_EMBED_POPUP_CONTROL_H

#include <bonobo/bonobo-control.h>

#include "ephy-embed.h"
#include "ephy-embed-event.h"

G_BEGIN_DECLS

typedef struct EphyEmbedPopupControlClass EphyEmbedPopupControlClass;

#define EPHY_EMBED_POPUP_CONTROL_TYPE       (ephy_embed_popup_control_get_type ())
#define EPHY_EMBED_POPUP_CONTROL(obj)       (GTK_CHECK_CAST ((obj), EPHY_EMBED_POPUP_CONTROL_TYPE, \
                         EphyEmbedPopupControl))
#define EPHY_EMBED_POPUP_CONTROL_CLASS(klass)   (GTK_CHECK_CLASS_CAST ((klass), \
                         EPHY_EMBED_POPUP_CONTROL_TYPE,\
                         EphyEmbedPopupControlClass))
#define IS_EPHY_EMBED_POPUP_CONTROL(obj)    (GTK_CHECK_TYPE ((obj), EPHY_EMBED_POPUP_CONTROL_TYPE))
#define IS_EPHY_EMBED_POPUP_CONTROL_CLASS(klass)(GTK_CHECK_CLASS_TYPE ((klass), \
                         EPHY_EMBED_POPUP_CONTROL))
#define EPHY_EMBED_POPUP_CONTROL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \
                         EPHY_EMBED_POPUP_CONTROL_TYPE, \
                         EphyEmbedPopupControlClass))

typedef struct EphyEmbedPopupControl EphyEmbedPopupControl;
typedef struct EphyEmbedPopupControlPrivate EphyEmbedPopupControlPrivate;

struct EphyEmbedPopupControl
{
    GObject parent;
        EphyEmbedPopupControlPrivate *priv;
};

struct EphyEmbedPopupControlClass
{
        GObjectClass parent_class;
};

GType              ephy_embed_popup_control_get_type    (void);

EphyEmbedPopupControl *ephy_embed_popup_control_new     (BonoboControl *control);

EphyEmbedEvent        *ephy_embed_popup_control_get_event       (EphyEmbedPopupControl *p);

void               ephy_embed_popup_control_set_event       (EphyEmbedPopupControl *p,
                                 EphyEmbedEvent *event);

void               ephy_embed_popup_control_connect_verbs   (EphyEmbedPopupControl *p,
                                                 BonoboUIComponent *ui_component);

void               ephy_embed_popup_control_show            (EphyEmbedPopupControl *pp,
                                                     EphyEmbed *embed);

G_END_DECLS

#endif