#include <gtk/gtk.h>
#include "ev-document-model.h"
Go to the source code of this file.
#define EV_IS_SIDEBAR |
( |
|
object) | |
(G_TYPE_CHECK_INSTANCE_TYPE((object), EV_TYPE_SIDEBAR)) |
#define EV_IS_SIDEBAR_CLASS |
( |
|
klass) | |
(G_TYPE_CHECK_CLASS_TYPE((klass), EV_TYPE_SIDEBAR)) |
void ev_sidebar_add_page |
( |
EvSidebar * |
ev_sidebar, |
|
|
GtkWidget * |
main_widget |
|
) |
| |
Definition at line 432 of file ev-sidebar.c.
436 GtkWidget *menu_item;
443 g_return_if_fail (GTK_IS_WIDGET (main_widget));
446 ev_sidebar->priv->model);
449 index = gtk_notebook_append_page (GTK_NOTEBOOK (ev_sidebar->priv->notebook),
452 menu_item = gtk_image_menu_item_new_with_label (title);
453 g_signal_connect (menu_item,
"activate",
456 gtk_widget_show (menu_item);
457 gtk_menu_shell_append (GTK_MENU_SHELL (ev_sidebar->priv->menu),
461 gtk_list_store_insert_with_values (GTK_LIST_STORE (ev_sidebar->priv->page_model),
468 gtk_list_store_move_before(GTK_LIST_STORE(ev_sidebar->priv->page_model),
473 gtk_tree_model_get_iter_first (ev_sidebar->priv->page_model, &iter);
474 gtk_tree_model_get (ev_sidebar->priv->page_model,
480 gtk_menu_set_active (GTK_MENU (ev_sidebar->priv->menu), index);
481 gtk_label_set_text (GTK_LABEL (ev_sidebar->priv->label), label_title);
482 gtk_notebook_set_current_page (GTK_NOTEBOOK (ev_sidebar->priv->notebook),
484 g_free (label_title);
GType ev_sidebar_get_type |
( |
void |
) | |
|
GtkWidget* ev_sidebar_new |
( |
void |
) | |
|
Definition at line 420 of file ev-sidebar.c.
422 GtkWidget *ev_sidebar;
425 "orientation", GTK_ORIENTATION_VERTICAL,
Definition at line 542 of file ev-sidebar.c.
548 if (model == sidebar->priv->model)
551 sidebar->priv->model = model;
552 g_signal_connect (model,
"notify::document",
void ev_sidebar_set_page |
( |
EvSidebar * |
ev_sidebar, |
|
|
GtkWidget * |
main_widget |
|
) |
| |
Definition at line 103 of file ev-sidebar.c.
109 valid = gtk_tree_model_get_iter_first (ev_sidebar->priv->page_model, &iter);
114 gtk_tree_model_get (ev_sidebar->priv->page_model, &iter,
118 if (widget == main_widget) {
122 valid = gtk_tree_model_iter_next (ev_sidebar->priv->page_model, &iter);
124 g_object_unref (widget);
127 g_object_notify (G_OBJECT (ev_sidebar),
"current-page");