mirror of https://github.com/GNOME/gimp.git
Rename GimpFixmePreview into GimpOldPreview. This is just a prelimirary
stuff, before moving it into its own, no_inst library.
This commit is contained in:
parent
213e90c84d
commit
f5af3d3a66
23
ChangeLog
23
ChangeLog
|
@ -1,3 +1,26 @@
|
|||
2003-12-09 DindinX <david@dindinx.org>
|
||||
|
||||
* libgimp/gimpmiscui.c:
|
||||
* libgimp/gimpmiscui.h:
|
||||
* plug-ins/common/AlienMap.c:
|
||||
* plug-ins/common/AlienMap2.c:
|
||||
* plug-ins/common/blinds.c:
|
||||
* plug-ins/common/flarefx.c:
|
||||
* plug-ins/common/glasstile.c:
|
||||
* plug-ins/common/grid.c:
|
||||
* plug-ins/common/illusion.c:
|
||||
* plug-ins/common/jigsaw.c:
|
||||
* plug-ins/common/max_rgb.c:
|
||||
* plug-ins/common/nlfilt.c:
|
||||
* plug-ins/common/noisify.c:
|
||||
* plug-ins/common/nova.c:
|
||||
* plug-ins/common/plasma.c:
|
||||
* plug-ins/common/polar.c:
|
||||
* plug-ins/common/waves.c:
|
||||
* plug-ins/common/wind.c: Rename GimpFixmePreview into
|
||||
GimpOldPreview. This is just a prelimirary stuff, before moving it
|
||||
into its own, no_inst library.
|
||||
|
||||
2003-12-09 DindinX <david@dindinx.org>
|
||||
|
||||
* plug-ins/common/vpropagate.c (vpropagate_dialog):
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
#define PREVIEW_BPP 3
|
||||
|
||||
static void
|
||||
gimp_fixme_preview_put_in_frame (GimpFixMePreview* preview)
|
||||
gimp_old_preview_put_in_frame (GimpOldPreview* preview)
|
||||
{
|
||||
GtkWidget *frame, *abox;
|
||||
|
||||
|
@ -63,26 +63,26 @@ gimp_fixme_preview_put_in_frame (GimpFixMePreview* preview)
|
|||
gtk_container_add (GTK_CONTAINER (frame), preview->widget);
|
||||
}
|
||||
|
||||
GimpFixMePreview*
|
||||
gimp_fixme_preview_new (GimpDrawable *drawable,
|
||||
GimpOldPreview*
|
||||
gimp_old_preview_new (GimpDrawable *drawable,
|
||||
gboolean has_frame)
|
||||
{
|
||||
GimpFixMePreview *preview = g_new0 (GimpFixMePreview, 1);
|
||||
GimpOldPreview *preview = g_new0 (GimpOldPreview, 1);
|
||||
|
||||
preview->widget = gtk_preview_new (GTK_PREVIEW_COLOR);
|
||||
preview->is_gray = FALSE;
|
||||
|
||||
if (drawable)
|
||||
gimp_fixme_preview_fill_with_thumb (preview, drawable->drawable_id);
|
||||
gimp_old_preview_fill_with_thumb (preview, drawable->drawable_id);
|
||||
|
||||
if (has_frame)
|
||||
gimp_fixme_preview_put_in_frame (preview);
|
||||
gimp_old_preview_put_in_frame (preview);
|
||||
|
||||
return preview;
|
||||
}
|
||||
|
||||
void
|
||||
gimp_fixme_preview_free (GimpFixMePreview *preview)
|
||||
gimp_old_preview_free (GimpOldPreview *preview)
|
||||
{
|
||||
g_free (preview->cmap);
|
||||
g_free (preview->even);
|
||||
|
@ -91,15 +91,15 @@ gimp_fixme_preview_free (GimpFixMePreview *preview)
|
|||
g_free (preview);
|
||||
}
|
||||
|
||||
GimpFixMePreview*
|
||||
gimp_fixme_preview_new2 (GimpImageType drawable_type,
|
||||
GimpOldPreview*
|
||||
gimp_old_preview_new2 (GimpImageType drawable_type,
|
||||
gboolean has_frame)
|
||||
{
|
||||
GimpFixMePreview *preview;
|
||||
GimpOldPreview *preview;
|
||||
guchar *buf = NULL;
|
||||
gint y;
|
||||
|
||||
preview = g_new0 (GimpFixMePreview, 1);
|
||||
preview = g_new0 (GimpOldPreview, 1);
|
||||
|
||||
switch (drawable_type)
|
||||
{
|
||||
|
@ -131,7 +131,7 @@ gimp_fixme_preview_new2 (GimpImageType drawable_type,
|
|||
g_free (buf);
|
||||
|
||||
if (has_frame)
|
||||
gimp_fixme_preview_put_in_frame (preview);
|
||||
gimp_old_preview_put_in_frame (preview);
|
||||
|
||||
preview->buffer = GTK_PREVIEW (preview->widget)->buffer;
|
||||
preview->width = GTK_PREVIEW (preview->widget)->buffer_width;
|
||||
|
@ -142,7 +142,7 @@ gimp_fixme_preview_new2 (GimpImageType drawable_type,
|
|||
}
|
||||
|
||||
void
|
||||
gimp_fixme_preview_put_pixel (GimpFixMePreview *preview,
|
||||
gimp_old_preview_put_pixel (GimpOldPreview *preview,
|
||||
gint x,
|
||||
gint y,
|
||||
const guchar *pixel)
|
||||
|
@ -169,7 +169,7 @@ gimp_fixme_preview_put_pixel (GimpFixMePreview *preview,
|
|||
}
|
||||
|
||||
void
|
||||
gimp_fixme_preview_get_pixel (GimpFixMePreview *preview,
|
||||
gimp_old_preview_get_pixel (GimpOldPreview *preview,
|
||||
gint x,
|
||||
gint y,
|
||||
guchar *pixel)
|
||||
|
@ -196,7 +196,7 @@ gimp_fixme_preview_get_pixel (GimpFixMePreview *preview,
|
|||
}
|
||||
|
||||
void
|
||||
gimp_fixme_preview_do_row (GimpFixMePreview *preview,
|
||||
gimp_old_preview_do_row (GimpOldPreview *preview,
|
||||
gint row,
|
||||
gint width,
|
||||
const guchar *src)
|
||||
|
@ -280,8 +280,8 @@ gimp_fixme_preview_do_row (GimpFixMePreview *preview,
|
|||
}
|
||||
|
||||
void
|
||||
gimp_fixme_preview_update (GimpFixMePreview *preview,
|
||||
GimpFixeMePreviewFunc func,
|
||||
gimp_old_preview_update (GimpOldPreview *preview,
|
||||
GimpOldPreviewFunc func,
|
||||
gpointer data)
|
||||
{
|
||||
guchar *buffer;
|
||||
|
@ -304,7 +304,7 @@ gimp_fixme_preview_update (GimpFixMePreview *preview,
|
|||
dest += bpp;
|
||||
}
|
||||
|
||||
gimp_fixme_preview_do_row (preview, y, preview->width, buffer);
|
||||
gimp_old_preview_do_row (preview, y, preview->width, buffer);
|
||||
}
|
||||
|
||||
gtk_widget_queue_draw (preview->widget);
|
||||
|
@ -313,7 +313,7 @@ gimp_fixme_preview_update (GimpFixMePreview *preview,
|
|||
}
|
||||
|
||||
void
|
||||
gimp_fixme_preview_fill_with_thumb (GimpFixMePreview *preview,
|
||||
gimp_old_preview_fill_with_thumb (GimpOldPreview *preview,
|
||||
gint32 drawable_ID)
|
||||
{
|
||||
const guchar *src;
|
||||
|
@ -354,7 +354,7 @@ gimp_fixme_preview_fill_with_thumb (GimpFixMePreview *preview,
|
|||
|
||||
for (y = 0; y < height; y++)
|
||||
{
|
||||
gimp_fixme_preview_do_row (preview, y, width, src);
|
||||
gimp_old_preview_do_row (preview, y, width, src);
|
||||
src += width * bpp;
|
||||
}
|
||||
|
||||
|
@ -364,7 +364,7 @@ gimp_fixme_preview_fill_with_thumb (GimpFixMePreview *preview,
|
|||
}
|
||||
|
||||
void
|
||||
gimp_fixme_preview_fill (GimpFixMePreview *preview,
|
||||
gimp_old_preview_fill (GimpOldPreview *preview,
|
||||
GimpDrawable *drawable)
|
||||
{
|
||||
GimpPixelRgn srcPR;
|
||||
|
@ -416,7 +416,7 @@ gimp_fixme_preview_fill (GimpFixMePreview *preview,
|
|||
|
||||
for (y = 0; y < height; y++)
|
||||
{
|
||||
gimp_fixme_preview_do_row (preview, y, width,
|
||||
gimp_old_preview_do_row (preview, y, width,
|
||||
preview->cache + (y * width * bpp));
|
||||
}
|
||||
|
||||
|
@ -428,7 +428,7 @@ gimp_fixme_preview_fill (GimpFixMePreview *preview,
|
|||
}
|
||||
|
||||
void
|
||||
gimp_fixme_preview_fill_scaled (GimpFixMePreview *preview,
|
||||
gimp_old_preview_fill_scaled (GimpOldPreview *preview,
|
||||
GimpDrawable *drawable)
|
||||
{
|
||||
gint bpp;
|
||||
|
@ -498,7 +498,7 @@ gimp_fixme_preview_fill_scaled (GimpFixMePreview *preview,
|
|||
dest += bpp;
|
||||
px += dx;
|
||||
}
|
||||
gimp_fixme_preview_do_row (preview, y, width, dest);
|
||||
gimp_old_preview_do_row (preview, y, width, dest);
|
||||
py += dy;
|
||||
}
|
||||
gimp_pixel_fetcher_destroy (pft);
|
||||
|
|
|
@ -56,40 +56,41 @@ typedef struct
|
|||
gdouble scale_x;
|
||||
gdouble scale_y;
|
||||
gboolean is_gray;
|
||||
} GimpFixMePreview;
|
||||
} GimpOldPreview;
|
||||
|
||||
typedef void (*GimpFixeMePreviewFunc) (const guchar *src,
|
||||
typedef void (*GimpOldPreviewFunc) (const guchar *src,
|
||||
guchar *dest,
|
||||
gint bpp,
|
||||
gpointer data);
|
||||
|
||||
GimpFixMePreview * gimp_fixme_preview_new (GimpDrawable *drawable,
|
||||
GimpOldPreview * gimp_old_preview_new (GimpDrawable *drawable,
|
||||
gboolean has_frame);
|
||||
GimpFixMePreview * gimp_fixme_preview_new2 (GimpImageType drawable_type,
|
||||
GimpOldPreview * gimp_old_preview_new2 (GimpImageType drawable_type,
|
||||
gboolean has_frame);
|
||||
void gimp_fixme_preview_free (GimpFixMePreview *preview);
|
||||
void gimp_old_preview_free (GimpOldPreview *preview);
|
||||
|
||||
void gimp_fixme_preview_update (GimpFixMePreview *preview,
|
||||
GimpFixeMePreviewFunc func,
|
||||
void gimp_old_preview_update (GimpOldPreview *preview,
|
||||
GimpOldPreviewFunc func,
|
||||
gpointer data);
|
||||
|
||||
void gimp_fixme_preview_fill_with_thumb (GimpFixMePreview *preview,
|
||||
|
||||
void gimp_old_preview_fill_with_thumb (GimpOldPreview *preview,
|
||||
gint32 drawable_ID);
|
||||
void gimp_fixme_preview_fill (GimpFixMePreview *preview,
|
||||
void gimp_old_preview_fill (GimpOldPreview *preview,
|
||||
GimpDrawable *drawable);
|
||||
void gimp_fixme_preview_fill_scaled (GimpFixMePreview *preview,
|
||||
void gimp_old_preview_fill_scaled (GimpOldPreview *preview,
|
||||
GimpDrawable *drawable);
|
||||
|
||||
void gimp_fixme_preview_do_row (GimpFixMePreview *preview,
|
||||
void gimp_old_preview_do_row (GimpOldPreview *preview,
|
||||
gint row,
|
||||
gint width,
|
||||
const guchar *src);
|
||||
|
||||
void gimp_fixme_preview_put_pixel (GimpFixMePreview *preview,
|
||||
void gimp_old_preview_put_pixel (GimpOldPreview *preview,
|
||||
gint x,
|
||||
gint y,
|
||||
const guchar *pixel);
|
||||
void gimp_fixme_preview_get_pixel (GimpFixMePreview *preview,
|
||||
void gimp_old_preview_get_pixel (GimpOldPreview *preview,
|
||||
gint x,
|
||||
gint y,
|
||||
guchar *pixel);
|
||||
|
|
|
@ -887,7 +887,7 @@ static void alienmap_logo_dialog (GtkWidget *parent);
|
|||
/***** Variables *****/
|
||||
|
||||
static GimpRunMode run_mode;
|
||||
static GimpFixMePreview *preview;
|
||||
static GimpOldPreview *preview;
|
||||
|
||||
GimpPlugInInfo PLUG_IN_INFO =
|
||||
{
|
||||
|
@ -1172,8 +1172,8 @@ alienmap_dialog (void)
|
|||
gtk_table_attach (GTK_TABLE (top_table), frame, 0, 1, 0, 1, 0, 0, 0, 0);
|
||||
gtk_widget_show (frame);
|
||||
|
||||
preview = gimp_fixme_preview_new (NULL, FALSE);
|
||||
gimp_fixme_preview_fill_scaled (preview, drawable);
|
||||
preview = gimp_old_preview_new (NULL, FALSE);
|
||||
gimp_old_preview_fill_scaled (preview, drawable);
|
||||
gtk_container_add (GTK_CONTAINER (frame), preview->widget);
|
||||
gtk_widget_show (preview->widget);
|
||||
|
||||
|
@ -1294,7 +1294,7 @@ alienmap_dialog (void)
|
|||
static void
|
||||
dialog_update_preview (void)
|
||||
{
|
||||
gimp_fixme_preview_update (preview, alienmap_func, NULL);
|
||||
gimp_old_preview_update (preview, alienmap_func, NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -887,7 +887,7 @@ static void alienmap2_logo_dialog (GtkWidget *parent);
|
|||
/***** Variables *****/
|
||||
|
||||
static GimpRunMode run_mode;
|
||||
static GimpFixMePreview *preview;
|
||||
static GimpOldPreview *preview;
|
||||
|
||||
GimpPlugInInfo PLUG_IN_INFO =
|
||||
{
|
||||
|
@ -1176,8 +1176,8 @@ alienmap2_dialog (void)
|
|||
gtk_table_attach (GTK_TABLE (top_table), frame, 0, 1, 0, 1, 0, 0, 0, 0);
|
||||
gtk_widget_show (frame);
|
||||
|
||||
preview = gimp_fixme_preview_new (NULL, FALSE);
|
||||
gimp_fixme_preview_fill_scaled (preview, drawable);
|
||||
preview = gimp_old_preview_new (NULL, FALSE);
|
||||
gimp_old_preview_fill_scaled (preview, drawable);
|
||||
gtk_container_add (GTK_CONTAINER (frame), preview->widget);
|
||||
gtk_widget_show (preview->widget);
|
||||
|
||||
|
@ -1320,7 +1320,7 @@ alienmap2_dialog (void)
|
|||
static void
|
||||
dialog_update_preview (void)
|
||||
{
|
||||
gimp_fixme_preview_update (preview, alienmap2_func, NULL);
|
||||
gimp_old_preview_update (preview, alienmap2_func, NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -80,7 +80,7 @@ typedef struct data
|
|||
gint bg_trans;
|
||||
} BlindVals;
|
||||
|
||||
static GimpFixMePreview *preview;
|
||||
static GimpOldPreview *preview;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
|
@ -287,8 +287,8 @@ blinds_dialog (void)
|
|||
gtk_box_pack_start (GTK_BOX (main_vbox), hbox, FALSE, FALSE, 0);
|
||||
gtk_widget_show (hbox);
|
||||
|
||||
preview = gimp_fixme_preview_new (NULL, TRUE);
|
||||
gimp_fixme_preview_fill_scaled (preview, blindsdrawable);
|
||||
preview = gimp_old_preview_new (NULL, TRUE);
|
||||
gimp_old_preview_fill_scaled (preview, blindsdrawable);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), preview->frame, FALSE, FALSE, 0);
|
||||
gtk_widget_show (preview->widget);
|
||||
|
||||
|
@ -543,7 +543,7 @@ dialog_update_preview (void)
|
|||
for (y = 0; y < preview->height; y++)
|
||||
{
|
||||
blindsapply (p, buffer, preview->width, bint.img_bpp, bg);
|
||||
gimp_fixme_preview_do_row (preview, y, preview->width, buffer);
|
||||
gimp_old_preview_do_row (preview, y, preview->width, buffer);
|
||||
p += preview->width * bint.img_bpp;
|
||||
}
|
||||
}
|
||||
|
@ -598,7 +598,7 @@ dialog_update_preview (void)
|
|||
(preview->width * bint.img_bpp * (dr[y] - 1));
|
||||
}
|
||||
|
||||
gimp_fixme_preview_do_row (preview, y, preview->width, p);
|
||||
gimp_old_preview_do_row (preview, y, preview->width, p);
|
||||
}
|
||||
g_free (sr);
|
||||
g_free (dr);
|
||||
|
|
|
@ -161,7 +161,7 @@ static gint xs, ys;
|
|||
static gint numref;
|
||||
static RGBfloat color, glow, inner, outer, halo;
|
||||
static Reflect ref1[19];
|
||||
static GimpFixMePreview *preview;
|
||||
static GimpOldPreview *preview;
|
||||
static gboolean show_cursor = FALSE;
|
||||
|
||||
/* --- Functions --- */
|
||||
|
@ -440,7 +440,7 @@ FlareFX (GimpDrawable *drawable,
|
|||
}
|
||||
if (preview_mode)
|
||||
{
|
||||
gimp_fixme_preview_do_row (preview, row, preview->width, cur_row);
|
||||
gimp_old_preview_do_row (preview, row, preview->width, cur_row);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -786,7 +786,7 @@ flare_center_create (GimpDrawable *drawable)
|
|||
gtk_table_attach (GTK_TABLE (table), pframe, 0, 4, 1, 2, 0, 0, 0, 0);
|
||||
|
||||
/* PREVIEW */
|
||||
preview = gimp_fixme_preview_new (drawable, FALSE);
|
||||
preview = gimp_old_preview_new (drawable, FALSE);
|
||||
gtk_widget_set_events (GTK_WIDGET (preview->widget), PREVIEW_MASK);
|
||||
gtk_container_add (GTK_CONTAINER (pframe), preview->widget);
|
||||
gtk_widget_show (preview->widget);
|
||||
|
|
|
@ -85,7 +85,7 @@ static GlassValues gtvals =
|
|||
20 /* tile height */
|
||||
};
|
||||
|
||||
static GimpFixMePreview *preview;
|
||||
static GimpOldPreview *preview;
|
||||
|
||||
/* --- Functions --- */
|
||||
|
||||
|
@ -199,7 +199,7 @@ run (const gchar *name,
|
|||
{
|
||||
gimp_set_data ("plug_in_glasstile", >vals,
|
||||
sizeof (GlassValues));
|
||||
gimp_fixme_preview_free (preview);
|
||||
gimp_old_preview_free (preview);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -240,7 +240,7 @@ glass_dialog (GimpDrawable *drawable)
|
|||
main_vbox, TRUE, TRUE, 0);
|
||||
gtk_widget_show (main_vbox);
|
||||
|
||||
preview = gimp_fixme_preview_new (drawable, TRUE);
|
||||
preview = gimp_old_preview_new (drawable, TRUE);
|
||||
gtk_box_pack_start (GTK_BOX (main_vbox), preview->frame, FALSE, FALSE, 0);
|
||||
gtk_widget_show (preview->widget);
|
||||
glasstile (drawable, TRUE); /* filter routine, initial pass */
|
||||
|
@ -441,7 +441,7 @@ glasstile (GimpDrawable *drawable,
|
|||
/* Store the dest */
|
||||
if (preview_mode)
|
||||
{
|
||||
gimp_fixme_preview_do_row (preview, row, width, dest);
|
||||
gimp_old_preview_do_row (preview, row, width, dest);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -85,7 +85,7 @@ static gint sx1, sy1, sx2, sy2;
|
|||
static GtkWidget *main_dialog = NULL;
|
||||
static GtkWidget *hcolor_button = NULL;
|
||||
static GtkWidget *vcolor_button = NULL;
|
||||
static GimpFixMePreview *preview = NULL;
|
||||
static GimpOldPreview *preview = NULL;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
|
@ -225,7 +225,7 @@ run (const gchar *name,
|
|||
/* The dialog was closed, or something similarly evil happened. */
|
||||
status = GIMP_PDB_EXECUTION_ERROR;
|
||||
}
|
||||
gimp_fixme_preview_free (preview);
|
||||
gimp_old_preview_free (preview);
|
||||
}
|
||||
|
||||
if (grid_cfg.hspace <= 0 || grid_cfg.vspace <= 0)
|
||||
|
@ -472,7 +472,7 @@ doit (gint32 image_ID,
|
|||
}
|
||||
if (preview_mode)
|
||||
{
|
||||
gimp_fixme_preview_do_row (preview, y, width, dest);
|
||||
gimp_old_preview_do_row (preview, y, width, dest);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -670,8 +670,8 @@ dialog (gint32 image_ID,
|
|||
gtk_container_add (GTK_CONTAINER (abox), frame);
|
||||
gtk_widget_show (frame);
|
||||
|
||||
preview = gimp_fixme_preview_new (NULL, FALSE);
|
||||
gimp_fixme_preview_fill (preview, drawable);
|
||||
preview = gimp_old_preview_new (NULL, FALSE);
|
||||
gimp_old_preview_fill (preview, drawable);
|
||||
gtk_container_add (GTK_CONTAINER (frame), preview->widget);
|
||||
doit (image_ID, drawable, TRUE); /* render preview */
|
||||
gtk_widget_show (preview->widget);
|
||||
|
|
|
@ -76,7 +76,7 @@ static IllValues parameters =
|
|||
};
|
||||
|
||||
|
||||
static GimpFixMePreview *preview;
|
||||
static GimpOldPreview *preview;
|
||||
static GimpRunMode run_mode;
|
||||
|
||||
|
||||
|
@ -136,7 +136,7 @@ run (const gchar *name,
|
|||
if (! dialog(drawable))
|
||||
return;
|
||||
gimp_set_data (PLUG_IN_NAME, ¶meters, sizeof (IllValues));
|
||||
gimp_fixme_preview_free (preview);
|
||||
gimp_old_preview_free (preview);
|
||||
break;
|
||||
|
||||
case GIMP_RUN_NONINTERACTIVE:
|
||||
|
@ -360,7 +360,7 @@ filter_preview (void)
|
|||
+ radius * pixels[yy][xx * image_bpp + b];
|
||||
}
|
||||
}
|
||||
gimp_fixme_preview_do_row (preview, y, image_width, destpixels[y]);
|
||||
gimp_old_preview_do_row (preview, y, image_width, destpixels[y]);
|
||||
}
|
||||
|
||||
for (y = 0; y < image_height; y++)
|
||||
|
@ -404,7 +404,7 @@ dialog (GimpDrawable *mangle)
|
|||
TRUE, TRUE, 0);
|
||||
gtk_widget_show (main_vbox);
|
||||
|
||||
preview = gimp_fixme_preview_new (mangle, TRUE);
|
||||
preview = gimp_old_preview_new (mangle, TRUE);
|
||||
gtk_box_pack_start (GTK_BOX (main_vbox), preview->frame, FALSE, FALSE, 0);
|
||||
filter_preview();
|
||||
gtk_widget_show (preview->widget);
|
||||
|
|
|
@ -378,7 +378,7 @@ static globals_t globals =
|
|||
};
|
||||
|
||||
/* preview globals */
|
||||
static GimpFixMePreview *preview;
|
||||
static GimpOldPreview *preview;
|
||||
|
||||
MAIN ()
|
||||
|
||||
|
@ -547,7 +547,7 @@ jigsaw (gboolean preview_mode)
|
|||
|
||||
for (y = 0; y < preview->height; y++)
|
||||
{
|
||||
gimp_fixme_preview_do_row (preview, y, preview->width,
|
||||
gimp_old_preview_do_row (preview, y, preview->width,
|
||||
&buffer[preview->rowstride * y]);
|
||||
}
|
||||
|
||||
|
@ -2550,7 +2550,7 @@ dialog_box (void)
|
|||
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dlg)->vbox), main_hbox, TRUE, TRUE, 0);
|
||||
gtk_widget_show (main_hbox);
|
||||
|
||||
preview = gimp_fixme_preview_new (drawable, TRUE);
|
||||
preview = gimp_old_preview_new (drawable, TRUE);
|
||||
gtk_box_pack_start (GTK_BOX (main_hbox), preview->frame, FALSE, FALSE, 0);
|
||||
jigsaw(TRUE); /* render preview */
|
||||
gtk_widget_show (preview->widget);
|
||||
|
|
|
@ -82,7 +82,7 @@ static ValueType pvals =
|
|||
};
|
||||
|
||||
static GimpRunMode run_mode;
|
||||
static GimpFixMePreview *preview;
|
||||
static GimpOldPreview *preview;
|
||||
|
||||
MAIN ()
|
||||
|
||||
|
@ -217,7 +217,7 @@ main_function (GimpDrawable *drawable,
|
|||
|
||||
if (preview_mode)
|
||||
{
|
||||
gimp_fixme_preview_update (preview, max_rgb_func, ¶m);
|
||||
gimp_old_preview_update (preview, max_rgb_func, ¶m);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -260,7 +260,7 @@ dialog (GimpDrawable *drawable)
|
|||
TRUE, TRUE, 0);
|
||||
gtk_widget_show (main_vbox);
|
||||
|
||||
preview = gimp_fixme_preview_new (drawable, TRUE);
|
||||
preview = gimp_old_preview_new (drawable, TRUE);
|
||||
gtk_box_pack_start (GTK_BOX (main_vbox), preview->frame, FALSE, FALSE, 0);
|
||||
main_function (drawable, TRUE);
|
||||
gtk_widget_show (preview->widget);
|
||||
|
|
|
@ -63,7 +63,7 @@ typedef enum
|
|||
} FilterType;
|
||||
|
||||
static gint do_preview = TRUE;
|
||||
static GimpFixMePreview *preview;
|
||||
static GimpOldPreview *preview;
|
||||
|
||||
static GtkWidget * mw_preview_new (GtkWidget *parent,
|
||||
GimpDrawable *drawable);
|
||||
|
@ -420,7 +420,7 @@ nlfilt_do_preview (GtkWidget *w)
|
|||
/*
|
||||
We should probably fix the edges!
|
||||
*/
|
||||
gimp_fixme_preview_do_row (preview, y, preview->width, dst);
|
||||
gimp_old_preview_do_row (preview, y, preview->width, dst);
|
||||
src0 = src1; src1 = src2; src2 += rowsize;
|
||||
}
|
||||
|
||||
|
@ -461,7 +461,7 @@ mw_preview_new (GtkWidget *parent, GimpDrawable *drawable)
|
|||
gtk_box_pack_start (GTK_BOX (vbox), pframe, FALSE, FALSE, 0);
|
||||
gtk_widget_show (pframe);
|
||||
|
||||
preview = gimp_fixme_preview_new (drawable, FALSE);
|
||||
preview = gimp_old_preview_new (drawable, FALSE);
|
||||
gtk_container_add (GTK_CONTAINER (pframe), preview->widget);
|
||||
gtk_widget_show (preview->widget);
|
||||
|
||||
|
|
|
@ -100,7 +100,7 @@ static NoisifyInterface noise_int =
|
|||
};
|
||||
|
||||
static GimpRunMode run_mode;
|
||||
static GimpFixMePreview *preview;
|
||||
static GimpOldPreview *preview;
|
||||
|
||||
MAIN ()
|
||||
|
||||
|
@ -264,7 +264,7 @@ noisify (GimpDrawable *drawable,
|
|||
gr = g_rand_new ();
|
||||
|
||||
if (preview_mode)
|
||||
gimp_fixme_preview_update (preview, noisify_func, gr);
|
||||
gimp_old_preview_update (preview, noisify_func, gr);
|
||||
else
|
||||
gimp_rgn_iterate2 (drawable, run_mode, noisify_func, gr);
|
||||
|
||||
|
@ -320,10 +320,10 @@ noisify_dialog (GimpDrawable *drawable,
|
|||
gtk_widget_show (main_vbox);
|
||||
|
||||
/* preview */
|
||||
preview = gimp_fixme_preview_new (NULL, TRUE);
|
||||
preview = gimp_old_preview_new (NULL, TRUE);
|
||||
gtk_box_pack_start (GTK_BOX (main_vbox), preview->frame, FALSE, FALSE, 0);
|
||||
gtk_widget_show (preview->widget);
|
||||
gimp_fixme_preview_fill (preview, drawable);
|
||||
gimp_old_preview_fill (preview, drawable);
|
||||
noisify (drawable, TRUE); /* preview noisify */
|
||||
|
||||
/* parameter settings */
|
||||
|
|
|
@ -90,7 +90,7 @@ static char rcsid[] = "$Id$";
|
|||
GDK_BUTTON_PRESS_MASK | \
|
||||
GDK_BUTTON1_MOTION_MASK)
|
||||
|
||||
static GimpFixMePreview *preview;
|
||||
static GimpOldPreview *preview;
|
||||
static gboolean show_cursor = FALSE;
|
||||
|
||||
typedef struct
|
||||
|
@ -502,7 +502,7 @@ nova_center_create (GimpDrawable *drawable)
|
|||
0, 0, 0, 0);
|
||||
|
||||
/* PREVIEW */
|
||||
preview = gimp_fixme_preview_new (drawable, FALSE);
|
||||
preview = gimp_old_preview_new (drawable, FALSE);
|
||||
gtk_widget_set_events (preview->widget, PREVIEW_MASK);
|
||||
gtk_container_add (GTK_CONTAINER (pframe), preview->widget);
|
||||
gtk_widget_show (preview->widget);
|
||||
|
@ -871,7 +871,7 @@ nova (GimpDrawable *drawable,
|
|||
|
||||
src_row += preview->rowstride;
|
||||
|
||||
gimp_fixme_preview_do_row (preview, row, y2, dest_row);
|
||||
gimp_old_preview_do_row (preview, row, y2, dest_row);
|
||||
}
|
||||
|
||||
gtk_widget_queue_draw (preview->widget);
|
||||
|
|
|
@ -148,7 +148,7 @@ static PlasmaValues pvals =
|
|||
* Some globals to save passing too many paramaters that don't change.
|
||||
*/
|
||||
|
||||
static GimpFixMePreview *preview;
|
||||
static GimpOldPreview *preview;
|
||||
static gint ix1, iy1, ix2, iy2; /* Selected image size. */
|
||||
static gint bpp, alpha;
|
||||
static gboolean has_alpha;
|
||||
|
@ -311,7 +311,7 @@ plasma_dialog (GimpDrawable *drawable,
|
|||
main_vbox, TRUE, TRUE, 0);
|
||||
gtk_widget_show (main_vbox);
|
||||
|
||||
preview = gimp_fixme_preview_new2 (drawable_type, TRUE);
|
||||
preview = gimp_old_preview_new2 (drawable_type, TRUE);
|
||||
gtk_box_pack_start (GTK_BOX (main_vbox), preview->frame, FALSE, FALSE, 0);
|
||||
|
||||
plasma (drawable, TRUE); /* preview image */
|
||||
|
@ -483,7 +483,7 @@ get_pixel (GimpPixelFetcher *pft,
|
|||
}
|
||||
else
|
||||
{
|
||||
gimp_fixme_preview_get_pixel (preview, x, y, pixel);
|
||||
gimp_old_preview_get_pixel (preview, x, y, pixel);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -500,7 +500,7 @@ put_pixel (GimpPixelFetcher *pft,
|
|||
}
|
||||
else
|
||||
{
|
||||
gimp_fixme_preview_put_pixel (preview, x, y, pixel);
|
||||
gimp_old_preview_put_pixel (preview, x, y, pixel);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -93,7 +93,7 @@ typedef struct
|
|||
gint polrec;
|
||||
} polarize_vals_t;
|
||||
|
||||
static GimpFixMePreview *preview;
|
||||
static GimpOldPreview *preview;
|
||||
|
||||
/***** Prototypes *****/
|
||||
|
||||
|
@ -609,7 +609,7 @@ polarize_dialog (void)
|
|||
gtk_container_add (GTK_CONTAINER (abox), pframe);
|
||||
gtk_widget_show (pframe);
|
||||
|
||||
preview = gimp_fixme_preview_new (drawable, FALSE);
|
||||
preview = gimp_old_preview_new (drawable, FALSE);
|
||||
gtk_container_add (GTK_CONTAINER (pframe), preview->widget);
|
||||
gtk_widget_show (preview->widget);
|
||||
|
||||
|
@ -706,7 +706,7 @@ polarize_dialog (void)
|
|||
|
||||
gtk_widget_destroy (dialog);
|
||||
|
||||
gimp_fixme_preview_free (preview);
|
||||
gimp_old_preview_free (preview);
|
||||
|
||||
return run;
|
||||
}
|
||||
|
@ -776,7 +776,7 @@ dialog_update_preview (void)
|
|||
px += dx;
|
||||
}
|
||||
|
||||
gimp_fixme_preview_do_row (preview, y, preview->width, buffer);
|
||||
gimp_old_preview_do_row (preview, y, preview->width, buffer);
|
||||
|
||||
py += dy;
|
||||
}
|
||||
|
|
|
@ -56,7 +56,7 @@ typedef struct
|
|||
|
||||
/* preview stuff -- to be removed as soon as we have a real libgimp preview */
|
||||
static gint do_preview = TRUE;
|
||||
static GimpFixMePreview *preview;
|
||||
static GimpOldPreview *preview;
|
||||
|
||||
static GtkWidget *mw_preview_new (GtkWidget *parent,
|
||||
GimpDrawable *drawable);
|
||||
|
@ -409,7 +409,7 @@ waves_do_preview (void)
|
|||
|
||||
for (y = 0; y < preview->height; y++)
|
||||
{
|
||||
gimp_fixme_preview_do_row (preview, y, preview->width,
|
||||
gimp_old_preview_do_row (preview, y, preview->width,
|
||||
dst + y * preview->rowstride);
|
||||
}
|
||||
|
||||
|
@ -450,9 +450,9 @@ mw_preview_new (GtkWidget *parent, GimpDrawable *drawable)
|
|||
gtk_box_pack_start (GTK_BOX (vbox), pframe, FALSE, FALSE, 0);
|
||||
gtk_widget_show (pframe);
|
||||
|
||||
preview = gimp_fixme_preview_new (drawable, FALSE);
|
||||
/* FIXME: this forces gimp_fixme_preview to set its alpha correctly */
|
||||
gimp_fixme_preview_fill_scaled (preview, drawable);
|
||||
preview = gimp_old_preview_new (drawable, FALSE);
|
||||
/* FIXME: this forces gimp_old_preview to set its alpha correctly */
|
||||
gimp_old_preview_fill_scaled (preview, drawable);
|
||||
gtk_container_add (GTK_CONTAINER (pframe), preview->widget);
|
||||
gtk_widget_show (preview->widget);
|
||||
|
||||
|
|
|
@ -161,7 +161,7 @@ config_t config =
|
|||
LEADING /* abs(derivative); */
|
||||
};
|
||||
|
||||
static GimpFixMePreview *preview;
|
||||
static GimpOldPreview *preview;
|
||||
|
||||
MAIN ()
|
||||
|
||||
|
@ -355,7 +355,7 @@ render_blast (GimpDrawable *drawable,
|
|||
|
||||
if (preview_mode)
|
||||
{
|
||||
gimp_fixme_preview_do_row(preview, row, width, buffer);
|
||||
gimp_old_preview_do_row(preview, row, width, buffer);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -376,7 +376,7 @@ render_blast (GimpDrawable *drawable,
|
|||
if (preview_mode)
|
||||
{
|
||||
memcpy (buffer, preview->cache + (row * row_stride), row_stride);
|
||||
gimp_fixme_preview_do_row(preview, row, width, buffer);
|
||||
gimp_old_preview_do_row(preview, row, width, buffer);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -472,7 +472,7 @@ render_wind (GimpDrawable *drawable,
|
|||
|
||||
if (preview_mode)
|
||||
{
|
||||
gimp_fixme_preview_do_row(preview, row, width, sb);
|
||||
gimp_old_preview_do_row(preview, row, width, sb);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -882,8 +882,8 @@ dialog_box (GimpDrawable *drawable)
|
|||
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dlg)->vbox), vbox, TRUE, TRUE, 0);
|
||||
gtk_widget_show (vbox);
|
||||
|
||||
preview = gimp_fixme_preview_new (NULL, TRUE);
|
||||
gimp_fixme_preview_fill (preview, drawable);
|
||||
preview = gimp_old_preview_new (NULL, TRUE);
|
||||
gimp_old_preview_fill (preview, drawable);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), preview->frame, FALSE, FALSE, 0);
|
||||
render_effect (drawable, TRUE);
|
||||
gtk_widget_show (preview->widget);
|
||||
|
|
Loading…
Reference in New Issue