Evince
Evince is a document viewer capable of displaying multiple and single page document formats like PDF and Postscript.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ev-page-action-widget.h File Reference
#include <evince-view.h>
#include <gtk/gtk.h>
+ Include dependency graph for ev-page-action-widget.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _EvPageActionWidgetClass
 

Macros

#define EV_TYPE_PAGE_ACTION_WIDGET   (ev_page_action_widget_get_type ())
 
#define EV_PAGE_ACTION_WIDGET(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), EV_TYPE_PAGE_ACTION_WIDGET, EvPageActionWidget))
 

Typedefs

typedef struct _EvPageActionWidget EvPageActionWidget
 
typedef struct
_EvPageActionWidgetClass 
EvPageActionWidgetClass
 

Functions

GType ev_page_action_widget_get_type (void) G_GNUC_CONST
 
void ev_page_action_widget_update_links_model (EvPageActionWidget *proxy, GtkTreeModel *model)
 
void ev_page_action_widget_set_model (EvPageActionWidget *action_widget, EvDocumentModel *doc_model)
 
void ev_page_action_widget_grab_focus (EvPageActionWidget *proxy)
 

Macro Definition Documentation

#define EV_PAGE_ACTION_WIDGET (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), EV_TYPE_PAGE_ACTION_WIDGET, EvPageActionWidget))

Definition at line 31 of file ev-page-action-widget.h.

#define EV_TYPE_PAGE_ACTION_WIDGET   (ev_page_action_widget_get_type ())

Definition at line 30 of file ev-page-action-widget.h.

Typedef Documentation

Definition at line 33 of file ev-page-action-widget.h.

Definition at line 34 of file ev-page-action-widget.h.

Function Documentation

GType ev_page_action_widget_get_type ( void  )
void ev_page_action_widget_grab_focus ( EvPageActionWidget proxy)

Definition at line 581 of file ev-page-action-widget.c.

582 {
583  gtk_widget_grab_focus (proxy->entry);
584 }

+ Here is the caller graph for this function:

void ev_page_action_widget_set_model ( EvPageActionWidget action_widget,
EvDocumentModel doc_model 
)

Definition at line 296 of file ev-page-action-widget.c.

298 {
299  if (action_widget->doc_model) {
300  g_object_remove_weak_pointer (G_OBJECT (action_widget->doc_model),
301  (gpointer)&action_widget->doc_model);
302  }
303  action_widget->doc_model = model;
304  g_object_add_weak_pointer (G_OBJECT (model),
305  (gpointer)&action_widget->doc_model);
306 
308  g_signal_connect (model, "notify::document",
310  action_widget);
311 }

+ Here is the caller graph for this function:

void ev_page_action_widget_update_links_model ( EvPageActionWidget proxy,
GtkTreeModel *  model 
)

Definition at line 540 of file ev-page-action-widget.c.

541 {
542  GtkTreeModel *filter_model;
543  GtkEntryCompletion *completion;
544  GtkCellRenderer *renderer;
545 
546  if (!model || model == proxy->model)
547  return;
548 
549  /* Magik */
550  proxy->model = model;
551  filter_model = get_filter_model_from_model (model);
552 
553  completion = gtk_entry_completion_new ();
554  g_object_set (G_OBJECT (completion),
555  "popup-set-width", FALSE,
556  "model", filter_model,
557  NULL);
558 
559  g_signal_connect (completion, "match-selected", G_CALLBACK (match_selected_cb), proxy);
560  gtk_entry_completion_set_match_func (completion,
561  (GtkEntryCompletionMatchFunc) match_completion,
562  proxy, NULL);
563 
564  /* Set up the layout */
565  renderer = (GtkCellRenderer *)
566  g_object_new (GTK_TYPE_CELL_RENDERER_TEXT,
567  "ellipsize", PANGO_ELLIPSIZE_END,
568  "width_chars", 30,
569  NULL);
570  gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (completion), renderer, TRUE);
571  gtk_cell_layout_set_cell_data_func (GTK_CELL_LAYOUT (completion),
572  renderer,
573  (GtkCellLayoutDataFunc) display_completion_text,
574  proxy, NULL);
575  gtk_entry_set_completion (GTK_ENTRY (proxy->entry), completion);
576 
577  g_object_unref (completion);
578 }

+ Here is the caller graph for this function: