Commit 04187503 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer
Browse files

added help IDs for the libgimp export and unit dialogs.

2004-01-20  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimphelp-ids.h: added help IDs for the libgimp
	export and unit dialogs.

	* libgimp/gimpexport.c
	* libgimpwidgets/gimpunitmenu.c: replaced html links by the new
	help IDs.

	* plug-ins/*/*.c: replaced all html help links by help IDs. A
	plug-in's help ID is its procedure name with '_' relaced by '-'.

	(e.g. file_tiff_save's help ID is file-tiff-save)

	Did some random indentation and whitespace cleanup.
parent fa4c87d9
2004-01-20 Michael Natterer <mitch@gimp.org>
* app/widgets/gimphelp-ids.h: added help IDs for the libgimp
export and unit dialogs.
* libgimp/gimpexport.c
* libgimpwidgets/gimpunitmenu.c: replaced html links by the new
help IDs.
* plug-ins/*/*.c: replaced all html help links by help IDs. A
plug-in's help ID is its procedure name with '_' relaced by '-'.
(e.g. file_tiff_save's help ID is file-tiff-save)
Did some random indentation and whitespace cleanup.
2004-01-20 Sven Neumann <sven@gimp.org>
 
* tools/gimp-remote.c: when starting a new gimp, pass it the
......@@ -406,6 +406,10 @@
#define GIMP_HELP_TIPS_DIALOG "gimp-tips-dialog"
#define GIMP_HELP_UNDO_DIALOG "gimp-undo-dialog"
#define GIMP_HELP_EXPORT_DIALOG "gimp-export-dialog"
#define GIMP_HELP_EXPORT_CONFIRM_DIALOG "gimp-export-confirm-dialog"
#define GIMP_HELP_UNIT_DIALOG "gimp-unit-dialog"
#define GIMP_HELP_HELP "gimp-help"
#define GIMP_HELP_HELP_CONTEXT "gimp-help-context"
......
......@@ -381,7 +381,8 @@ confirm_save_dialog (const gchar *message,
dialog = gimp_dialog_new (_("Confirm Save"), "gimp-export-image-confirm",
NULL, 0,
gimp_standard_help_func, "dialogs/confirm_save.html",
gimp_standard_help_func,
"gimp-export-confirm-dialog",
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
_("Confirm"), GTK_RESPONSE_OK,
......@@ -455,7 +456,7 @@ export_dialog (GSList *actions,
dialog = gimp_dialog_new (_("Export File"), "gimp-export-image",
NULL, 0,
gimp_standard_help_func, "dialogs/export_file.html",
gimp_standard_help_func, "gimp-export-dialog",
_("_Ignore"), GTK_RESPONSE_NO,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
......
......@@ -117,7 +117,7 @@ gimp_db_browser (GimpDBBrowserApplyCallback apply_callback)
dbbrowser->dialog =
gimp_dialog_new (_("DB Browser"), "dbbrowser",
NULL, 0,
gimp_standard_help_func, "filters/dbbrowser.html",
gimp_standard_help_func, "plug-in-db-browser",
_("Search by _Name"), RESPONSE_SEARCH_NAME,
_("Search by _Blurb"), RESPONSE_SEARCH_BLURB,
......@@ -131,7 +131,7 @@ gimp_db_browser (GimpDBBrowserApplyCallback apply_callback)
dbbrowser->dialog =
gimp_dialog_new (_("DB Browser"), "dbbrowser",
NULL, 0,
gimp_standard_help_func, "filters/dbbrowser.html",
gimp_standard_help_func, "plug-in-db-browser",
_("Search by _Name"), RESPONSE_SEARCH_NAME,
_("Search by _Blurb"), RESPONSE_SEARCH_BLURB,
......
......@@ -117,7 +117,7 @@ gimp_db_browser (GimpDBBrowserApplyCallback apply_callback)
dbbrowser->dialog =
gimp_dialog_new (_("DB Browser"), "dbbrowser",
NULL, 0,
gimp_standard_help_func, "filters/dbbrowser.html",
gimp_standard_help_func, "plug-in-db-browser",
_("Search by _Name"), RESPONSE_SEARCH_NAME,
_("Search by _Blurb"), RESPONSE_SEARCH_BLURB,
......@@ -131,7 +131,7 @@ gimp_db_browser (GimpDBBrowserApplyCallback apply_callback)
dbbrowser->dialog =
gimp_dialog_new (_("DB Browser"), "dbbrowser",
NULL, 0,
gimp_standard_help_func, "filters/dbbrowser.html",
gimp_standard_help_func, "plug-in-db-browser",
_("Search by _Name"), RESPONSE_SEARCH_NAME,
_("Search by _Blurb"), RESPONSE_SEARCH_BLURB,
......
......@@ -614,8 +614,7 @@ gimp_unit_menu_create_selection (GimpUnitMenu *menu)
menu->selection = gimp_dialog_new (_("Unit Selection"), "gimp-unit-selection",
GTK_WIDGET (menu),
GTK_DIALOG_DESTROY_WITH_PARENT,
gimp_standard_help_func,
"dialogs/unit_selection.html",
gimp_standard_help_func, "gimp-unit-dialog",
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_OK, GTK_RESPONSE_OK,
......
......@@ -548,7 +548,7 @@ explorer_dialog (void)
dialog = maindlg =
gimp_dialog_new ("Fractal Explorer", "fractalexplorer",
NULL, 0,
gimp_standard_help_func, "filters/fractalexplorer.html",
gimp_standard_help_func, HELP_ID,
_("About"), RESPONSE_ABOUT,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
......@@ -1636,7 +1636,7 @@ explorer_logo_dialog (GtkWidget *parent)
xdlg = logodlg =
gimp_dialog_new (_("About"), "fractalexplorer",
parent, 0,
gimp_standard_help_func, "filters/fractalexplorer.html",
gimp_standard_help_func, HELP_ID,
GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE,
......
......@@ -766,8 +766,7 @@ delete_fractal_callback (GtkWidget *widget,
delete_dialog = gimp_query_boolean_box (_("Delete Fractal"),
gtk_widget_get_toplevel (list),
gimp_standard_help_func,
"filters/fractalexplorer.html",
gimp_standard_help_func, HELP_ID,
GTK_STOCK_DIALOG_QUESTION,
str,
GTK_STOCK_DELETE, GTK_STOCK_CANCEL,
......@@ -1345,7 +1344,7 @@ fractalexplorer_rescan_list (void)
dlg = gimp_dialog_new (_("Rescan for Fractals"), "fractalexplorer",
NULL, 0,
gimp_standard_help_func, "filters/fractalexplorer.html",
gimp_standard_help_func, HELP_ID,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_OK, GTK_RESPONSE_OK,
......
......@@ -15,6 +15,8 @@
#define MAXNCOLORS 8192
#define MAXSTRLEN 256
#define HELP_ID "plug-in-fractalexplorer"
#define FRACTAL_HEADER "Fractal Explorer Plug-In Version 2 - (c) 1997 <cotting@mygale.org>\n"
#define fractalexplorer_HEADER "Fractal Explorer Plug-In Version 2 - (c) 1997 <cotting@mygale.org>\n"
......
......@@ -1107,8 +1107,7 @@ main_dialog (GimpDrawable *drawable)
appwin = gimp_dialog_new (_("Lighting Effects"), "Lighting",
NULL, 0,
gimp_standard_help_func,
"filters/lighting.html",
gimp_standard_help_func, "plug-in-lighting",
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_OK, GTK_RESPONSE_OK,
......
......@@ -1377,8 +1377,7 @@ main_dialog (GimpDrawable *drawable)
appwin = gimp_dialog_new (_("Map to Object"), "MapObject",
NULL, 0,
gimp_standard_help_func,
"filters/mapobject.html",
gimp_standard_help_func, "plug-in-map-object",
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_OK, GTK_RESPONSE_OK,
......
......@@ -553,7 +553,7 @@ save_dialog (void)
dlg = gimp_dialog_new (_("Save as BMP"), "bmp",
NULL, 0,
gimp_standard_help_func, "filters/bmp.html",
gimp_standard_help_func, "file-bmp-save",
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_OK, GTK_RESPONSE_OK,
......
......@@ -1144,7 +1144,7 @@ alienmap_dialog (void)
dialog = gimp_dialog_new (_("AlienMap"), "alienmap",
NULL, 0,
gimp_standard_help_func, "filters/alienmap.html",
gimp_standard_help_func, "plug-in-alienmap",
_("About"), RESPONSE_ABOUT,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
......@@ -1359,7 +1359,7 @@ alienmap_logo_dialog (GtkWidget *parent)
logodlg = gimp_dialog_new (_("About AlienMap"), "alienmap",
parent, GTK_DIALOG_DESTROY_WITH_PARENT,
gimp_standard_help_func, "filters/alienmap.html",
gimp_standard_help_func, "plug-in-alienmap",
GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE,
......
......@@ -1147,7 +1147,7 @@ alienmap2_dialog (void)
dialog = gimp_dialog_new (_("AlienMap2"), "alienmap2",
NULL, 0,
gimp_standard_help_func, "filters/alienmap2.html",
gimp_standard_help_func, "plug-in-alienmap2",
_("About"), RESPONSE_ABOUT,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
......@@ -1394,7 +1394,7 @@ alienmap2_logo_dialog (GtkWidget *parent)
logodlg = gimp_dialog_new (_("About AlienMap2"), "alienmap2",
parent, GTK_DIALOG_DESTROY_WITH_PARENT,
gimp_standard_help_func, "filters/alienmap2.html",
gimp_standard_help_func, "plug-in-alienmap2",
GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE,
......
......@@ -211,7 +211,7 @@ run (const gchar *name,
{
image_ID = param[1].data.d_int32;
drawable_ID = param[2].data.d_int32;
/* eventually export the image */
switch (run_mode)
{
......@@ -221,7 +221,7 @@ run (const gchar *name,
export = gimp_export_image (&image_ID, &drawable_ID, "CEL",
(GIMP_EXPORT_CAN_HANDLE_RGB |
GIMP_EXPORT_CAN_HANDLE_ALPHA |
GIMP_EXPORT_CAN_HANDLE_INDEXED
GIMP_EXPORT_CAN_HANDLE_INDEXED
));
if (export == GIMP_EXPORT_CANCEL)
{
......@@ -689,8 +689,7 @@ palette_dialog (const gchar *title)
gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_MOUSE);
gtk_file_selection_set_filename (GTK_FILE_SELECTION (dialog), palette_file);
gimp_help_connect (dialog, gimp_standard_help_func,
"filters/cel.html", NULL);
gimp_help_connect (dialog, gimp_standard_help_func, "file-cel-load", NULL);
gtk_widget_show (dialog);
......
......@@ -91,6 +91,7 @@
#define PARAM_FILE_FORMAT_VERSION 1.0
#define PLUG_IN_NAME "plug_in_CML_explorer"
#define SHORT_NAME "CML_explorer"
#define HELP_ID "plug-in-cml-explorer"
#define VALS CML_explorer_vals
#define PROGRESS_UPDATE_NUM 100
#define CML_LINE_SIZE 1024
......@@ -1173,7 +1174,7 @@ CML_explorer_dialog (void)
dlg = gimp_dialog_new (_("Coupled-Map-Lattice Explorer"), "cml_explorer",
NULL, 0,
gimp_standard_help_func, "filters/cml_explorer.html",
gimp_standard_help_func, HELP_ID,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_OK, GTK_RESPONSE_OK,
......@@ -1901,7 +1902,7 @@ function_graph_new (GtkWidget *widget,
dlg = gimp_dialog_new (_("Graph of the current settings"), "cml_explorer",
gtk_widget_get_toplevel (widget), 0,
gimp_standard_help_func, "filters/cml_explorer.html",
gimp_standard_help_func, HELP_ID,
GTK_STOCK_OK, GTK_RESPONSE_OK,
......@@ -2076,8 +2077,7 @@ CML_save_to_file_callback (GtkWidget *widget,
gtk_window_set_transient_for (GTK_WINDOW (filesel),
GTK_WINDOW (gtk_widget_get_toplevel (widget)));
gimp_help_connect (filesel, gimp_standard_help_func,
"filters/cml_explorer.html", NULL);
gimp_help_connect (filesel, gimp_standard_help_func, HELP_ID, NULL);
g_signal_connect (filesel, "response",
G_CALLBACK (CML_save_to_file_response),
......@@ -2209,7 +2209,7 @@ force_overwrite (const gchar *filename,
dlg = gimp_dialog_new (_("CML File Operation Warning"), "cml_explorer",
parent, GTK_DIALOG_MODAL,
gimp_standard_help_func, "filters/cml_explorer.html",
gimp_standard_help_func, HELP_ID,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_OK, GTK_RESPONSE_OK,
......@@ -2253,8 +2253,7 @@ CML_load_from_file_callback (GtkWidget *widget,
gtk_window_set_transient_for (GTK_WINDOW (filesel),
GTK_WINDOW (gtk_widget_get_toplevel (widget)));
gimp_help_connect (filesel, gimp_standard_help_func,
"filters/cml_explorer.html", NULL);
gimp_help_connect (filesel, gimp_standard_help_func, HELP_ID, NULL);
g_signal_connect (filesel, "response",
G_CALLBACK (CML_load_from_file_response),
......
......@@ -340,7 +340,7 @@ type_dialog (gint selected)
/* Create the actual window. */
dlg = gimp_dialog_new (_("Save as Text"), "aa",
NULL, 0,
gimp_standard_help_func, "filters/aa.html",
gimp_standard_help_func, "file-aa-save",
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_OK, GTK_RESPONSE_OK,
......
......@@ -35,6 +35,7 @@
#define PLUG_IN_NAME "plug_in_align_layers"
#define SHORT_NAME "align_layers"
#define HELP_ID "plug-in-align-layers"
#define SCALE_WIDTH 150
enum
......@@ -399,7 +400,7 @@ align_layers_dialog (void)
dlg = gimp_dialog_new (_("Align Visible Layers"), SHORT_NAME,
NULL, 0,
gimp_standard_help_func, "filters/align_layers.html",
gimp_standard_help_func, HELP_ID,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_OK, GTK_RESPONSE_OK,
......
......@@ -480,7 +480,7 @@ build_dialog (GimpImageBaseType basetype,
dlg = gimp_dialog_new (windowname, "animationplay",
NULL, 0,
gimp_standard_help_func, "filters/animationplay.html",
gimp_standard_help_func, "plug-in-animationplay",
GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE,
......
......@@ -368,7 +368,7 @@ lens_dialog (GimpDrawable *drawable)
dlg = gimp_dialog_new (_("Lens Effect"), "apply_lens",
NULL, 0,
gimp_standard_help_func, "filters/apply_lens.html",
gimp_standard_help_func, "plug-in-applylens",
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_OK, GTK_RESPONSE_OK,
......
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