Commit 8c4d99f8 authored by Michael Natterer's avatar Michael Natterer 😴
Browse files

Bug 645456 - Inconsistent window (role) naming scheme

Applied patch from Christoph Kappel which adds a "gimp-" prefix to all
plug-in dialog window roles.
parent 77b76ca9
......@@ -646,7 +646,7 @@ color_rotate_dialog (void)
gimp_ui_init (PLUG_IN_BINARY, TRUE);
color_rotate_stock_init ();
dialog = gimp_dialog_new (_("Rotate Colors"), PLUG_IN_BINARY,
dialog = gimp_dialog_new (_("Rotate Colors"), PLUG_IN_ROLE,
NULL, 0,
gimp_standard_help_func, PLUG_IN_PROC,
......
......@@ -40,6 +40,7 @@
#define PLUG_IN_PROC "plug-in-rotate-colormap"
#define PLUG_IN_BINARY "rcm"
#define PLUG_IN_ROLE "gimp-rcm"
#define TP (2*G_PI)
......
......@@ -33,6 +33,7 @@
#define PLUG_IN_PROC "plug-in-alienmap2"
#define PLUG_IN_BINARY "alien-map"
#define PLUG_IN_ROLE "gimp-alien-map"
#define SCALE_WIDTH 200
#define ENTRY_WIDTH 6
......@@ -389,7 +390,7 @@ alienmap2_dialog (void)
gimp_ui_init (PLUG_IN_BINARY, TRUE);
dialog = gimp_dialog_new (_("Alien Map"), PLUG_IN_BINARY,
dialog = gimp_dialog_new (_("Alien Map"), PLUG_IN_ROLE,
NULL, 0,
gimp_standard_help_func, PLUG_IN_PROC,
......
......@@ -27,6 +27,7 @@
#define PLUG_IN_PROC "plug-in-align-layers"
#define PLUG_IN_BINARY "align-layers"
#define PLUG_IN_ROLE "gimp-align-layers"
#define SCALE_WIDTH 150
enum
......@@ -396,7 +397,7 @@ align_layers_dialog (void)
gimp_ui_init (PLUG_IN_BINARY, FALSE);
dialog = gimp_dialog_new (_("Align Visible Layers"), PLUG_IN_BINARY,
dialog = gimp_dialog_new (_("Align Visible Layers"), PLUG_IN_ROLE,
NULL, 0,
gimp_standard_help_func, PLUG_IN_PROC,
......
......@@ -43,6 +43,7 @@
#define PLUG_IN_PROC "plug-in-animationplay"
#define PLUG_IN_BINARY "animation-play"
#define PLUG_IN_ROLE "gimp-animation-play"
#define DITHERTYPE GDK_RGB_DITHER_NORMAL
......
......@@ -42,6 +42,7 @@
#define PLUG_IN_PROC "plug-in-apply-canvas"
#define PLUG_IN_BINARY "apply-canvas"
#define PLUG_IN_ROLE "gimp-apply-canvas"
static const gchar sdata[] =
......@@ -1259,7 +1260,7 @@ struc_dialog (GimpDrawable *drawable)
gimp_ui_init (PLUG_IN_BINARY, FALSE);
dialog = gimp_dialog_new (_("Apply Canvas"), PLUG_IN_BINARY,
dialog = gimp_dialog_new (_("Apply Canvas"), PLUG_IN_ROLE,
NULL, 0,
gimp_standard_help_func, PLUG_IN_PROC,
......
......@@ -42,6 +42,7 @@
#define PLUG_IN_PROC "plug-in-blinds"
#define PLUG_IN_BINARY "blinds"
#define PLUG_IN_ROLE "gimp-blinds"
#define SCALE_WIDTH 150
......@@ -219,7 +220,7 @@ blinds_dialog (GimpDrawable *drawable)
gimp_ui_init (PLUG_IN_BINARY, TRUE);
dialog = gimp_dialog_new (_("Blinds"), PLUG_IN_BINARY,
dialog = gimp_dialog_new (_("Blinds"), PLUG_IN_ROLE,
NULL, 0,
gimp_standard_help_func, PLUG_IN_PROC,
......
......@@ -38,6 +38,7 @@
#define PLUG_IN_PROC "plug-in-sel-gauss"
#define PLUG_IN_BINARY "blur-gauss-selective"
#define PLUG_IN_ROLE "gimp-blur-gauss-selective"
#ifndef ALWAYS_INLINE
#if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ > 0)
......@@ -228,7 +229,7 @@ sel_gauss_dialog (GimpDrawable *drawable)
gimp_ui_init (PLUG_IN_BINARY, FALSE);
dialog = gimp_dialog_new (_("Selective Gaussian Blur"), PLUG_IN_BINARY,
dialog = gimp_dialog_new (_("Selective Gaussian Blur"), PLUG_IN_ROLE,
NULL, 0,
gimp_standard_help_func, PLUG_IN_PROC,
......
......@@ -30,6 +30,7 @@
#define GAUSS_RLE_PROC "plug-in-gauss-rle"
#define GAUSS_RLE2_PROC "plug-in-gauss-rle2"
#define PLUG_IN_BINARY "blur-gauss"
#define PLUG_IN_ROLE "gimp-blur-gauss"
typedef enum
{
......@@ -474,7 +475,7 @@ gauss_dialog (gint32 image_ID,
gimp_ui_init (PLUG_IN_BINARY, FALSE);
dialog = gimp_dialog_new (_("Gaussian Blur"), PLUG_IN_BINARY,
dialog = gimp_dialog_new (_("Gaussian Blur"), PLUG_IN_ROLE,
NULL, 0,
gimp_standard_help_func, GAUSS_PROC,
......
......@@ -44,6 +44,7 @@
#define PLUG_IN_PROC "plug-in-mblur"
#define PLUG_IN_PROC_INWARD "plug-in-mblur-inward"
#define PLUG_IN_BINARY "blur-motion"
#define PLUG_IN_ROLE "gimp-blur-motion"
#define PLUG_IN_VERSION "May 2007, 1.3"
......@@ -1010,7 +1011,7 @@ mblur_dialog (gint32 image_ID,
gimp_ui_init (PLUG_IN_BINARY, FALSE);
dialog = gimp_dialog_new (_("Motion Blur"), PLUG_IN_BINARY,
dialog = gimp_dialog_new (_("Motion Blur"), PLUG_IN_ROLE,
NULL, 0,
gimp_standard_help_func, PLUG_IN_PROC,
......
......@@ -27,6 +27,7 @@
#define PLUG_IN_PROC "plug-in-borderaverage"
#define PLUG_IN_BINARY "border-average"
#define PLUG_IN_ROLE "gimp-border-average"
/* Declare local functions.
......@@ -347,7 +348,7 @@ borderaverage_dialog (gint32 image_ID,
gimp_ui_init (PLUG_IN_BINARY, FALSE);
dialog = gimp_dialog_new (_("Borderaverage"), PLUG_IN_BINARY,
dialog = gimp_dialog_new (_("Borderaverage"), PLUG_IN_ROLE,
NULL, 0,
gimp_standard_help_func, PLUG_IN_PROC,
......
......@@ -41,6 +41,7 @@
#define PLUG_IN_PROC "plug-in-bump-map"
#define PLUG_IN_TILED_PROC "plug-in-bump-map-tiled"
#define PLUG_IN_BINARY "bumpmap"
#define PLUG_IN_ROLE "gimp-bumpmap"
#define PLUG_IN_VERSION "April 2000, 3.0-pre1-ac2"
#define SCALE_WIDTH 100
......@@ -762,7 +763,7 @@ bumpmap_dialog (void)
gimp_ui_init (PLUG_IN_BINARY, TRUE);
dialog = gimp_dialog_new (_("Bump Map"), PLUG_IN_BINARY,
dialog = gimp_dialog_new (_("Bump Map"), PLUG_IN_ROLE,
NULL, 0,
gimp_standard_help_func, PLUG_IN_PROC,
......
......@@ -36,6 +36,7 @@
#define PLUG_IN_PROC "plug-in-cartoon"
#define PLUG_IN_BINARY "cartoon"
#define PLUG_IN_ROLE "gimp-cartoon"
#define TILE_CACHE_SIZE 48
typedef struct
......@@ -807,7 +808,7 @@ cartoon_dialog (GimpDrawable *drawable)
gimp_ui_init (PLUG_IN_BINARY, FALSE);
dialog = gimp_dialog_new (_("Cartoon"), PLUG_IN_BINARY,
dialog = gimp_dialog_new (_("Cartoon"), PLUG_IN_ROLE,
NULL, 0,
gimp_standard_help_func, PLUG_IN_PROC,
......
......@@ -38,6 +38,7 @@
#define PLUG_IN_PROC "plug-in-colors-channel-mixer"
#define PLUG_IN_BINARY "channel-mixer"
#define PLUG_IN_ROLE "gimp-channel-mixer"
#define CM_LINE_SIZE 1024
typedef enum
......@@ -488,7 +489,7 @@ cm_dialog (CmParamsType *mix,
}
}
dialog = gimp_dialog_new (_("Channel Mixer"), PLUG_IN_BINARY,
dialog = gimp_dialog_new (_("Channel Mixer"), PLUG_IN_ROLE,
NULL, 0,
gimp_standard_help_func, PLUG_IN_PROC,
......
......@@ -28,6 +28,7 @@
#define PLUG_IN_PROC "plug-in-checkerboard"
#define PLUG_IN_BINARY "checkerboard"
#define PLUG_IN_ROLE "gimp-checkerboard"
#define SPIN_BUTTON_WIDTH 8
......@@ -342,7 +343,7 @@ checkerboard_dialog (gint32 image_ID,
gimp_ui_init (PLUG_IN_BINARY, FALSE);
dialog = gimp_dialog_new (_("Checkerboard"), PLUG_IN_BINARY,
dialog = gimp_dialog_new (_("Checkerboard"), PLUG_IN_ROLE,
NULL, 0,
gimp_standard_help_func, PLUG_IN_PROC,
......
......@@ -84,6 +84,7 @@
#define PARAM_FILE_FORMAT_VERSION 1.0
#define PLUG_IN_PROC "plug-in-cml-explorer"
#define PLUG_IN_BINARY "cml-explorer"
#define PLUG_IN_ROLE "gimp-cml-explorer"
#define VALS CML_explorer_vals
#define PROGRESS_UPDATE_NUM 100
#define CML_LINE_SIZE 1024
......@@ -1178,7 +1179,7 @@ CML_explorer_dialog (void)
gimp_ui_init (PLUG_IN_BINARY, TRUE);
dialog = gimp_dialog_new (_("Coupled-Map-Lattice Explorer"), PLUG_IN_BINARY,
dialog = gimp_dialog_new (_("Coupled-Map-Lattice Explorer"), PLUG_IN_ROLE,
NULL, 0,
gimp_standard_help_func, PLUG_IN_PROC,
......@@ -1845,7 +1846,7 @@ function_graph_new (GtkWidget *widget,
GtkWidget *frame;
GtkWidget *preview;
dialog = gimp_dialog_new (_("Graph of the Current Settings"), PLUG_IN_BINARY,
dialog = gimp_dialog_new (_("Graph of the Current Settings"), PLUG_IN_ROLE,
gtk_widget_get_toplevel (widget), 0,
gimp_standard_help_func, PLUG_IN_PROC,
......
......@@ -36,6 +36,7 @@
#define PLUG_IN_PROC "plug-in-ccanalyze"
#define PLUG_IN_BINARY "color-cube-analyze"
#define PLUG_IN_ROLE "gimp-color-cube-analyze"
/* size of histogram image */
#define PREWIDTH 256
......@@ -352,7 +353,7 @@ doDialog (void)
gimp_ui_init (PLUG_IN_BINARY, TRUE);
dialog = gimp_dialog_new (_("Colorcube Analysis"), PLUG_IN_BINARY,
dialog = gimp_dialog_new (_("Colorcube Analysis"), PLUG_IN_ROLE,
NULL, 0,
gimp_standard_help_func, PLUG_IN_PROC,
......
......@@ -44,6 +44,7 @@
#define PLUG_IN_PROC "plug-in-exchange"
#define PLUG_IN_BINARY "color-exchange"
#define PLUG_IN_ROLE "gimp-color-exchange"
#define SCALE_WIDTH 128
......@@ -283,7 +284,7 @@ exchange_dialog (GimpDrawable *drawable)
gimp_ui_init (PLUG_IN_BINARY, TRUE);
dialog = gimp_dialog_new (_("Color Exchange"), PLUG_IN_BINARY,
dialog = gimp_dialog_new (_("Color Exchange"), PLUG_IN_ROLE,
NULL, 0,
gimp_standard_help_func, PLUG_IN_PROC,
......
......@@ -30,6 +30,7 @@
#define PLUG_IN_PROC "plug-in-colortoalpha"
#define PLUG_IN_BINARY "color-to-aplha"
#define PLUG_IN_ROLE "gimp-color-to-aplha"
#define PRV_WIDTH 40
#define PRV_HEIGHT 20
......@@ -373,7 +374,7 @@ color_to_alpha_dialog (GimpDrawable *drawable)
gimp_ui_init (PLUG_IN_BINARY, TRUE);
dialog = gimp_dialog_new (_("Color to Alpha"), PLUG_IN_BINARY,
dialog = gimp_dialog_new (_("Color to Alpha"), PLUG_IN_ROLE,
NULL, 0,
gimp_standard_help_func, PLUG_IN_PROC,
......
......@@ -28,6 +28,7 @@
#define PLUG_IN_PROC "plug-in-colorify"
#define PLUG_IN_BINARY "colorify"
#define PLUG_IN_ROLE "gimp-colorify"
#define PLUG_IN_VERSION "1.1"
#define COLOR_SIZE 30
......@@ -251,7 +252,7 @@ colorify_dialog (GimpDrawable *drawable)
gimp_ui_init (PLUG_IN_BINARY, TRUE);
dialog = gimp_dialog_new (_("Colorify"), PLUG_IN_BINARY,
dialog = gimp_dialog_new (_("Colorify"), PLUG_IN_ROLE,
NULL, 0,
gimp_standard_help_func, PLUG_IN_PROC,
......
Supports Markdown
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