~ubuntu-branches/ubuntu/utopic/latexila/utopic

« back to all changes in this revision

Viewing changes to src/main_window.vala

  • Committer: Package Import Robot
  • Author(s): Matthieu Baerts (matttbe)
  • Date: 2014-05-11 22:39:49 UTC
  • mfrom: (1.3.8)
  • Revision ID: package-import@ubuntu.com-20140511223949-663imiuizgctkyn0
Tags: 2.12.1-0ubuntu1
* New upstream release.
* Upstream ChangeLog: (2.10.1 -> 2.12.0)
  - Refresh structure when saving
  - Misc bugfixes and small improvements
  - Translations updates
* Upstream ChangeLog: (2.12.0 -> 2.12.1)
  - Fix regex in latex post-processor
  - Added Polish translation
  - Translation updates
* debian/control:
  - GLib 2.40 is required
  - Bumped Standards-Version (no changes required)

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
            N_("Open the LaTeXila documentation"), on_help_contents },
65
65
        { "HelpLatexReference", null, N_("_LaTeX Reference"), null,
66
66
            N_("The Kile LaTeX Reference"), on_help_latex_reference },
 
67
        { "HelpDonate", null, N_("_Donate"), null,
 
68
            N_("Donate to demonstrate your appreciation of LaTeXila and help its future development"),
 
69
            on_help_donate },
67
70
        { "HelpAbout", Stock.ABOUT, null, null,
68
71
            N_("About LaTeXila"), on_about_dialog }
69
72
    };
847
850
        if (! force_save_as && doc.location != null)
848
851
        {
849
852
            doc.save ();
 
853
 
 
854
            if (doc == active_document)
 
855
                _main_window_structure.refresh ();
 
856
 
850
857
            return true;
851
858
        }
852
859
 
914
921
        {
915
922
            // force saving
916
923
            doc.save (false, true);
 
924
 
 
925
            if (doc == active_document)
 
926
                _main_window_structure.refresh ();
 
927
 
917
928
            return true;
918
929
        }
919
930
        return false;
1176
1187
        }
1177
1188
    }
1178
1189
 
 
1190
    public void on_help_donate ()
 
1191
    {
 
1192
        try
 
1193
        {
 
1194
            string uri = "https://wiki.gnome.org/Apps/LaTeXila/donate";
 
1195
            show_uri (this.get_screen (), uri, Gdk.CURRENT_TIME);
 
1196
        }
 
1197
        catch (Error e)
 
1198
        {
 
1199
            warning ("Impossible to open the donate page: %s", e.message);
 
1200
        }
 
1201
    }
 
1202
 
1179
1203
    public void on_about_dialog ()
1180
1204
    {
1181
1205
        string comments =
1182
1206
            _("LaTeXila is an Integrated LaTeX Environment for the GNOME Desktop");
1183
 
        string copyright = "Copyright (C) 2009-2013 Sébastien Wilmet";
 
1207
        string copyright = "Copyright © 2009-2014 - Sébastien Wilmet";
1184
1208
 
1185
1209
        string website = "https://wiki.gnome.org/Apps/LaTeXila";
1186
1210
 
1195
1219
            "Eric Forgeot <e.forgeot@laposte.net>",
1196
1220
            "Sébastien Wilmet <swilmet@gnome.org>",
1197
1221
            "The Kile Team http://kile.sourceforge.net/",
1198
 
            "Gedit LaTeX Plugin http://live.gnome.org/Gedit/LaTeXPlugin",
 
1222
            "Gedit LaTeX Plugin https://wiki.gnome.org/Apps/Gedit/LaTeXPlugin",
1199
1223
            null
1200
1224
        };
1201
1225