Commit a1d5f3ab authored by Manish Singh's avatar Manish Singh
Browse files

app/colormaps.c app/devices.h minor cleanups

* app/colormaps.c
* app/devices.h
* app/tips_dialog.h: minor cleanups

* app/gimpimage.c: the dirty/clean handling seemed weird, and wasn't
correct in all cases. Just do a straight increment/decrement to
try to fix it.

-Yosh
parent 092ea1e3
Wed Jan 13 16:12:35 PST 1999 Manish Singh <yosh@gimp.org>
* app/colormaps.c
* app/devices.h
* app/tips_dialog.h: minor cleanups
* app/gimpimage.c: the dirty/clean handling seemed weird, and wasn't
correct in all cases. Just do a straight increment/decrement to
try to fix it.
Thu Jan 14 00:02:56 MET 1999 Sven Neumann <sven@gimp.org>
* acconfig.h
......
......@@ -72,7 +72,7 @@ static void make_color (gulong *pixel_ptr,
int readwrite);
static void
set_app_colors ()
set_app_colors (void)
{
cycled_marching_ants = FALSE;
......
......@@ -2822,9 +2822,9 @@ gimp_image_disable_undo (GimpImage *gimage)
int
gimp_image_dirty (GimpImage *gimage)
{
if (gimage->dirty < 0)
/* if (gimage->dirty < 0)
gimage->dirty = 2;
else
else */
gimage->dirty ++;
gtk_signal_emit(GTK_OBJECT(gimage), gimp_image_signals[DIRTY]);
......@@ -2834,9 +2834,9 @@ gimp_image_dirty (GimpImage *gimage)
int
gimp_image_clean (GimpImage *gimage)
{
if (gimage->dirty <= 0)
/* if (gimage->dirty <= 0)
gimage->dirty = 0;
else
else */
gimage->dirty --;
return gimage->dirty;
}
......
......@@ -2822,9 +2822,9 @@ gimp_image_disable_undo (GimpImage *gimage)
int
gimp_image_dirty (GimpImage *gimage)
{
if (gimage->dirty < 0)
/* if (gimage->dirty < 0)
gimage->dirty = 2;
else
else */
gimage->dirty ++;
gtk_signal_emit(GTK_OBJECT(gimage), gimp_image_signals[DIRTY]);
......@@ -2834,9 +2834,9 @@ gimp_image_dirty (GimpImage *gimage)
int
gimp_image_clean (GimpImage *gimage)
{
if (gimage->dirty <= 0)
/* if (gimage->dirty <= 0)
gimage->dirty = 0;
else
else */
gimage->dirty --;
return gimage->dirty;
}
......
......@@ -2822,9 +2822,9 @@ gimp_image_disable_undo (GimpImage *gimage)
int
gimp_image_dirty (GimpImage *gimage)
{
if (gimage->dirty < 0)
/* if (gimage->dirty < 0)
gimage->dirty = 2;
else
else */
gimage->dirty ++;
gtk_signal_emit(GTK_OBJECT(gimage), gimp_image_signals[DIRTY]);
......@@ -2834,9 +2834,9 @@ gimp_image_dirty (GimpImage *gimage)
int
gimp_image_clean (GimpImage *gimage)
{
if (gimage->dirty <= 0)
/* if (gimage->dirty <= 0)
gimage->dirty = 0;
else
else */
gimage->dirty --;
return gimage->dirty;
}
......
......@@ -2822,9 +2822,9 @@ gimp_image_disable_undo (GimpImage *gimage)
int
gimp_image_dirty (GimpImage *gimage)
{
if (gimage->dirty < 0)
/* if (gimage->dirty < 0)
gimage->dirty = 2;
else
else */
gimage->dirty ++;
gtk_signal_emit(GTK_OBJECT(gimage), gimp_image_signals[DIRTY]);
......@@ -2834,9 +2834,9 @@ gimp_image_dirty (GimpImage *gimage)
int
gimp_image_clean (GimpImage *gimage)
{
if (gimage->dirty <= 0)
/* if (gimage->dirty <= 0)
gimage->dirty = 0;
else
else */
gimage->dirty --;
return gimage->dirty;
}
......
......@@ -2822,9 +2822,9 @@ gimp_image_disable_undo (GimpImage *gimage)
int
gimp_image_dirty (GimpImage *gimage)
{
if (gimage->dirty < 0)
/* if (gimage->dirty < 0)
gimage->dirty = 2;
else
else */
gimage->dirty ++;
gtk_signal_emit(GTK_OBJECT(gimage), gimp_image_signals[DIRTY]);
......@@ -2834,9 +2834,9 @@ gimp_image_dirty (GimpImage *gimage)
int
gimp_image_clean (GimpImage *gimage)
{
if (gimage->dirty <= 0)
/* if (gimage->dirty <= 0)
gimage->dirty = 0;
else
else */
gimage->dirty --;
return gimage->dirty;
}
......
......@@ -2822,9 +2822,9 @@ gimp_image_disable_undo (GimpImage *gimage)
int
gimp_image_dirty (GimpImage *gimage)
{
if (gimage->dirty < 0)
/* if (gimage->dirty < 0)
gimage->dirty = 2;
else
else */
gimage->dirty ++;
gtk_signal_emit(GTK_OBJECT(gimage), gimp_image_signals[DIRTY]);
......@@ -2834,9 +2834,9 @@ gimp_image_dirty (GimpImage *gimage)
int
gimp_image_clean (GimpImage *gimage)
{
if (gimage->dirty <= 0)
/* if (gimage->dirty <= 0)
gimage->dirty = 0;
else
else */
gimage->dirty --;
return gimage->dirty;
}
......
......@@ -2822,9 +2822,9 @@ gimp_image_disable_undo (GimpImage *gimage)
int
gimp_image_dirty (GimpImage *gimage)
{
if (gimage->dirty < 0)
/* if (gimage->dirty < 0)
gimage->dirty = 2;
else
else */
gimage->dirty ++;
gtk_signal_emit(GTK_OBJECT(gimage), gimp_image_signals[DIRTY]);
......@@ -2834,9 +2834,9 @@ gimp_image_dirty (GimpImage *gimage)
int
gimp_image_clean (GimpImage *gimage)
{
if (gimage->dirty <= 0)
/* if (gimage->dirty <= 0)
gimage->dirty = 0;
else
else */
gimage->dirty --;
return gimage->dirty;
}
......
......@@ -60,7 +60,7 @@ void devices_rc_update (gchar *name, DeviceValues values,
void device_status_free (void);
/* Restores device settings from rc file */
void devices_restore();
void devices_restore (void);
/* Current device id */
extern int current_device;
......
......@@ -2,7 +2,7 @@
#define __TIPS_DIALOG_H__
void tips_dialog_create ();
void tips_dialog_create (void);
#endif /* __TIPS_DIALOG_H__ */
......@@ -2822,9 +2822,9 @@ gimp_image_disable_undo (GimpImage *gimage)
int
gimp_image_dirty (GimpImage *gimage)
{
if (gimage->dirty < 0)
/* if (gimage->dirty < 0)
gimage->dirty = 2;
else
else */
gimage->dirty ++;
gtk_signal_emit(GTK_OBJECT(gimage), gimp_image_signals[DIRTY]);
......@@ -2834,9 +2834,9 @@ gimp_image_dirty (GimpImage *gimage)
int
gimp_image_clean (GimpImage *gimage)
{
if (gimage->dirty <= 0)
/* if (gimage->dirty <= 0)
gimage->dirty = 0;
else
else */
gimage->dirty --;
return gimage->dirty;
}
......
......@@ -2,7 +2,7 @@
#define __TIPS_DIALOG_H__
void tips_dialog_create ();
void tips_dialog_create (void);
#endif /* __TIPS_DIALOG_H__ */
......@@ -2,7 +2,7 @@
#define __TIPS_DIALOG_H__
void tips_dialog_create ();
void tips_dialog_create (void);
#endif /* __TIPS_DIALOG_H__ */
......@@ -60,7 +60,7 @@ void devices_rc_update (gchar *name, DeviceValues values,
void device_status_free (void);
/* Restores device settings from rc file */
void devices_restore();
void devices_restore (void);
/* Current device id */
extern int current_device;
......
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