~ubuntu-branches/ubuntu/trusty/xiphos/trusty

« back to all changes in this revision

Viewing changes to src/main/main.c

  • Committer: Bazaar Package Importer
  • Author(s): Dmitrijs Ledkovs, Jonathan Marsden, Dmitrijs Ledkovs
  • Date: 2010-11-25 21:26:48 UTC
  • mfrom: (2.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20101125212648-mc64wvs0nw3xp7bx
Tags: 3.1.4-1
[ Jonathan Marsden ]
* New upstream release 3.1.4
* Removed debian/patch/* since the one patch was included upstream.
* Bumped Standards-Version to 3.9.1 (no changes required).
* debian/README.Debian: Corrected spelling and reworded for clarity.
* debian/control: Add Jonathan Marsden back into Uploaders.

[ Dmitrijs Ledkovs ]
* Added local options dpkg-source to unapply patches and fail on
  upstream source changes (ignoring false positives).
* Added bzr-builddeb hook to generate source-format before build. If you
  are not using bzr-builddeb, you must run "./debian/rules clean" before
  building.
* patches/xul-2.0.patch: bump UPPER_RANGE to allow running against xul20.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 * Xiphos Bible Study Tool
3
3
 * main.c - In the beginning... ;o)
4
4
 *
5
 
 * Copyright (C) 2000-2009 Xiphos Developer Team
 
5
 * Copyright (C) 2000-2010 Xiphos Developer Team
6
6
 *
7
7
 * This program is free software; you can redistribute it and/or modify
8
8
 * it under the terms of the GNU General Public License as published by
24
24
#endif
25
25
 
26
26
 
 
27
#include <fcntl.h>
 
28
#include <unistd.h>
27
29
#include <string.h>
28
30
#include <glib.h>
29
31
 
72
74
        int newconfigs = FALSE;
73
75
        int newbookmarks = FALSE;
74
76
        int have_sword_url = FALSE;
 
77
        int have_tab_list = FALSE;
75
78
        gint base_step = 0; //needed for splash
76
79
        GTimer *total;
77
80
        double d;
135
138
                        newconfigs = TRUE;
136
139
                        newbookmarks = TRUE;
137
140
                }
138
 
                /*
139
 
                 * this arg is a sword uri
140
 
                 */
 
141
 
 
142
                /* this arg is a tab list */
 
143
                if (g_access(argv[1], F_OK) == 0) {
 
144
                        have_tab_list = TRUE;
 
145
                }
 
146
 
 
147
                /* this arg is a sword uri */
141
148
                if ((!strncmp(argv[1], "sword:/", 7)) ||
142
149
                    (!strncmp(argv[1], "bible:/", 7)) ||
143
150
                    (strstr(argv[1], "studypad"))) {
181
188
        /* need to get rid of wrongly-formatted annotation labels. */
182
189
        xml_convert_to_osisref();
183
190
 
184
 
        frontend_display();
 
191
        frontend_display(have_tab_list ? argv[1] : NULL);
185
192
 
186
193
        if (have_sword_url) {
187
194
                if (!strncmp(argv[1], "sword:/", 7)) {
195
202
                main_url_handler(argv[1], TRUE);
196
203
        }
197
204
 
198
 
        /*gtk_notebook_set_current_page(GTK_NOTEBOOK
199
 
                                        (widgets.notebook_comm_book), 0);*/
200
205
        g_timer_stop(total);
201
206
        d = g_timer_elapsed(total, NULL);
202
207
#ifdef DEBUG