From b4dd1916b76c26b631330a6da615af4433360da4 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Wed, 27 Dec 2006 22:30:06 +0000 Subject: [PATCH] Added menuitem to display the PSPP reference manual. --- po/de.po | 123 ++++++++++++++++++--------------- po/pspp.pot | 120 +++++++++++++++++--------------- src/ui/gui/data-editor.c | 7 ++ src/ui/gui/data-editor.glade | 15 ++-- src/ui/gui/helper.c | 16 +++++ src/ui/gui/helper.h | 5 +- src/ui/gui/message-dialog.c | 2 +- src/ui/gui/syntax-editor.c | 5 ++ src/ui/gui/syntax-editor.glade | 8 +++ 9 files changed, 185 insertions(+), 116 deletions(-) diff --git a/po/de.po b/po/de.po index b593393d..11d6505a 100644 --- a/po/de.po +++ b/po/de.po @@ -10,7 +10,7 @@ msgid "" msgstr "" "Project-Id-Version: PSPP 0.4.2\n" "Report-Msgid-Bugs-To: pspp-dev@gnu.org\n" -"POT-Creation-Date: 2006-12-25 11:19+0900\n" +"POT-Creation-Date: 2006-12-28 06:56+0900\n" "PO-Revision-Date: 2006-05-26 17:49+0800\n" "Last-Translator: John Darrington \n" "Language-Team: German \n" @@ -4102,24 +4102,24 @@ msgstr "" msgid "Style of bevel around the custom entry button" msgstr "" -#: src/ui/gui/data-editor.c:301 src/ui/gui/data-editor.glade:497 +#: src/ui/gui/data-editor.c:348 src/ui/gui/data-editor.glade:504 msgid "Open" msgstr "Öffen" -#: src/ui/gui/data-editor.c:309 +#: src/ui/gui/data-editor.c:356 msgid "System Files (*.sav)" msgstr "Systemedatein (*.sav)" -#: src/ui/gui/data-editor.c:315 +#: src/ui/gui/data-editor.c:362 msgid "Portable Files (*.por) " msgstr "Tragbardatein (*.por)" -#: src/ui/gui/data-editor.c:321 src/ui/gui/syntax-editor.c:127 -#: src/ui/gui/syntax-editor.c:510 +#: src/ui/gui/data-editor.c:368 src/ui/gui/syntax-editor.c:140 +#: src/ui/gui/syntax-editor.c:529 msgid "All Files" msgstr "Alle Datei" -#: src/ui/gui/data-editor.c:399 +#: src/ui/gui/data-editor.c:446 msgid "Font Selection" msgstr "Schriftwahlung" @@ -4133,17 +4133,17 @@ msgid "_Syntax" msgstr "" #: src/ui/gui/data-editor.glade:64 src/ui/gui/data-editor.glade:93 -#: src/ui/gui/data-editor.glade:315 src/ui/gui/syntax-editor.glade:65 +#: src/ui/gui/data-editor.glade:314 src/ui/gui/syntax-editor.glade:65 #: src/ui/gui/syntax-editor.glade:95 #, fuzzy msgid "_Data" msgstr "Daten" -#: src/ui/gui/data-editor.glade:145 src/ui/gui/syntax-editor.glade:142 +#: src/ui/gui/data-editor.glade:144 src/ui/gui/syntax-editor.glade:142 msgid "_Edit" msgstr "_Bearbeiten" -#: src/ui/gui/data-editor.glade:182 +#: src/ui/gui/data-editor.glade:181 #, fuzzy msgid "Paste _Variables" msgstr "Variableansicht" @@ -4152,122 +4152,126 @@ msgstr "Variableansicht" msgid "Cl_ear" msgstr "" -#: src/ui/gui/data-editor.glade:207 +#: src/ui/gui/data-editor.glade:206 #, fuzzy msgid "_Find" msgstr "_Datei" -#: src/ui/gui/data-editor.glade:231 +#: src/ui/gui/data-editor.glade:230 msgid "_View" msgstr "_Ansicht" -#: src/ui/gui/data-editor.glade:240 +#: src/ui/gui/data-editor.glade:239 msgid "Status Bar" msgstr "Statusleiste" -#: src/ui/gui/data-editor.glade:248 +#: src/ui/gui/data-editor.glade:247 msgid "Toolbars" msgstr "Werkzeugregal" -#: src/ui/gui/data-editor.glade:262 +#: src/ui/gui/data-editor.glade:261 msgid "Fonts" msgstr "Schrift" -#: src/ui/gui/data-editor.glade:270 +#: src/ui/gui/data-editor.glade:269 msgid "Grid Lines" msgstr "Glitten" -#: src/ui/gui/data-editor.glade:279 src/ui/gui/data-editor.glade:797 +#: src/ui/gui/data-editor.glade:278 src/ui/gui/data-editor.glade:798 #: src/ui/gui/data-editor.glade:1648 src/ui/gui/data-editor.glade:1925 msgid "Value Labels" msgstr "Werten" -#: src/ui/gui/data-editor.glade:294 +#: src/ui/gui/data-editor.glade:293 msgid "Data" msgstr "Daten" -#: src/ui/gui/data-editor.glade:302 src/ui/gui/data-editor.glade:621 +#: src/ui/gui/data-editor.glade:301 src/ui/gui/data-editor.glade:628 msgid "Variables" msgstr "Variableansicht" -#: src/ui/gui/data-editor.glade:325 src/ui/gui/data-editor.glade:700 +#: src/ui/gui/data-editor.glade:324 src/ui/gui/data-editor.glade:705 #, fuzzy msgid "Insert Variable" msgstr "Variableansicht" -#: src/ui/gui/data-editor.glade:334 +#: src/ui/gui/data-editor.glade:333 #, fuzzy msgid "Insert Cases" msgstr "_Stecken" -#: src/ui/gui/data-editor.glade:343 src/ui/gui/data-editor.glade:604 +#: src/ui/gui/data-editor.glade:342 src/ui/gui/data-editor.glade:611 #: src/ui/gui/data-editor.glade:2490 msgid "Go To Case" msgstr "" -#: src/ui/gui/data-editor.glade:370 src/ui/gui/data-editor.glade:2601 +#: src/ui/gui/data-editor.glade:369 src/ui/gui/data-editor.glade:2601 msgid "Sort Cases" msgstr "" -#: src/ui/gui/data-editor.glade:380 +#: src/ui/gui/data-editor.glade:379 msgid "Transpose" msgstr "" -#: src/ui/gui/data-editor.glade:389 +#: src/ui/gui/data-editor.glade:388 msgid "Restructure" msgstr "" -#: src/ui/gui/data-editor.glade:398 +#: src/ui/gui/data-editor.glade:397 #, fuzzy msgid "Merge Files" msgstr "Alle Datei" -#: src/ui/gui/data-editor.glade:407 +#: src/ui/gui/data-editor.glade:406 msgid "Aggregate" msgstr "" -#: src/ui/gui/data-editor.glade:422 src/ui/gui/data-editor.glade:731 +#: src/ui/gui/data-editor.glade:421 src/ui/gui/data-editor.glade:735 #, fuzzy msgid "Split File" msgstr "Alle Datei" -#: src/ui/gui/data-editor.glade:431 src/ui/gui/data-editor.glade:767 +#: src/ui/gui/data-editor.glade:430 src/ui/gui/data-editor.glade:769 msgid "Select Cases" msgstr "" -#: src/ui/gui/data-editor.glade:440 src/ui/gui/data-editor.glade:749 +#: src/ui/gui/data-editor.glade:439 src/ui/gui/data-editor.glade:752 msgid "Weight Cases" msgstr "" -#: src/ui/gui/data-editor.glade:452 src/ui/gui/syntax-editor.glade:232 +#: src/ui/gui/data-editor.glade:451 src/ui/gui/syntax-editor.glade:232 msgid "_Help" msgstr "_Hilfe" -#: src/ui/gui/data-editor.glade:461 src/ui/gui/syntax-editor.glade:241 +#: src/ui/gui/data-editor.glade:460 +msgid "_Reference Manual" +msgstr "" + +#: src/ui/gui/data-editor.glade:468 src/ui/gui/syntax-editor.glade:241 msgid "_About" msgstr "_Info" -#: src/ui/gui/data-editor.glade:513 +#: src/ui/gui/data-editor.glade:520 msgid "Save" msgstr "Speichen" -#: src/ui/gui/data-editor.glade:530 +#: src/ui/gui/data-editor.glade:537 msgid "Print" msgstr "Drucken" -#: src/ui/gui/data-editor.glade:559 +#: src/ui/gui/data-editor.glade:566 msgid "Undo" msgstr "" -#: src/ui/gui/data-editor.glade:575 +#: src/ui/gui/data-editor.glade:582 msgid "Redo" msgstr "" -#: src/ui/gui/data-editor.glade:652 +#: src/ui/gui/data-editor.glade:658 msgid "Find" msgstr "" -#: src/ui/gui/data-editor.glade:681 +#: src/ui/gui/data-editor.glade:687 #, fuzzy msgid "Insert Case" msgstr "_Stecken" @@ -4388,21 +4392,35 @@ msgstr "" msgid "Sort by:" msgstr "" -#: src/ui/gui/message-dialog.c:122 +#: src/ui/gui/helper.c:100 +msgid "Sorry. The help system hasn't yet been implemented." +msgstr "Es gibt noch nicht kein Helpsysteme. Schade!" + +#: src/ui/gui/message-dialog.c:123 msgid "Script Error" msgstr "Skript Fehler" -#: src/ui/gui/message-dialog.c:126 +#: src/ui/gui/message-dialog.c:127 msgid "Data File Error" msgstr "Datei Fehler" -#: src/ui/gui/message-dialog.c:131 +#: src/ui/gui/message-dialog.c:132 msgid "PSPP Error" msgstr "PSPP Fehler" -#: src/ui/gui/message-dialog.c:142 +#: src/ui/gui/message-dialog.c:143 #, c-format -msgid "%s (line %d) %s" +msgid "%s (line %d)" +msgstr "" + +#: src/ui/gui/message-dialog.c:149 +#, c-format +msgid "%s" +msgstr "" + +#: src/ui/gui/message-dialog.c:153 +#, c-format +msgid "%s %s" msgstr "" #: src/ui/gui/missing-val-dialog.c:117 src/ui/gui/missing-val-dialog.c:162 @@ -4413,10 +4431,6 @@ msgstr "Unpassend Wert für Variable" msgid "Incorrect range specification" msgstr "Falshe Spannweitebeschreibung" -#: src/ui/gui/psppire.c:71 -msgid "Sorry. The help system hasn't yet been implemented." -msgstr "Es gibt noch nicht kein Helpsysteme. Schade!" - #: src/ui/gui/psppire-data-store.c:721 msgid "var" msgstr "" @@ -4470,26 +4484,22 @@ msgstr "" msgid "Criteria" msgstr "" -#: src/ui/gui/syntax-editor.c:64 +#: src/ui/gui/syntax-editor.c:79 #, c-format msgid "Save contents of syntax editor to %s?" msgstr "" -#: src/ui/gui/syntax-editor.c:65 src/ui/gui/syntax-editor.c:87 -msgid "Untitled" -msgstr "Unbetitelt" - -#: src/ui/gui/syntax-editor.c:113 +#: src/ui/gui/syntax-editor.c:126 #, fuzzy msgid "Save Syntax" msgstr "Speichern unter" -#: src/ui/gui/syntax-editor.c:121 src/ui/gui/syntax-editor.c:504 +#: src/ui/gui/syntax-editor.c:134 src/ui/gui/syntax-editor.c:523 #, fuzzy msgid "Syntax Files (*.sps) " msgstr "Systemedatein (*.sav)" -#: src/ui/gui/syntax-editor.c:496 +#: src/ui/gui/syntax-editor.c:515 msgid "Open Syntax" msgstr "" @@ -4672,6 +4682,9 @@ msgstr "Fehler" msgid "warning" msgstr "Warnung" +#~ msgid "Untitled" +#~ msgstr "Unbetitelt" + #~ msgid "PSPP Data Editor" #~ msgstr "PSPP Dateiaufbereiter" diff --git a/po/pspp.pot b/po/pspp.pot index 36de4f53..0521704d 100644 --- a/po/pspp.pot +++ b/po/pspp.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: pspp-dev@gnu.org\n" -"POT-Creation-Date: 2006-12-25 11:19+0900\n" +"POT-Creation-Date: 2006-12-28 06:56+0900\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -4097,24 +4097,24 @@ msgstr "" msgid "Style of bevel around the custom entry button" msgstr "" -#: src/ui/gui/data-editor.c:301 src/ui/gui/data-editor.glade:497 +#: src/ui/gui/data-editor.c:348 src/ui/gui/data-editor.glade:504 msgid "Open" msgstr "" -#: src/ui/gui/data-editor.c:309 +#: src/ui/gui/data-editor.c:356 msgid "System Files (*.sav)" msgstr "" -#: src/ui/gui/data-editor.c:315 +#: src/ui/gui/data-editor.c:362 msgid "Portable Files (*.por) " msgstr "" -#: src/ui/gui/data-editor.c:321 src/ui/gui/syntax-editor.c:127 -#: src/ui/gui/syntax-editor.c:510 +#: src/ui/gui/data-editor.c:368 src/ui/gui/syntax-editor.c:140 +#: src/ui/gui/syntax-editor.c:529 msgid "All Files" msgstr "" -#: src/ui/gui/data-editor.c:399 +#: src/ui/gui/data-editor.c:446 msgid "Font Selection" msgstr "" @@ -4128,16 +4128,16 @@ msgid "_Syntax" msgstr "" #: src/ui/gui/data-editor.glade:64 src/ui/gui/data-editor.glade:93 -#: src/ui/gui/data-editor.glade:315 src/ui/gui/syntax-editor.glade:65 +#: src/ui/gui/data-editor.glade:314 src/ui/gui/syntax-editor.glade:65 #: src/ui/gui/syntax-editor.glade:95 msgid "_Data" msgstr "" -#: src/ui/gui/data-editor.glade:145 src/ui/gui/syntax-editor.glade:142 +#: src/ui/gui/data-editor.glade:144 src/ui/gui/syntax-editor.glade:142 msgid "_Edit" msgstr "" -#: src/ui/gui/data-editor.glade:182 +#: src/ui/gui/data-editor.glade:181 msgid "Paste _Variables" msgstr "" @@ -4145,117 +4145,121 @@ msgstr "" msgid "Cl_ear" msgstr "" -#: src/ui/gui/data-editor.glade:207 +#: src/ui/gui/data-editor.glade:206 msgid "_Find" msgstr "" -#: src/ui/gui/data-editor.glade:231 +#: src/ui/gui/data-editor.glade:230 msgid "_View" msgstr "" -#: src/ui/gui/data-editor.glade:240 +#: src/ui/gui/data-editor.glade:239 msgid "Status Bar" msgstr "" -#: src/ui/gui/data-editor.glade:248 +#: src/ui/gui/data-editor.glade:247 msgid "Toolbars" msgstr "" -#: src/ui/gui/data-editor.glade:262 +#: src/ui/gui/data-editor.glade:261 msgid "Fonts" msgstr "" -#: src/ui/gui/data-editor.glade:270 +#: src/ui/gui/data-editor.glade:269 msgid "Grid Lines" msgstr "" -#: src/ui/gui/data-editor.glade:279 src/ui/gui/data-editor.glade:797 +#: src/ui/gui/data-editor.glade:278 src/ui/gui/data-editor.glade:798 #: src/ui/gui/data-editor.glade:1648 src/ui/gui/data-editor.glade:1925 msgid "Value Labels" msgstr "" -#: src/ui/gui/data-editor.glade:294 +#: src/ui/gui/data-editor.glade:293 msgid "Data" msgstr "" -#: src/ui/gui/data-editor.glade:302 src/ui/gui/data-editor.glade:621 +#: src/ui/gui/data-editor.glade:301 src/ui/gui/data-editor.glade:628 msgid "Variables" msgstr "" -#: src/ui/gui/data-editor.glade:325 src/ui/gui/data-editor.glade:700 +#: src/ui/gui/data-editor.glade:324 src/ui/gui/data-editor.glade:705 msgid "Insert Variable" msgstr "" -#: src/ui/gui/data-editor.glade:334 +#: src/ui/gui/data-editor.glade:333 msgid "Insert Cases" msgstr "" -#: src/ui/gui/data-editor.glade:343 src/ui/gui/data-editor.glade:604 +#: src/ui/gui/data-editor.glade:342 src/ui/gui/data-editor.glade:611 #: src/ui/gui/data-editor.glade:2490 msgid "Go To Case" msgstr "" -#: src/ui/gui/data-editor.glade:370 src/ui/gui/data-editor.glade:2601 +#: src/ui/gui/data-editor.glade:369 src/ui/gui/data-editor.glade:2601 msgid "Sort Cases" msgstr "" -#: src/ui/gui/data-editor.glade:380 +#: src/ui/gui/data-editor.glade:379 msgid "Transpose" msgstr "" -#: src/ui/gui/data-editor.glade:389 +#: src/ui/gui/data-editor.glade:388 msgid "Restructure" msgstr "" -#: src/ui/gui/data-editor.glade:398 +#: src/ui/gui/data-editor.glade:397 msgid "Merge Files" msgstr "" -#: src/ui/gui/data-editor.glade:407 +#: src/ui/gui/data-editor.glade:406 msgid "Aggregate" msgstr "" -#: src/ui/gui/data-editor.glade:422 src/ui/gui/data-editor.glade:731 +#: src/ui/gui/data-editor.glade:421 src/ui/gui/data-editor.glade:735 msgid "Split File" msgstr "" -#: src/ui/gui/data-editor.glade:431 src/ui/gui/data-editor.glade:767 +#: src/ui/gui/data-editor.glade:430 src/ui/gui/data-editor.glade:769 msgid "Select Cases" msgstr "" -#: src/ui/gui/data-editor.glade:440 src/ui/gui/data-editor.glade:749 +#: src/ui/gui/data-editor.glade:439 src/ui/gui/data-editor.glade:752 msgid "Weight Cases" msgstr "" -#: src/ui/gui/data-editor.glade:452 src/ui/gui/syntax-editor.glade:232 +#: src/ui/gui/data-editor.glade:451 src/ui/gui/syntax-editor.glade:232 msgid "_Help" msgstr "" -#: src/ui/gui/data-editor.glade:461 src/ui/gui/syntax-editor.glade:241 +#: src/ui/gui/data-editor.glade:460 +msgid "_Reference Manual" +msgstr "" + +#: src/ui/gui/data-editor.glade:468 src/ui/gui/syntax-editor.glade:241 msgid "_About" msgstr "" -#: src/ui/gui/data-editor.glade:513 +#: src/ui/gui/data-editor.glade:520 msgid "Save" msgstr "" -#: src/ui/gui/data-editor.glade:530 +#: src/ui/gui/data-editor.glade:537 msgid "Print" msgstr "" -#: src/ui/gui/data-editor.glade:559 +#: src/ui/gui/data-editor.glade:566 msgid "Undo" msgstr "" -#: src/ui/gui/data-editor.glade:575 +#: src/ui/gui/data-editor.glade:582 msgid "Redo" msgstr "" -#: src/ui/gui/data-editor.glade:652 +#: src/ui/gui/data-editor.glade:658 msgid "Find" msgstr "" -#: src/ui/gui/data-editor.glade:681 +#: src/ui/gui/data-editor.glade:687 msgid "Insert Case" msgstr "" @@ -4375,21 +4379,35 @@ msgstr "" msgid "Sort by:" msgstr "" -#: src/ui/gui/message-dialog.c:122 +#: src/ui/gui/helper.c:100 +msgid "Sorry. The help system hasn't yet been implemented." +msgstr "" + +#: src/ui/gui/message-dialog.c:123 msgid "Script Error" msgstr "" -#: src/ui/gui/message-dialog.c:126 +#: src/ui/gui/message-dialog.c:127 msgid "Data File Error" msgstr "" -#: src/ui/gui/message-dialog.c:131 +#: src/ui/gui/message-dialog.c:132 msgid "PSPP Error" msgstr "" -#: src/ui/gui/message-dialog.c:142 +#: src/ui/gui/message-dialog.c:143 +#, c-format +msgid "%s (line %d)" +msgstr "" + +#: src/ui/gui/message-dialog.c:149 #, c-format -msgid "%s (line %d) %s" +msgid "%s" +msgstr "" + +#: src/ui/gui/message-dialog.c:153 +#, c-format +msgid "%s %s" msgstr "" #: src/ui/gui/missing-val-dialog.c:117 src/ui/gui/missing-val-dialog.c:162 @@ -4400,10 +4418,6 @@ msgstr "" msgid "Incorrect range specification" msgstr "" -#: src/ui/gui/psppire.c:71 -msgid "Sorry. The help system hasn't yet been implemented." -msgstr "" - #: src/ui/gui/psppire-data-store.c:721 msgid "var" msgstr "" @@ -4457,24 +4471,20 @@ msgstr "" msgid "Criteria" msgstr "" -#: src/ui/gui/syntax-editor.c:64 +#: src/ui/gui/syntax-editor.c:79 #, c-format msgid "Save contents of syntax editor to %s?" msgstr "" -#: src/ui/gui/syntax-editor.c:65 src/ui/gui/syntax-editor.c:87 -msgid "Untitled" -msgstr "" - -#: src/ui/gui/syntax-editor.c:113 +#: src/ui/gui/syntax-editor.c:126 msgid "Save Syntax" msgstr "" -#: src/ui/gui/syntax-editor.c:121 src/ui/gui/syntax-editor.c:504 +#: src/ui/gui/syntax-editor.c:134 src/ui/gui/syntax-editor.c:523 msgid "Syntax Files (*.sps) " msgstr "" -#: src/ui/gui/syntax-editor.c:496 +#: src/ui/gui/syntax-editor.c:515 msgid "Open Syntax" msgstr "" diff --git a/src/ui/gui/data-editor.c b/src/ui/gui/data-editor.c index df13affa..5c2eaf4f 100644 --- a/src/ui/gui/data-editor.c +++ b/src/ui/gui/data-editor.c @@ -152,6 +152,13 @@ new_data_editor (void) e->window); + g_signal_connect (get_widget_assert (de->xml,"help_reference"), + "activate", + G_CALLBACK (reference_manual), + e->window); + + + g_signal_connect (get_widget_assert (de->xml,"data_sheet"), "double-click-column", G_CALLBACK (click2column), diff --git a/src/ui/gui/data-editor.glade b/src/ui/gui/data-editor.glade index 037cee9c..08555556 100644 --- a/src/ui/gui/data-editor.glade +++ b/src/ui/gui/data-editor.glade @@ -141,12 +141,11 @@ True - True _Edit True - + @@ -208,7 +207,7 @@ True - + True gtk-find 1 @@ -345,7 +344,7 @@ - + True gtk-jump-to 1 @@ -455,6 +454,14 @@ + + + True + _Reference Manual + True + + + True diff --git a/src/ui/gui/helper.c b/src/ui/gui/helper.c index 75b88f1d..7deb4cbb 100644 --- a/src/ui/gui/helper.c +++ b/src/ui/gui/helper.c @@ -1,6 +1,8 @@ #include +#include #include "helper.h" +#include "message-dialog.h" #include #include #include @@ -11,6 +13,9 @@ #include #include + +#include + /* Formats a value according to FORMAT The returned string must be freed when no longer required */ gchar * @@ -113,3 +118,14 @@ connect_help (GladeXML *xml) } + +void +reference_manual (GtkMenuItem *menu, gpointer data) +{ + GError *err = NULL; + if ( ! g_spawn_command_line_async ("yelp info:pspp", &err) ) + { + msg (ME, _("Cannot open reference manual: %s"), err->message); + } + g_clear_error (&err); +} diff --git a/src/ui/gui/helper.h b/src/ui/gui/helper.h index 6ca188fc..7bf84d47 100644 --- a/src/ui/gui/helper.h +++ b/src/ui/gui/helper.h @@ -41,6 +41,9 @@ GtkWidget * get_widget_assert (GladeXML *xml, const gchar *name); char * pspp_locale_to_utf8 (const gchar *text, gssize len, GError **err); -void connect_help (GladeXML *xml); +void connect_help (GladeXML *); + +void reference_manual (GtkMenuItem *, gpointer); + #endif diff --git a/src/ui/gui/message-dialog.c b/src/ui/gui/message-dialog.c index 297634af..ffdd491e 100644 --- a/src/ui/gui/message-dialog.c +++ b/src/ui/gui/message-dialog.c @@ -153,7 +153,7 @@ popup_message (const struct msg *m) _("%s %s"), location, m->text); - free (location); + g_free (location); gtk_window_set_keep_above (GTK_WINDOW (dialog), TRUE); diff --git a/src/ui/gui/syntax-editor.c b/src/ui/gui/syntax-editor.c index 3341e5c0..95148d2c 100644 --- a/src/ui/gui/syntax-editor.c +++ b/src/ui/gui/syntax-editor.c @@ -362,6 +362,11 @@ new_syntax_editor (void) G_CALLBACK (about_new), e->window); + g_signal_connect (get_widget_assert (xml,"help_reference"), + "activate", + G_CALLBACK (reference_manual), + NULL); + g_signal_connect (get_widget_assert (xml, "file_save"), "activate", diff --git a/src/ui/gui/syntax-editor.glade b/src/ui/gui/syntax-editor.glade index e7d32ebf..f5473006 100644 --- a/src/ui/gui/syntax-editor.glade +++ b/src/ui/gui/syntax-editor.glade @@ -235,6 +235,14 @@ + + + True + _Reference Manual + True + + + True -- 2.30.2