35fa61390a
Release Notes ------------- Fixed a bug that caused a crash whenever a string was added to the selection. Added new select and copy functions to the Viewer's menu. Improved the Editor's copy/paste ownership widget behavior. Fixed a GtkSelection bug in which redundant GtkSignals were being connected. Added pointer roller scroll support. Fixed a bug in the mapping of popup menus.
387 lines
15 KiB
Text
387 lines
15 KiB
Text
$NetBSD: patch-ae,v 1.4 2007/10/14 07:49:54 rillig Exp $
|
|
|
|
--- editorcb.c.orig 2007-02-11 09:00:00.000000000 +0100
|
|
+++ editorcb.c 2007-10-14 09:30:48.000000000 +0200
|
|
@@ -793,8 +793,8 @@ void EditorManualOpenCB(GtkWidget *widge
|
|
CDialogSetTransientFor(toplevel);
|
|
CDialogGetResponse(
|
|
"Manual Page Read-Only",
|
|
-"This manual page is set read-only,\n\
|
|
-you will not be able to save it.",
|
|
+"This manual page is set read-only,\n"
|
|
+"you will not be able to save it.",
|
|
NULL,
|
|
CDIALOG_ICON_WARNING,
|
|
CDIALOG_BTNFLAG_OK,
|
|
@@ -922,12 +922,12 @@ void EditorManualNewFromTemplateCB(GtkWi
|
|
CDialogGetResponse(
|
|
"Unable To Find Directory",
|
|
msg,
|
|
-"The specified Manual Page templates directory\n\
|
|
-could not be found. This directory contains all\n\
|
|
-Manual Page template files for this program.\n\
|
|
-Verify that the specified paths for this program\n\
|
|
-are defined properly in the preferences, go to\n\
|
|
-edit->preferences->locations.",
|
|
+"The specified Manual Page templates directory\n"
|
|
+"could not be found. This directory contains all\n"
|
|
+"Manual Page template files for this program.\n"
|
|
+"Verify that the specified paths for this program\n"
|
|
+"are defined properly in the preferences, go to\n"
|
|
+"edit->preferences->locations.",
|
|
CDIALOG_ICON_WARNING,
|
|
CDIALOG_BTNFLAG_OK | CDIALOG_BTNFLAG_HELP,
|
|
CDIALOG_BTNFLAG_OK
|
|
@@ -1074,8 +1074,8 @@ void EditorManualSaveCB(GtkWidget *widge
|
|
CDialogSetTransientFor(toplevel);
|
|
CDialogGetResponse(
|
|
"Non-Critical Internal Error!",
|
|
-"Unable to find the toplevel trunk branch for the\n\
|
|
-selected branch.",
|
|
+"Unable to find the toplevel trunk branch for the\n"
|
|
+"selected branch.",
|
|
NULL,
|
|
CDIALOG_ICON_ERROR,
|
|
CDIALOG_BTNFLAG_OK,
|
|
@@ -1129,9 +1129,9 @@ selected branch.",
|
|
CDialogGetResponse(
|
|
"Save Manual Page Failed",
|
|
msg,
|
|
-"The specified manual page file could not be written\n\
|
|
-to, please verify that the specified path exists and has\n\
|
|
-write permissions set.",
|
|
+"The specified manual page file could not be written\n"
|
|
+"to, please verify that the specified path exists and has\n"
|
|
+"write permissions set.",
|
|
CDIALOG_ICON_ERROR,
|
|
CDIALOG_BTNFLAG_OK | CDIALOG_BTNFLAG_HELP,
|
|
CDIALOG_BTNFLAG_OK
|
|
@@ -1230,8 +1230,8 @@ void EditorManualSaveAsCB(GtkWidget *wid
|
|
CDialogSetTransientFor(toplevel);
|
|
CDialogGetResponse(
|
|
"Non-Critical Internal Error!",
|
|
-"Could not find the toplevel trunk branch for the\n\
|
|
-selected branch.",
|
|
+"Could not find the toplevel trunk branch for the\n"
|
|
+"selected branch.",
|
|
NULL,
|
|
CDIALOG_ICON_ERROR,
|
|
CDIALOG_BTNFLAG_OK,
|
|
@@ -1309,9 +1309,9 @@ selected branch.",
|
|
CDialogGetResponse(
|
|
"Save Manual Page Failed",
|
|
msg,
|
|
-"The specified manual page file could not be written\n\
|
|
-to, please verify that the given path exists and has\n\
|
|
-write permissions set.",
|
|
+"The specified manual page file could not be written\n"
|
|
+"to, please verify that the given path exists and has\n"
|
|
+"write permissions set.",
|
|
CDIALOG_ICON_ERROR,
|
|
CDIALOG_BTNFLAG_OK | CDIALOG_BTNFLAG_HELP,
|
|
CDIALOG_BTNFLAG_OK
|
|
@@ -1414,8 +1414,8 @@ void EditorManualRevertCB(GtkWidget *wid
|
|
CDialogSetTransientFor(toplevel);
|
|
CDialogGetResponse(
|
|
"Non-Critical Internal Error!",
|
|
-"Could not find the item data for the selected\n\
|
|
-Manual Page.",
|
|
+"Could not find the item data for the selected\n"
|
|
+"Manual Page.",
|
|
NULL,
|
|
CDIALOG_ICON_ERROR,
|
|
CDIALOG_BTNFLAG_OK,
|
|
@@ -1434,9 +1434,9 @@ Manual Page.",
|
|
CDialogSetTransientFor(toplevel);
|
|
CDialogGetResponse(
|
|
"No file data to revert to!",
|
|
-"The selected Manual Page has no associated file,\n\
|
|
-which implies that it has never been saved before.\n\
|
|
-There is no file data to revert to.",
|
|
+"The selected Manual Page has no associated file,\n"
|
|
+"which implies that it has never been saved before.\n"
|
|
+"There is no file data to revert to.",
|
|
NULL,
|
|
CDIALOG_ICON_WARNING,
|
|
CDIALOG_BTNFLAG_OK,
|
|
@@ -1530,9 +1530,9 @@ There is no file data to revert to.",
|
|
CDialogSetTransientFor(toplevel);
|
|
CDialogGetResponse(
|
|
"Revert Failed",
|
|
-"The orignal file containing the manual page data\n\
|
|
-could not be found. It may have been moved or deleted,\n\
|
|
-try opening it manually by going to File->Open.",
|
|
+"The orignal file containing the manual page data\n"
|
|
+"could not be found. It may have been moved or deleted,\n"
|
|
+"try opening it manually by going to File->Open.",
|
|
NULL,
|
|
CDIALOG_ICON_ERROR,
|
|
CDIALOG_BTNFLAG_OK,
|
|
@@ -1545,8 +1545,8 @@ try opening it manually by going to File
|
|
CDialogSetTransientFor(toplevel);
|
|
CDialogGetResponse(
|
|
"Revert Failed",
|
|
-"An error occured while reloading the selected manual\n\
|
|
-page. Try reloading manual by going to File->Open.",
|
|
+"An error occured while reloading the selected manual\n"
|
|
+"page. Try reloading manual by going to File->Open.",
|
|
NULL,
|
|
CDIALOG_ICON_ERROR,
|
|
CDIALOG_BTNFLAG_OK,
|
|
@@ -1815,15 +1815,15 @@ void EditorManualAddHeaderCB(GtkWidget *
|
|
CDialogSetTransientFor(toplevel);
|
|
CDialogGetResponse(
|
|
"Add Header Failed",
|
|
-"You need to select the insert position of\n\
|
|
-where you want to add the new header. This\n\
|
|
-can be a manual page reference or an existing\n\
|
|
-header or section to add under.",
|
|
-"You have requested to add a new header but\n\
|
|
-you have not specified a manual page or\n\
|
|
-header or section to add it under. You must\n\
|
|
-selected a manual page or an existing header\n\
|
|
-or section to add the new header under.",
|
|
+"You need to select the insert position of\n"
|
|
+"where you want to add the new header. This\n"
|
|
+"can be a manual page reference or an existing\n"
|
|
+"header or section to add under.",
|
|
+"You have requested to add a new header but\n"
|
|
+"you have not specified a manual page or\n"
|
|
+"header or section to add it under. You must\n"
|
|
+"selected a manual page or an existing header\n"
|
|
+"or section to add the new header under.",
|
|
CDIALOG_ICON_WARNING,
|
|
CDIALOG_BTNFLAG_OK | CDIALOG_BTNFLAG_HELP,
|
|
CDIALOG_BTNFLAG_OK
|
|
@@ -1835,11 +1835,11 @@ or section to add the new header under."
|
|
CDialogSetTransientFor(toplevel);
|
|
CDialogGetResponse(
|
|
"Add Header Failed",
|
|
-"There are no manual pages opened to add\n\
|
|
-a new header to.",
|
|
-"You must either create a new manual page or\n\
|
|
-open an existing manual page to add a new header\n\
|
|
-to.",
|
|
+"There are no manual pages opened to add\n"
|
|
+"a new header to.",
|
|
+"You must either create a new manual page or\n"
|
|
+"open an existing manual page to add a new header\n"
|
|
+"to.",
|
|
CDIALOG_ICON_WARNING,
|
|
CDIALOG_BTNFLAG_OK | CDIALOG_BTNFLAG_HELP,
|
|
CDIALOG_BTNFLAG_OK
|
|
@@ -1857,14 +1857,14 @@ to.",
|
|
CDialogSetTransientFor(toplevel);
|
|
CDialogGetResponse(
|
|
"Add Header Failed",
|
|
-"Could not find the parent trunk for the selected\n\
|
|
-layout branch.",
|
|
-"An internal error has occured in which the parent\n\
|
|
-trunk for the currently selected branch could not\n\
|
|
-be found. There may be some inconsistancy in the\n\
|
|
-loaded data. You should save this manual page to\n\
|
|
-a new file (use `save as') and close this application\n\
|
|
-to prevent and further data loss.\n",
|
|
+"Could not find the parent trunk for the selected\n"
|
|
+"layout branch.",
|
|
+"An internal error has occured in which the parent\n"
|
|
+"trunk for the currently selected branch could not\n"
|
|
+"be found. There may be some inconsistancy in the\n"
|
|
+"loaded data. You should save this manual page to\n"
|
|
+"a new file (use `save as') and close this application\n"
|
|
+"to prevent and further data loss.\n",
|
|
CDIALOG_ICON_ERROR,
|
|
CDIALOG_BTNFLAG_OK | CDIALOG_BTNFLAG_HELP,
|
|
CDIALOG_BTNFLAG_OK
|
|
@@ -2065,15 +2065,15 @@ void EditorManualAddSectionCB(GtkWidget
|
|
CDialogSetTransientFor(toplevel);
|
|
CDialogGetResponse(
|
|
"Add Section Failed",
|
|
-"You need to select the insert position of\n\
|
|
-where you want to add the new section. This\n\
|
|
-can be a manual page reference or an existing\n\
|
|
-header or section to add under.",
|
|
-"You have requested to add a new section but\n\
|
|
-you have not specified a manual page or\n\
|
|
-header or section to add it under. You must\n\
|
|
-selected a manual page or an existing header\n\
|
|
-or section to add the new section under.",
|
|
+"You need to select the insert position of\n"
|
|
+"where you want to add the new section. This\n"
|
|
+"can be a manual page reference or an existing\n"
|
|
+"header or section to add under.",
|
|
+"You have requested to add a new section but\n"
|
|
+"you have not specified a manual page or\n"
|
|
+"header or section to add it under. You must\n"
|
|
+"selected a manual page or an existing header\n"
|
|
+"or section to add the new section under.",
|
|
CDIALOG_ICON_WARNING,
|
|
CDIALOG_BTNFLAG_OK | CDIALOG_BTNFLAG_HELP,
|
|
CDIALOG_BTNFLAG_OK
|
|
@@ -2085,11 +2085,11 @@ or section to add the new section under.
|
|
CDialogSetTransientFor(toplevel);
|
|
CDialogGetResponse(
|
|
"Add Section Failed",
|
|
-"There are no manual pages opened to add\n\
|
|
-a new section to.",
|
|
-"You must either create a new manual page or\n\
|
|
-open an existing manual page to add a new section\n\
|
|
-to.",
|
|
+"There are no manual pages opened to add\n"
|
|
+"a new section to.",
|
|
+"You must either create a new manual page or\n"
|
|
+"open an existing manual page to add a new section\n"
|
|
+"to.",
|
|
CDIALOG_ICON_WARNING,
|
|
CDIALOG_BTNFLAG_OK | CDIALOG_BTNFLAG_HELP,
|
|
CDIALOG_BTNFLAG_OK
|
|
@@ -2107,14 +2107,14 @@ to.",
|
|
CDialogSetTransientFor(toplevel);
|
|
CDialogGetResponse(
|
|
"Add Section Failed",
|
|
-"Unable to find the parent trunk for the selected\n\
|
|
-layout branch.",
|
|
-"An internal error has occured in which the parent\n\
|
|
-trunk for the currently selected branch could not\n\
|
|
-be found. There may be some inconsistancy in the\n\
|
|
-loaded data. You should save this manual page to\n\
|
|
-a new file (use `save as') and close this application\n\
|
|
-to prevent and further data loss.\n",
|
|
+"Unable to find the parent trunk for the selected\n"
|
|
+"layout branch.",
|
|
+"An internal error has occured in which the parent\n"
|
|
+"trunk for the currently selected branch could not\n"
|
|
+"be found. There may be some inconsistancy in the\n"
|
|
+"loaded data. You should save this manual page to\n"
|
|
+"a new file (use `save as') and close this application\n"
|
|
+"to prevent and further data loss.\n",
|
|
CDIALOG_ICON_ERROR,
|
|
CDIALOG_BTNFLAG_OK | CDIALOG_BTNFLAG_HELP,
|
|
CDIALOG_BTNFLAG_OK
|
|
@@ -2327,8 +2327,8 @@ void EditorManualRemoveSectionCB(GtkWidg
|
|
CDialogSetTransientFor(toplevel);
|
|
status = CDialogGetResponse(
|
|
"Confirm Remove Header",
|
|
-"Are you sure you want to remove the header\n\
|
|
-from the manual page?",
|
|
+"Are you sure you want to remove the header\n"
|
|
+"from the manual page?",
|
|
NULL,
|
|
CDIALOG_ICON_WARNING,
|
|
CDIALOG_BTNFLAG_YES | CDIALOG_BTNFLAG_YES_TO_ALL |
|
|
@@ -2567,17 +2567,17 @@ void EditorManualSyntaxHighlightToggleCB
|
|
CDialogSetTransientFor(toplevel);
|
|
CDialogGetResponse(
|
|
"Subsystems Warning",
|
|
-"Enabling syntax highlighting may cause crashes!\n\
|
|
-\n\
|
|
-Click on `help' for explaination!",
|
|
-"This program makes use of the GTK+ GtkText widget\n\
|
|
-it has known bugs which cause applications to crash\n\
|
|
-under certain circumstances such as syntax highlighting.\n\
|
|
-You are advised not to use syntax highlighting, however\n\
|
|
-if you do and a crash does occure then this program will\n\
|
|
-try its best (no gaurantees) to emergency save any opened\n\
|
|
-documents into the program's tempory directory before\n\
|
|
-exiting.",
|
|
+"Enabling syntax highlighting may cause crashes!\n"
|
|
+"\n"
|
|
+"Click on `help' for explaination!",
|
|
+"This program makes use of the GTK+ GtkText widget\n"
|
|
+"it has known bugs which cause applications to crash\n"
|
|
+"under certain circumstances such as syntax highlighting.\n"
|
|
+"You are advised not to use syntax highlighting, however\n"
|
|
+"if you do and a crash does occure then this program will\n"
|
|
+"try its best (no gaurantees) to emergency save any opened\n"
|
|
+"documents into the program's tempory directory before\n"
|
|
+"exiting.",
|
|
CDIALOG_ICON_WARNING,
|
|
CDIALOG_BTNFLAG_OK | CDIALOG_BTNFLAG_HELP,
|
|
CDIALOG_BTNFLAG_OK
|
|
@@ -2660,8 +2660,8 @@ void EditorUndoCB(GtkWidget *widget, gpo
|
|
CDialogGetResponse(
|
|
"Undo Failed",
|
|
"The undo process could not be performed.",
|
|
-"Circumstances or an error prevented the undo\n\
|
|
-operation from being performed.",
|
|
+"Circumstances or an error prevented the undo\n"
|
|
+"operation from being performed.",
|
|
CDIALOG_ICON_ERROR,
|
|
CDIALOG_BTNFLAG_OK | CDIALOG_BTNFLAG_HELP,
|
|
CDIALOG_BTNFLAG_OK
|
|
@@ -2720,8 +2720,8 @@ void EditorRedoCB(GtkWidget *widget, gpo
|
|
CDialogGetResponse(
|
|
"Redo Failed",
|
|
"The redo process could not be performed.",
|
|
-"Circumstances or an error prevented the redo\n\
|
|
-operation from being performed.",
|
|
+"Circumstances or an error prevented the redo\n"
|
|
+"operation from being performed.",
|
|
CDIALOG_ICON_ERROR,
|
|
CDIALOG_BTNFLAG_OK | CDIALOG_BTNFLAG_HELP,
|
|
CDIALOG_BTNFLAG_OK
|
|
@@ -3465,12 +3465,12 @@ void EditorStripTagsCB(GtkWidget *widget
|
|
CDialogGetResponse(
|
|
"No Text Selected",
|
|
"No text selected to strip tags from.",
|
|
-"You have not selected any text in which to strip\n\
|
|
-tags from. If you wish to strip tags from the\n\
|
|
-entire section then you must first go to\n\
|
|
-edit->select all and then strip tags otherwise\n\
|
|
-use the pointer to select the section of text you\n\
|
|
-want to strip tags from and then strip tags.",
|
|
+"You have not selected any text in which to strip\n"
|
|
+"tags from. If you wish to strip tags from the\n"
|
|
+"entire section then you must first go to\n"
|
|
+"edit->select all and then strip tags otherwise\n"
|
|
+"use the pointer to select the section of text you\n"
|
|
+"want to strip tags from and then strip tags.",
|
|
CDIALOG_ICON_WARNING,
|
|
CDIALOG_BTNFLAG_OK | CDIALOG_BTNFLAG_HELP,
|
|
CDIALOG_BTNFLAG_OK
|
|
@@ -3668,8 +3668,8 @@ void EditorFindBarReplaceAllCB(GtkWidget
|
|
CDialogGetResponse(
|
|
"No Item Selected",
|
|
"No item selected to search and replace through.",
|
|
-"You have not selected an item with text\n\
|
|
-to search and replace through.",
|
|
+"You have not selected an item with text\n"
|
|
+"to search and replace through.",
|
|
CDIALOG_ICON_WARNING,
|
|
CDIALOG_BTNFLAG_OK | CDIALOG_BTNFLAG_HELP,
|
|
CDIALOG_BTNFLAG_OK
|
|
@@ -3842,9 +3842,9 @@ void EditorFindBarReplaceEntirePageCB(Gt
|
|
CDialogSetTransientFor(toplevel);
|
|
status = CDialogGetResponse(
|
|
"Confirm Replace Entire Page",
|
|
-"You will not be able to undo this operation,\n\
|
|
-are you sure you want to find and replace the\n\
|
|
-entire selected Manual Page?",
|
|
+"You will not be able to undo this operation,\n"
|
|
+"are you sure you want to find and replace the\n"
|
|
+"entire selected Manual Page?",
|
|
NULL,
|
|
CDIALOG_ICON_WARNING,
|
|
CDIALOG_BTNFLAG_YES | CDIALOG_BTNFLAG_CANCEL,
|
|
@@ -3875,8 +3875,8 @@ entire selected Manual Page?",
|
|
CDialogGetResponse(
|
|
"No Manual Page Selected",
|
|
"No manual page selected to search and replace through.",
|
|
-"You have not selected a manual page to search and\n\
|
|
-replace through.",
|
|
+"You have not selected a manual page to search and\n"
|
|
+"replace through.",
|
|
CDIALOG_ICON_WARNING,
|
|
CDIALOG_BTNFLAG_OK | CDIALOG_BTNFLAG_HELP,
|
|
CDIALOG_BTNFLAG_OK
|
|
@@ -4132,8 +4132,8 @@ static void EditorDoFindCB(
|
|
CDialogGetResponse(
|
|
"No Item Selected",
|
|
"No item selected to search through.",
|
|
-"You have not selected an item with text\n\
|
|
-to search through.",
|
|
+"You have not selected an item with text\n"
|
|
+"to search through.",
|
|
CDIALOG_ICON_WARNING,
|
|
CDIALOG_BTNFLAG_OK | CDIALOG_BTNFLAG_HELP,
|
|
CDIALOG_BTNFLAG_OK
|