2008-03-10 21:26:09 +00:00
|
|
|
/*
|
|
|
|
Copyright (C) 2008 Christian Dywan <christian@twotoasts.de>
|
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU Lesser General Public
|
|
|
|
License as published by the Free Software Foundation; either
|
|
|
|
version 2.1 of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
See the file COPYING for the full license text.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __MIDORI_PANEL_H__
|
|
|
|
#define __MIDORI_PANEL_H__
|
|
|
|
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
|
|
|
|
#include <katze/katze.h>
|
|
|
|
|
2008-11-29 15:45:24 +00:00
|
|
|
#include "midori-viewable.h"
|
2008-11-24 00:41:45 +00:00
|
|
|
|
2008-03-10 21:26:09 +00:00
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
#define MIDORI_TYPE_PANEL \
|
|
|
|
(midori_panel_get_type ())
|
|
|
|
#define MIDORI_PANEL(obj) \
|
|
|
|
(G_TYPE_CHECK_INSTANCE_CAST ((obj), MIDORI_TYPE_PANEL, MidoriPanel))
|
|
|
|
#define MIDORI_PANEL_CLASS(klass) \
|
|
|
|
(G_TYPE_CHECK_CLASS_CAST ((klass), MIDORI_TYPE_PANEL, MidoriPanelClass))
|
|
|
|
#define MIDORI_IS_PANEL(obj) \
|
|
|
|
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), MIDORI_TYPE_PANEL))
|
|
|
|
#define MIDORI_IS_PANEL_CLASS(klass) \
|
|
|
|
(G_TYPE_CHECK_CLASS_TYPE ((klass), MIDORI_TYPE_PANEL))
|
|
|
|
#define MIDORI_PANEL_GET_CLASS(obj) \
|
|
|
|
(G_TYPE_INSTANCE_GET_CLASS ((obj), MIDORI_TYPE_PANEL, MidoriPanelClass))
|
|
|
|
|
|
|
|
typedef struct _MidoriPanel MidoriPanel;
|
|
|
|
typedef struct _MidoriPanelClass MidoriPanelClass;
|
|
|
|
|
|
|
|
GType
|
2010-01-16 06:05:16 +00:00
|
|
|
midori_panel_get_type (void) G_GNUC_CONST;
|
2008-03-10 21:26:09 +00:00
|
|
|
|
|
|
|
GtkWidget*
|
|
|
|
midori_panel_new (void);
|
|
|
|
|
2009-02-22 15:03:08 +00:00
|
|
|
void
|
|
|
|
midori_panel_set_right_aligned (MidoriPanel* panel,
|
|
|
|
gboolean right_aligned);
|
|
|
|
|
2008-03-10 21:26:09 +00:00
|
|
|
gint
|
|
|
|
midori_panel_append_page (MidoriPanel* panel,
|
2008-11-29 15:45:24 +00:00
|
|
|
MidoriViewable* viewable);
|
2008-03-10 21:26:09 +00:00
|
|
|
|
|
|
|
gint
|
|
|
|
midori_panel_get_current_page (MidoriPanel* panel);
|
|
|
|
|
|
|
|
GtkWidget*
|
|
|
|
midori_panel_get_nth_page (MidoriPanel* panel,
|
|
|
|
guint page_num);
|
|
|
|
|
|
|
|
guint
|
|
|
|
midori_panel_get_n_pages (MidoriPanel* panel);
|
|
|
|
|
|
|
|
gint
|
|
|
|
midori_panel_page_num (MidoriPanel* panel,
|
|
|
|
GtkWidget* child);
|
|
|
|
|
|
|
|
void
|
|
|
|
midori_panel_set_current_page (MidoriPanel* panel,
|
|
|
|
gint n);
|
|
|
|
|
2008-11-24 00:41:45 +00:00
|
|
|
gint
|
|
|
|
midori_panel_append_widget (MidoriPanel* panel,
|
|
|
|
GtkWidget* widget,
|
|
|
|
const gchar* stock_id,
|
|
|
|
const gchar* label,
|
|
|
|
GtkWidget* toolbar);
|
|
|
|
|
2008-03-10 21:26:09 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __MIDORI_PANEL_H__ */
|