Commit 86681c8d authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

ported to gstdio, removed unnecessary includes.

2005-03-04  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/*: ported to gstdio, removed unnecessary includes.
parent 56d285db
2005-03-04 Sven Neumann <sven@gimp.org>
* plug-ins/common/*: ported to gstdio, removed unnecessary includes.
2005-03-04 Sven Neumann <sven@gimp.org>
* plug-ins/FractalExplorer
......
......@@ -53,8 +53,6 @@
#include <stdlib.h>
#include <string.h>
#include <gtk/gtk.h>
#include <libgimp/gimp.h>
#include <libgimp/gimpui.h>
......
......@@ -28,14 +28,13 @@
#include <glib/gstdio.h>
#include <gtk/gtk.h>
#include <libgimp/gimp.h>
#include "bmp.h"
#include "libgimp/stdplugins-intl.h"
#if !defined(WIN32) || defined(__MINGW32__)
#define BI_RGB 0
#define BI_RLE8 1
......
......@@ -34,8 +34,6 @@
#include <glib/gstdio.h>
#include <gtk/gtk.h>
#include <libgimp/gimp.h>
#include <libgimp/gimpui.h>
......@@ -43,6 +41,7 @@
#include "libgimp/stdplugins-intl.h"
static gint cur_progress = 0;
static gint max_progress = 0;
static gint encoded = 0;
......
......@@ -27,11 +27,6 @@
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <gtk/gtk.h>
#include <libgimp/gimp.h>
#include <libgimp/gimpui.h>
......
......@@ -22,17 +22,13 @@
* Possible future additions:
* + Save (perhaps optionally?) the palette in a KCF
*/
#include "config.h"
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <gtk/gtk.h>
#include <glib/gstdio.h>
#include <libgimp/gimp.h>
#include <libgimp/gimpui.h>
......@@ -298,7 +294,7 @@ load_image (const gchar *file,
/* Open the file for reading */
fp = fopen (file, "r");
fp = g_fopen (file, "r");
if (fp == NULL)
{
......@@ -570,7 +566,7 @@ save_image (const gchar *file,
drawable = gimp_drawable_get (layer);
/* Open the file for writing */
fp = fopen (file, "w");
fp = g_fopen (file, "w");
if (fp == NULL)
{
......
......@@ -72,11 +72,10 @@
#include "config.h"
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <gtk/gtk.h>
#include <glib/gstdio.h>
#include <libgimp/gimp.h>
#include <libgimp/gimpui.h>
......@@ -1999,7 +1998,7 @@ CML_save_to_file_response (GtkWidget *dialog,
! force_overwrite (filename, dialog))
return;
file = fopen (filename, "w");
file = g_fopen (filename, "w");
if (! file)
{
......@@ -2214,7 +2213,7 @@ CML_load_parameter_file (const gchar *filename,
gint seed = 0;
gint old2new_function_id[] = { 3, 4, 5, 6, 7, 9, 10, 11, 1, 2 };
file = fopen (filename, "r");
file = g_fopen (filename, "r");
if (!file)
{
......
......@@ -29,9 +29,8 @@
#include "config.h"
#include <string.h>
#include <aalib.h>
#include <gtk/gtk.h>
#include <aalib.h>
#include <libgimp/gimp.h>
#include <libgimp/gimpui.h>
......
......@@ -21,8 +21,6 @@
#include "config.h"
#include <gtk/gtk.h>
#include <libgimp/gimp.h>
#include <libgimp/gimpui.h>
......
......@@ -46,12 +46,8 @@
#include "config.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <gtk/gtk.h>
#include <libgimp/gimp.h>
#include <libgimp/gimpui.h>
......@@ -604,7 +600,7 @@ render_frame (gint32 whichframe)
{
printf( "playback: Asked for frame number %d in a %d-frame animation!\n",
(int) (whichframe+1), (int) total_frames);
exit(-1);
gimp_quit ();
}
drawable = gimp_drawable_get (layers[total_frames-(whichframe+1)]);
......
......@@ -30,8 +30,6 @@
#include "config.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <libgimp/gimp.h>
......
......@@ -39,8 +39,6 @@
#include "config.h"
#include <gtk/gtk.h>
#include <libgimp/gimp.h>
#include <libgimp/gimpui.h>
......
......@@ -34,8 +34,6 @@
#include <string.h>
#include <gtk/gtk.h>
#include <libgimp/gimp.h>
#include <libgimp/gimpui.h>
......
......@@ -17,9 +17,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include <gtk/gtk.h>
#include "config.h"
#include <libgimp/gimp.h>
#include <libgimp/gimpui.h>
......
......@@ -102,14 +102,7 @@
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <gtk/gtk.h>
#include <libgimp/gimp.h>
#include <libgimp/gimpui.h>
......
......@@ -26,15 +26,15 @@
#include "config.h"
#include <string.h>
#include <sys/stat.h>
#include <gtk/gtk.h>
#include <glib/gstdio.h>
#include <libgimp/gimp.h>
#include <libgimp/gimpui.h>
#include "libgimp/stdplugins-intl.h"
/* lets prototype */
static void query (void);
static void run (const gchar *name,
......@@ -394,7 +394,7 @@ doDialog (void)
doLabel (vbox, _("Uncompressed size: %s"), memsize);
g_free (memsize);
if (filename && !stat (filename, &st) && !gimp_image_is_dirty (imageID))
if (filename && !g_stat (filename, &st) && !gimp_image_is_dirty (imageID))
{
gchar *memsize = gimp_memsize_to_string (st.st_size);
......
......@@ -27,18 +27,10 @@
#include "config.h"
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <gtk/gtk.h>
#include <glib/gstdio.h>
#ifdef G_OS_WIN32
#include <libgimpbase/gimpwin32-io.h>
#endif
#include <libgimpmath/gimpmath.h>
#include <libgimp/gimp.h>
#include <libgimp/gimpui.h>
......@@ -920,7 +912,7 @@ cm_load_file_response_callback (GtkWidget *dialog,
filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (dialog));
fp = fopen (filename, "r");
fp = g_fopen (filename, "r");
if (fp)
{
......@@ -1054,7 +1046,7 @@ cm_save_file_response_callback (GtkWidget *dialog,
return;
}
file = fopen (filename, "w");
file = g_fopen (filename, "w");
if (! file)
{
......
......@@ -21,8 +21,6 @@
#include "config.h"
#include <gtk/gtk.h>
#include <libgimp/gimp.h>
#include <libgimp/gimpui.h>
......
......@@ -23,9 +23,6 @@
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <libgimp/gimp.h>
#include <libgimp/gimpui.h>
......
......@@ -29,15 +29,10 @@
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <gtk/gtk.h>
#include <libgimp/gimp.h>
#include <libgimp/gimpui.h>
#include <libgimpmath/gimpmath.h>
#include "libgimp/stdplugins-intl.h"
......
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