Commit 011f2c33 authored by Manish Singh's avatar Manish Singh

refresh the open/save as dialogs upon open

* app/fileops.c: refresh the open/save as dialogs upon open

* applied gimp-quinet-980323-0, fixing more M_PI madness

* applied gimp-quinet-980323-1 which fixes redundant inline checks

* plug-ins/gfig/gfig.c: changed stipple to type unsigned char to quell warnings

-Yosh
parent 3d7379ba
Tue Mar 24 20:32:53 PST 1998 Manish Singh <yosh@gimp.org>
* app/fileops.c: refresh the open/save as dialogs upon open
* applied gimp-quinet-980323-0, fixing more M_PI madness
* applied gimp-quinet-980323-1 which fixes redundant inline
checks
* plug-ins/gfig/gfig.c: changed stipple to type unsigned char to
quell warnings
Tue Mar 24 18:03:37 PST 1998 Manish Singh <yosh@gimp.org>
* configure.in: corrected test for libXmu for some systems; added
......
......@@ -488,6 +488,7 @@ file_open_callback (GtkWidget *w,
if (GTK_WIDGET_VISIBLE (fileload))
return;
gtk_file_selection_set_filename (GTK_FILE_SELECTION(fileload), ".");
gtk_window_set_title (GTK_WINDOW (fileload), "Load Image");
}
......@@ -578,6 +579,7 @@ file_save_as_callback (GtkWidget *w,
if (GTK_WIDGET_VISIBLE (filesave))
return;
gtk_file_selection_set_filename (GTK_FILE_SELECTION(filesave), ".");
gtk_window_set_title (GTK_WINDOW (filesave), "Save Image");
}
......@@ -954,7 +956,7 @@ file_overwrite (char *filename, char* raw_filename)
overwrite_box->full_filename = filename;
overwrite_box->raw_filename = raw_filename;
overwrite_box->obox = gtk_dialog_new ();
gtk_window_set_wmclass (GTK_WINDOW (overwrite_box->obox), "fiel_exists", "Gimp");
gtk_window_set_wmclass (GTK_WINDOW (overwrite_box->obox), "file_exists", "Gimp");
gtk_window_set_title (GTK_WINDOW (overwrite_box->obox), "File Exists!");
gtk_window_position (GTK_WINDOW (overwrite_box->obox), GTK_WIN_POS_MOUSE);
......
......@@ -12,9 +12,6 @@
/* Define if you have the vprintf function. */
#undef HAVE_VPRINTF
/* Define as __inline if that's what the C compiler calls it. */
#undef inline
/* Define to `int' if <sys/types.h> doesn't define. */
#undef pid_t
......
......@@ -218,9 +218,6 @@ if test $gimp_ok = no; then
AC_DEFINE(NO_FD_SET)
fi
dnl TVM: check for compiler characteristics
AC_C_INLINE
dnl Check for random number functions
AC_CHECK_FUNC(random,
AC_DEFINE(RAND_FUNC, random) AC_DEFINE(SRAND_FUNC, srandom),
......
......@@ -50,12 +50,6 @@
#include <libgimp/gimpui.h>
#include <string.h>
#ifdef __GNUC__
#define inline inline
#else
#define inline
#endif
/*
* Constants...
*/
......
......@@ -35,12 +35,6 @@
#include <gtk/gtk.h>
#include <plug-ins/megawidget/megawidget.h>
#ifdef __GNUC__
#define inline inline
#else
#define inline
#endif
static mw_preview_t nlfilt_do_preview;
struct Grgb {
......
......@@ -60,6 +60,10 @@
#define M_PI 3.14159265358979323846
#endif /* M_PI */
#ifndef M_PI_2
#define M_PI_2 1.57079632679489661923
#endif /* M_PI_2 */
#define PLUG_IN_NAME "plug_in_whirl_pinch"
#define PLUG_IN_VERSION "May 1997, 2.09"
......
......@@ -16,12 +16,6 @@
#include "libgimp/gimp.h"
#include "gtk/gtk.h"
#ifdef __GNUC__
#define inline inline
#else
#define inline
#endif
/* Declare local functions. */
static void query(void);
static void run(char *name,
......
......@@ -50,12 +50,6 @@
#include <libgimp/gimpui.h>
#include <string.h>
#ifdef __GNUC__
#define inline inline
#else
#define inline
#endif
/*
* Constants...
*/
......
......@@ -89,9 +89,17 @@
#define BRUSH_PREVIEW_SZ 32
#define GFIG_HEADER "GFIG Version 0.1\n"
#define TRUE 1
#ifndef FALSE
#define FALSE 0
#endif
#ifndef TRUE
#define TRUE 1
#endif
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
#define PREVIEW_MASK GDK_EXPOSURE_MASK | \
GDK_MOTION_NOTIFY | \
......@@ -4562,7 +4570,7 @@ gfig_grid_colours(GtkWidget *w,GdkColormap *cmap)
GdkGCValues values;
GdkColor new_col1;
GdkColor new_col2;
char stipple[8] =
unsigned char stipple[8] =
{
0xAA, /* ####---- */
0x55, /* ###----# */
......
......@@ -56,12 +56,6 @@
#include "gtk/gtk.h"
#include "libgimp/gimp.h"
#ifdef __GNUC__
#define inline inline
#else
#define inline
#endif
static void query (void);
static void run (char *name,
int nparams,
......
......@@ -33,6 +33,10 @@
#define M_PI 3.14159265358979323846
#endif
#ifndef M_PI_2
#define M_PI_2 1.57079632679489661923
#endif
#define EPSILON 1.0e-5
#endif
......@@ -35,12 +35,6 @@
#include <gtk/gtk.h>
#include <plug-ins/megawidget/megawidget.h>
#ifdef __GNUC__
#define inline inline
#else
#define inline
#endif
static mw_preview_t nlfilt_do_preview;
struct Grgb {
......
......@@ -42,12 +42,6 @@
#include "sinus_logo.h"
#endif
#ifdef __GNUC__
#define inline inline
#else
#define inline
#endif
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
......
......@@ -60,6 +60,10 @@
#define M_PI 3.14159265358979323846
#endif /* M_PI */
#ifndef M_PI_2
#define M_PI_2 1.57079632679489661923
#endif /* M_PI_2 */
#define PLUG_IN_NAME "plug_in_whirl_pinch"
#define PLUG_IN_VERSION "May 1997, 2.09"
......
......@@ -16,12 +16,6 @@
#include "libgimp/gimp.h"
#include "gtk/gtk.h"
#ifdef __GNUC__
#define inline inline
#else
#define inline
#endif
/* Declare local functions. */
static void query(void);
static void run(char *name,
......
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