Commit 8d18f873 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

renamed...

2008-05-10  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/gtm.c: renamed...

	* plug-ins/common/html-table.c: ...to this and cleaned it up.

	* plugin-defs.pl: changed accordingly.
	* Makefile.am: regenerated.


svn path=/trunk/; revision=25612
parent e76b7916
2008-05-10 Michael Natterer <mitch@gimp.org>
* plug-ins/common/gtm.c: renamed...
* plug-ins/common/html-table.c: ...to this and cleaned it up.
* plugin-defs.pl: changed accordingly.
* Makefile.am: regenerated.
2008-05-10 Manish Singh <yosh@gimp.org>
* plug-ins/common/poppler.c: Support poppler 0.8.x.
......
......@@ -101,10 +101,10 @@ libexec_PROGRAMS = \
glob \
gradient-map \
grid \
gtm \
guillotine \
header \
hot \
html-table \
illusion \
iwarp \
jigsaw \
......@@ -1210,22 +1210,6 @@ grid_LDADD = \
$(RT_LIBS) \
$(INTLLIBS)
gtm_SOURCES = \
gtm.c
gtm_LDADD = \
$(libgimpui) \
$(libgimpwidgets) \
$(libgimpmodule) \
$(libgimp) \
$(libgimpmath) \
$(libgimpconfig) \
$(libgimpcolor) \
$(libgimpbase) \
$(GTK_LIBS) \
$(RT_LIBS) \
$(INTLLIBS)
guillotine_SOURCES = \
guillotine.c
......@@ -1271,6 +1255,22 @@ hot_LDADD = \
$(RT_LIBS) \
$(INTLLIBS)
html_table_SOURCES = \
html-table.c
html_table_LDADD = \
$(libgimpui) \
$(libgimpwidgets) \
$(libgimpmodule) \
$(libgimp) \
$(libgimpmath) \
$(libgimpconfig) \
$(libgimpcolor) \
$(libgimpbase) \
$(GTK_LIBS) \
$(RT_LIBS) \
$(INTLLIBS)
illusion_SOURCES = \
illusion.c
......
......@@ -62,23 +62,23 @@
#define SAVE_PROC "file-gtm-save"
#define PLUG_IN_BINARY "gtm"
#define PLUG_IN_BINARY "html-table"
/* Typedefs */
typedef struct
{
gchar captiontxt[256];
gchar cellcontent[256];
gchar clwidth[256];
gchar clheight[256];
gint fulldoc;
gint caption;
gint border;
gint spantags;
gint tdcomp;
gint cellpadding;
gint cellspacing;
gchar captiontxt[256];
gchar cellcontent[256];
gchar clwidth[256];
gchar clheight[256];
gboolean fulldoc;
gboolean caption;
gint border;
gboolean spantags;
gboolean tdcomp;
gint cellpadding;
gint cellspacing;
} GTMValues;
/* Variables */
......@@ -87,40 +87,40 @@ static GTMValues gtmvals =
{
"Made with GIMP Table Magic", /* caption text */
"&nbsp;", /* cellcontent text */
"", /* cell width text */
"", /* cell height text */
1, /* fulldoc */
0, /* caption */
2, /* border */
0, /* spantags */
0, /* tdcomp */
4, /* cellpadding */
0 /* cellspacing */
"", /* cell width text */
"", /* cell height text */
TRUE, /* fulldoc */
FALSE, /* caption */
2, /* border */
FALSE, /* spantags */
FALSE, /* tdcomp */
4, /* cellpadding */
0 /* cellspacing */
};
/* Declare some local functions */
static void query (void);
static void run (const gchar *name,
gint nparams,
const GimpParam *param,
gint *nreturn_vals,
GimpParam **return_vals);
static gboolean save_image (const gchar *filename,
GimpDrawable *drawable);
static gboolean save_dialog (gint32 image_ID);
static gboolean color_comp (guchar *buffer,
guchar *buf2);
static void gtm_caption_callback (GtkWidget *widget,
gpointer data);
static void gtm_cellcontent_callback (GtkWidget *widget,
gpointer data);
static void gtm_clwidth_callback (GtkWidget *widget,
gpointer data);
static void gtm_clheight_callback (GtkWidget *widget,
gpointer data);
static void query (void);
static void run (const gchar *name,
gint nparams,
const GimpParam *param,
gint *nreturn_vals,
GimpParam **return_vals);
static gboolean save_image (const gchar *filename,
GimpDrawable *drawable);
static gboolean save_dialog (gint32 image_ID);
static gboolean color_comp (guchar *buffer,
guchar *buf2);
static void gtm_caption_callback (GtkWidget *widget,
gpointer data);
static void gtm_cellcontent_callback (GtkWidget *widget,
gpointer data);
static void gtm_clwidth_callback (GtkWidget *widget,
gpointer data);
static void gtm_clheight_callback (GtkWidget *widget,
gpointer data);
const GimpPlugInInfo PLUG_IN_INFO =
......@@ -265,10 +265,10 @@ save_image (const gchar *filename,
{
height = g_strdup_printf (" HEIGHT=\"%s\" ", gtmvals.clheight);
}
if (! width)
width = g_strdup (" ");
if (! height)
height = g_strdup (" ");
......@@ -651,7 +651,9 @@ static gboolean
color_comp (guchar *buffer,
guchar *buf2)
{
return buffer[0] == buf2[0] && buffer[1] == buf2[1] && buffer[2] == buf2[2];
return (buffer[0] == buf2[0] &&
buffer[1] == buf2[1] &&
buffer[2] == buf2[2]);
}
/* Save interface functions */
......
......@@ -64,10 +64,10 @@
'glob' => {},
'gradient-map' => {},
'grid' => { ui => 1 },
'gtm' => { ui => 1 },
'guillotine' => {},
'header' => { ui => 1 },
'hot' => { ui => 1 },
'html-table' => { ui => 1 },
'illusion' => { ui => 1 },
'iwarp' => { ui => 1 },
'jigsaw' => { ui => 1 },
......
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