X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=shell%2Fev-message-area.h;h=953a7442edee16e1573cf2d72b056510426ab3c9;hb=64f2cca8898d08f2b8c549d98a9c5869f7035e3f;hp=bb2954536fb6e7c033178c7e7628b389428c577a;hpb=c37e94332ad3d4a33a38a29f9557b7838f955f10;p=evince.git diff --git a/shell/ev-message-area.h b/shell/ev-message-area.h index bb295453..953a7442 100644 --- a/shell/ev-message-area.h +++ b/shell/ev-message-area.h @@ -18,15 +18,13 @@ * * 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. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef EV_MESSAGE_AREA_H #define EV_MESSAGE_AREA_H -#include - -#include "gedit-message-area.h" +#include G_BEGIN_DECLS @@ -42,27 +40,34 @@ typedef struct _EvMessageAreaClass EvMessageAreaClass; typedef struct _EvMessageAreaPrivate EvMessageAreaPrivate; struct _EvMessageArea { - GeditMessageArea parent_instance; + GtkInfoBar parent_instance; /*< private >*/ EvMessageAreaPrivate *priv; }; struct _EvMessageAreaClass { - GeditMessageAreaClass parent_class; + GtkInfoBarClass parent_class; }; -GType ev_message_area_get_type (void) G_GNUC_CONST; -GtkWidget *ev_message_area_new (GtkMessageType type, - const gchar *text, - const gchar *first_button_text, - ...); -void ev_message_area_set_image (EvMessageArea *area, - GtkWidget *image); -void ev_message_area_set_text (EvMessageArea *area, - const gchar *str); -void ev_message_area_set_secondary_text (EvMessageArea *area, - const gchar *str); +GType ev_message_area_get_type (void) G_GNUC_CONST; +GtkWidget *ev_message_area_new (GtkMessageType type, + const gchar *text, + const gchar *first_button_text, + ...); +void ev_message_area_set_image (EvMessageArea *area, + GtkWidget *image); +void ev_message_area_set_image_from_stock (EvMessageArea *area, + const gchar *stock_id); +void ev_message_area_set_text (EvMessageArea *area, + const gchar *str); +void ev_message_area_set_secondary_text (EvMessageArea *area, + const gchar *str); + +void _ev_message_area_add_buttons_valist (EvMessageArea *area, + const gchar *first_button_text, + va_list args); +GtkWidget *_ev_message_area_get_main_box (EvMessageArea *area); G_END_DECLS