mirror of https://github.com/GNOME/gimp.git
The file revert operation clears the undo stack upon a revert to get rid
Sat Mar 20 22:51:51 GMT 1999 Adam D. Moss <adam@gimp.org> * fileops.c: The file revert operation clears the undo stack upon a revert to get rid of the actions causedby the open operation.
This commit is contained in:
parent
fae775c386
commit
7e06d78af7
|
@ -1,3 +1,9 @@
|
|||
Sat Mar 20 22:51:51 GMT 1999 Adam D. Moss <adam@gimp.org>
|
||||
|
||||
* fileops.c: The file revert operation clears the undo stack
|
||||
upon a revert to get rid of the actions causedby the open
|
||||
operation.
|
||||
|
||||
Sat Mar 20 21:55:53 GMT 1999 Adam D. Moss <adam@gimp.org>
|
||||
|
||||
* disp_callbacks.c: Reduce some possibly-redundant re-renders
|
||||
|
|
|
@ -643,8 +643,6 @@ gdisplay_flush_whenever (GDisplay *gdisp, gboolean now)
|
|||
void
|
||||
gdisplay_flush (GDisplay *gdisp)
|
||||
{
|
||||
g_warning("gdisplay_flush");
|
||||
|
||||
/* Redraw on idle time */
|
||||
gdisplay_flush_whenever (gdisp, FALSE);
|
||||
}
|
||||
|
@ -652,8 +650,6 @@ gdisplay_flush (GDisplay *gdisp)
|
|||
void
|
||||
gdisplay_flush_now (GDisplay *gdisp)
|
||||
{
|
||||
g_warning("gdisplay_flush_now");
|
||||
|
||||
/* Redraw NOW */
|
||||
gdisplay_flush_whenever (gdisp, TRUE);
|
||||
}
|
||||
|
@ -2073,14 +2069,12 @@ gdisplays_flush_whenever (gboolean now)
|
|||
void
|
||||
gdisplays_flush (void)
|
||||
{
|
||||
g_warning("gdisplays_flush");
|
||||
gdisplays_flush_whenever (FALSE);
|
||||
}
|
||||
|
||||
void
|
||||
gdisplays_flush_now (void)
|
||||
{
|
||||
g_warning("gdisplays_flush_now");
|
||||
gdisplays_flush_whenever (TRUE);
|
||||
}
|
||||
|
||||
|
|
|
@ -643,8 +643,6 @@ gdisplay_flush_whenever (GDisplay *gdisp, gboolean now)
|
|||
void
|
||||
gdisplay_flush (GDisplay *gdisp)
|
||||
{
|
||||
g_warning("gdisplay_flush");
|
||||
|
||||
/* Redraw on idle time */
|
||||
gdisplay_flush_whenever (gdisp, FALSE);
|
||||
}
|
||||
|
@ -652,8 +650,6 @@ gdisplay_flush (GDisplay *gdisp)
|
|||
void
|
||||
gdisplay_flush_now (GDisplay *gdisp)
|
||||
{
|
||||
g_warning("gdisplay_flush_now");
|
||||
|
||||
/* Redraw NOW */
|
||||
gdisplay_flush_whenever (gdisp, TRUE);
|
||||
}
|
||||
|
@ -2073,14 +2069,12 @@ gdisplays_flush_whenever (gboolean now)
|
|||
void
|
||||
gdisplays_flush (void)
|
||||
{
|
||||
g_warning("gdisplays_flush");
|
||||
gdisplays_flush_whenever (FALSE);
|
||||
}
|
||||
|
||||
void
|
||||
gdisplays_flush_now (void)
|
||||
{
|
||||
g_warning("gdisplays_flush_now");
|
||||
gdisplays_flush_whenever (TRUE);
|
||||
}
|
||||
|
||||
|
|
|
@ -52,6 +52,7 @@
|
|||
#include "procedural_db.h"
|
||||
#include "gimprc.h"
|
||||
#include "docindex.h"
|
||||
#include "undo.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
|
@ -828,8 +829,13 @@ file_revert_callback (GtkWidget *w,
|
|||
filename = gimage_filename (gdisplay->gimage);
|
||||
raw_filename = g_basename (filename);
|
||||
|
||||
if ((gimage = file_open_image (filename, raw_filename, RUN_INTERACTIVE)) != NULL)
|
||||
gdisplay_reconnect (gdisplay, gimage);
|
||||
gimage = file_open_image (filename, raw_filename, RUN_INTERACTIVE);
|
||||
|
||||
if (gimage != NULL)
|
||||
{
|
||||
undo_free (gimage);
|
||||
gdisplay_reconnect (gdisplay, gimage);
|
||||
}
|
||||
else
|
||||
g_message (_("Revert failed."));
|
||||
}
|
||||
|
|
|
@ -643,8 +643,6 @@ gdisplay_flush_whenever (GDisplay *gdisp, gboolean now)
|
|||
void
|
||||
gdisplay_flush (GDisplay *gdisp)
|
||||
{
|
||||
g_warning("gdisplay_flush");
|
||||
|
||||
/* Redraw on idle time */
|
||||
gdisplay_flush_whenever (gdisp, FALSE);
|
||||
}
|
||||
|
@ -652,8 +650,6 @@ gdisplay_flush (GDisplay *gdisp)
|
|||
void
|
||||
gdisplay_flush_now (GDisplay *gdisp)
|
||||
{
|
||||
g_warning("gdisplay_flush_now");
|
||||
|
||||
/* Redraw NOW */
|
||||
gdisplay_flush_whenever (gdisp, TRUE);
|
||||
}
|
||||
|
@ -2073,14 +2069,12 @@ gdisplays_flush_whenever (gboolean now)
|
|||
void
|
||||
gdisplays_flush (void)
|
||||
{
|
||||
g_warning("gdisplays_flush");
|
||||
gdisplays_flush_whenever (FALSE);
|
||||
}
|
||||
|
||||
void
|
||||
gdisplays_flush_now (void)
|
||||
{
|
||||
g_warning("gdisplays_flush_now");
|
||||
gdisplays_flush_whenever (TRUE);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue