~ubuntu-branches/ubuntu/precise/evince/precise-updates

« back to all changes in this revision

Viewing changes to shell/main.c

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2012-02-07 14:04:54 UTC
  • mfrom: (1.1.72)
  • Revision ID: package-import@ubuntu.com-20120207140454-akr5g5z4y4qopea8
Tags: 3.3.5-0ubuntu1
* New upstream release.
  * Add --named-dest command line argument
  * Fix a crash when dropping an item to the toolbar (LP: #799255)
  * Fix page index argument when command is spawned
  * Use t1 font mapping files in dvi backend
  * Fix several memory leaks in comics backend

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
static gchar   *ev_page_label;
53
53
static gchar   *ev_find_string;
54
54
static gint     ev_page_index = 0;
 
55
static gchar   *ev_named_dest;
55
56
static gboolean preview_mode = FALSE;
56
57
static gboolean fullscreen_mode = FALSE;
57
58
static gboolean presentation_mode = FALSE;
79
80
{
80
81
        { "page-label", 'p', 0, G_OPTION_ARG_STRING, &ev_page_label, N_("The page label of the document to display."), N_("PAGE")},
81
82
        { "page-index", 'i', 0, G_OPTION_ARG_INT, &ev_page_index, N_("The page number of the document to display."), N_("NUMBER")},
 
83
        { "named-dest", 'n', 0, G_OPTION_ARG_STRING, &ev_named_dest, N_("Named destination to display."), N_("DEST")},
82
84
        { "fullscreen", 'f', 0, G_OPTION_ARG_NONE, &fullscreen_mode, N_("Run evince in fullscreen mode"), NULL },
83
85
        { "presentation", 's', 0, G_OPTION_ARG_NONE, &presentation_mode, N_("Run evince in presentation mode"), NULL },
84
86
        { "preview", 'w', 0, G_OPTION_ARG_NONE, &preview_mode, N_("Run evince as a previewer"), NULL },
189
191
                global_dest = ev_link_dest_new_page_label (ev_page_label);
190
192
        else if (ev_page_index)
191
193
                global_dest = ev_link_dest_new_page (MAX (0, ev_page_index - 1));
 
194
        else if (ev_named_dest)
 
195
                global_dest = ev_link_dest_new_named (ev_named_dest);
192
196
 
193
197
        if (fullscreen_mode)
194
198
                mode = EV_WINDOW_MODE_FULLSCREEN;