Commit aa1ace38 authored by David Llewellyn-Jones's avatar David Llewellyn-Jones

Added menu links to documentation.

parent 9b684364
......@@ -570,6 +570,32 @@ The set of frames is compressed as a zip archive.</property>
<object class="GtkMenu" id="menu3">
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
<object class="GtkMenuItem" id="MenuHomepage">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="use_action_appearance">False</property>
<property name="label" translatable="yes">Web page</property>
<property name="use_underline">True</property>
</object>
</child>
<child>
<object class="GtkMenuItem" id="MenuDocumentation">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="tooltip_text" translatable="yes">Open online documentation about using Functy.</property>
<property name="use_action_appearance">False</property>
<property name="label" translatable="yes">Documentation</property>
<property name="use_underline">True</property>
</object>
</child>
<child>
<object class="GtkSeparatorMenuItem" id="separatormenuitem5">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="use_action_appearance">False</property>
</object>
</child>
<child>
<object class="GtkImageMenuItem" id="MenuAbout">
<property name="label">gtk-about</property>
......
......@@ -192,6 +192,8 @@ void SynchroniseButtonBarStyle (FunctyPersist * psFunctyData);
void SynchronisePanels (FunctyPersist * psFunctyData);
static gboolean BitmapWindowSizeToggle (GtkWidget * psWidget, gpointer psData);
static gboolean AboutShow (GtkWidget * psWidget, gpointer psData);
static gboolean DocumentationShow (GtkWidget * psWidget, gpointer psData);
static gboolean HomepageShow (GtkWidget * psWidget, gpointer psData);
///////////////////////////////////////////////////////////////////
// Function definitions
......@@ -3985,6 +3987,22 @@ static gboolean AboutShow (GtkWidget * psWidget, gpointer psData) {
return TRUE;
}
static gboolean DocumentationShow (GtkWidget * psWidget, gpointer psData) {
bool boSuccess;
boSuccess = gtk_show_uri (NULL, "https://sourceforge.net/p/functy/wiki/Home/", GDK_CURRENT_TIME, NULL);
return boSuccess;
}
static gboolean HomepageShow (GtkWidget * psWidget, gpointer psData) {
bool boSuccess;
boSuccess = gtk_show_uri (NULL, "http://functy.sourceforge.net/", GDK_CURRENT_TIME, NULL);
return boSuccess;
}
int main (int argc, char *argv[]) {
GdkGLConfig * GlConfig;
GtkWidget * psWindow;
......@@ -4172,6 +4190,11 @@ int main (int argc, char *argv[]) {
g_signal_connect (psWidget, "toggled", G_CALLBACK (SetButtonBarStyleIconsText), (gpointer)psFunctyData);
psWidget = GTK_WIDGET (gtk_builder_get_object(psFunctyData->psXML, "MenuAbout"));
g_signal_connect (psWidget, "activate", G_CALLBACK (AboutShow), (gpointer)psFunctyData);
psWidget = GTK_WIDGET (gtk_builder_get_object(psFunctyData->psXML, "MenuDocumentation"));
g_signal_connect (psWidget, "activate", G_CALLBACK (DocumentationShow), (gpointer)psFunctyData);
psWidget = GTK_WIDGET (gtk_builder_get_object(psFunctyData->psXML, "MenuHomepage"));
g_signal_connect (psWidget, "activate", G_CALLBACK (HomepageShow), (gpointer)psFunctyData);
/****************************************************************
* Removed during move from multiple dialogues to single window
......
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