Top | ![]() |
![]() |
![]() |
![]() |
|
midori_panel_new () |
|
midori_panel_set_right_aligned () |
|
midori_panel_append_page () |
|
midori_panel_get_current_page () |
|
midori_panel_get_nth_page () |
|
midori_panel_get_n_pages () |
|
midori_panel_page_num () |
|
midori_panel_set_current_page () |
|
midori_panel_append_widget () |
void midori_panel_set_right_aligned (,
MidoriPanel *panel);
gboolean right_aligned
Determines if the panel should be right aligned.
Since 0.1.3
gint midori_panel_append_page (,
MidoriPanel *panel);
MidoriViewable *viewable
Appends a new page to the panel. If toolbar
is specified it will
be packed above viewable
.
Since 0.1.3 destroying the viewable
implicitly removes
the page including the menu and eventual toolbar.
Since 0.2.1 a hidden viewable
will not be shown in the panel.
Since 0.2.1 an action with an accelerator is created implicitly.
In the case of an error, -1 is returned.
gint midori_panel_get_current_page ();
MidoriPanel *panel
Retrieves the index of the currently selected page.
If panel
has no children, -1 is returned.
GtkWidget * midori_panel_get_nth_page (,
MidoriPanel *panel);
guint page_num
Retrieves the child widget of the nth page.
If panel
has no children, NULL
guint midori_panel_get_n_pages ();
MidoriPanel *panel
Retrieves the number of pages contained in the panel.
gint midori_panel_page_num (,
MidoriPanel *panel);
GtkWidget *child
Retrieves the index of the page associated to widget
.
If panel
has no children, -1 is returned.
void midori_panel_set_current_page (,
MidoriPanel *panel);
gint n
Switches to the page with the given index.
The child must be visible, otherwise the underlying GtkNotebook will silently ignore the attempt to switch the page.
Since 0.1.8 the "page" property is notifying changes.
Since 0.2.1 switching to hidden pages fails silently.
gint midori_panel_append_widget (,
MidoriPanel *panel,
GtkWidget *widgetconst
,gchar *stock_idconst
,gchar *label);
GtkWidget *toolbar
Appends an arbitrary widget to the panel by wrapping it
in a
Actually implementing
Since 0.1.3 destroying the widget
implicitly removes
the page including the menu and eventual toolbar.
In the case of an error, -1 is returned.