Commit 9d60b276 authored by Sébastien Wilmet's avatar Sébastien Wilmet

Donate menu item

parent fa5ef221
......@@ -64,6 +64,9 @@ public class MainWindow : Window
N_("Open the LaTeXila documentation"), on_help_contents },
{ "HelpLatexReference", null, N_("_LaTeX Reference"), null,
N_("The Kile LaTeX Reference"), on_help_latex_reference },
{ "HelpDonate", null, N_("_Donate"), null,
N_("Donate to demonstrate your appreciation of LaTeXila and help its future development"),
on_help_donate },
{ "HelpAbout", Stock.ABOUT, null, null,
N_("About LaTeXila"), on_about_dialog }
};
......@@ -1184,6 +1187,19 @@ public class MainWindow : Window
}
}
public void on_help_donate ()
{
try
{
string uri = "https://wiki.gnome.org/Apps/LaTeXila/donate";
show_uri (this.get_screen (), uri, Gdk.CURRENT_TIME);
}
catch (Error e)
{
warning ("Impossible to open the donate page: %s", e.message);
}
}
public void on_about_dialog ()
{
string comments =
......
......@@ -386,6 +386,7 @@ along with LaTeXila. If not, see <http://www.gnu.org/licenses/>.
<menu action="Help">
<menuitem action="HelpContents" />
<menuitem action="HelpLatexReference" />
<menuitem action="HelpDonate" />
<menuitem action="HelpAbout" />
</menu>
</menubar>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment