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
This commit is contained in:
Manish Singh 1999-01-14 00:17:13 +00:00
parent 092ea1e3d7
commit a1d5f3abba
15 changed files with 48 additions and 38 deletions

View File

@ -1,3 +1,13 @@
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

View File

@ -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;

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;

View File

@ -2,7 +2,7 @@
#define __TIPS_DIALOG_H__
void tips_dialog_create ();
void tips_dialog_create (void);
#endif /* __TIPS_DIALOG_H__ */

View File

@ -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;
}

View File

@ -2,7 +2,7 @@
#define __TIPS_DIALOG_H__
void tips_dialog_create ();
void tips_dialog_create (void);
#endif /* __TIPS_DIALOG_H__ */

View File

@ -2,7 +2,7 @@
#define __TIPS_DIALOG_H__
void tips_dialog_create ();
void tips_dialog_create (void);
#endif /* __TIPS_DIALOG_H__ */

View File

@ -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;