set <Image>/File/Revert... insensitive if the image has no filename.

2000-03-01  Michael Natterer  <mitch@gimp.org>

	* app/gdisplay.c: set <Image>/File/Revert... insensitive if the
	image has no filename.

	* plug-ins/common/uniteditor.c: minor fix.

2000-03-01  Michael Natterer  <mitch@gimp.org>

	* C/dialogs/layers/Makefile.am
	* C/dialogs/layers/index.html
	* C/dialogs/layers/apply_mask.html: removed.

	* C/layers/Makefile.am
	* C/layers/index.html
	* C/layers/apply_mask.html
	* C/layers/delete_mask.html: new files.
This commit is contained in:
Michael Natterer 2000-02-29 23:32:39 +00:00 committed by Michael Natterer
parent 9a8a390b65
commit 990a071c4b
13 changed files with 93 additions and 69 deletions

View File

@ -1,3 +1,10 @@
2000-03-01 Michael Natterer <mitch@gimp.org>
* app/gdisplay.c: set <Image>/File/Revert... insensitive if the
image has no filename.
* plug-ins/common/uniteditor.c: minor fix.
Wed Mar 1 00:13:24 CET 2000 Sven Neumann <sven@gimp.org>
* app/gimpcontextpreview.c: return without warning if popup_timeout

View File

@ -1645,7 +1645,7 @@ gdisplay_set_menu_sensitivity (GDisplay *gdisp)
SET_SENSITIVE ("File/Save", gdisp);
SET_SENSITIVE ("File/Save As...", gdisp);
SET_SENSITIVE ("File/Revert", gdisp);
SET_SENSITIVE ("File/Revert", gdisp && gdisp->gimage->filename);
SET_SENSITIVE ("File/Close", gdisp);
SET_SENSITIVE ("Edit", gdisp);

View File

@ -1645,7 +1645,7 @@ gdisplay_set_menu_sensitivity (GDisplay *gdisp)
SET_SENSITIVE ("File/Save", gdisp);
SET_SENSITIVE ("File/Save As...", gdisp);
SET_SENSITIVE ("File/Revert", gdisp);
SET_SENSITIVE ("File/Revert", gdisp && gdisp->gimage->filename);
SET_SENSITIVE ("File/Close", gdisp);
SET_SENSITIVE ("Edit", gdisp);

View File

@ -1645,7 +1645,7 @@ gdisplay_set_menu_sensitivity (GDisplay *gdisp)
SET_SENSITIVE ("File/Save", gdisp);
SET_SENSITIVE ("File/Save As...", gdisp);
SET_SENSITIVE ("File/Revert", gdisp);
SET_SENSITIVE ("File/Revert", gdisp && gdisp->gimage->filename);
SET_SENSITIVE ("File/Close", gdisp);
SET_SENSITIVE ("Edit", gdisp);

View File

@ -4,7 +4,6 @@ helpdatadir = $(gimpdatadir)/help/C/dialogs/layers
helpdata_DATA = \
add_mask.html \
apply_mask.html \
edit_layer_attributes.html \
index.html \
layers.html \

View File

@ -1,62 +0,0 @@
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Apply Layer Mask</TITLE>
</HEAD>
<BODY text="#000000" bgcolor="#FFFFFF" link="#0000FF" vlink="#FF0000" alink="#000088">
<TABLE width="100%" cellspacing="1" cellpadding="1">
<TR bgcolor="black">
<TD width="100%" align="center"><FONT size="+2" color="white">Apply Layer
Mask</FONT></TD>
</TR>
<TR bgcolor="white" >
<TD width="100%" align="left"><P>
<P>
When you invoke Apply Layer Mask you will be presented with three options
<P>
<DL>
<DT>
<EM>Apply:</EM>
<DD>
This will apply the current mask. NOTE: that it will also remove the mask
it self, hence you can't continue to edit it since it's vanished.
<DT>
<EM>Discard:</EM>
<DD>
Will discard all mask operations and remove the mask
<DT>
<EM>Cancel:</EM>
<DD>
Will cancel the operation and everything will be as before you invoked Apply
Layer Mask
</DL>
<H3>
Additional Information
</H3>
<P>
For further information see The Gimp User's Manual page XXXX and the Gimp
User's Tutorial page YYYY
<P>
Shortcut Key
<P>
Modifier
<P>
Drag and Drop
<P>
Xinput
<P>
----DEV----
<P>
<A href="index.html">Index</A>
<P>
(/dialogs/layers/apply_mask.html)
<P>
Sorry but the help file for apply_mask is not yet done.
<P>
/Karin &amp; Olof
<P>
</TD>
</TR>
</TABLE>
</BODY></HTML>

View File

@ -21,7 +21,6 @@
<a href="../index.html">Top index</a><p>
<p>Topics in this directory:<p>
<a href="add_mask.html">add_mask</a><br>
<a href="apply_mask.html">apply_mask</a><br>
<a href="edit_layer_attributes.html">edit_layer_attributes</a><br>
<a href="layer_boundary_size.html">layer_boundary_size</a><br>
<a href="layers.html">layers</a><br>

View File

@ -8,7 +8,9 @@ helpdata_DATA = \
add_alpha_channel.html \
alpha_to_selection.html \
anchor_layer.html \
apply_mask.html \
delete_layer.html \
delete_mask.html \
duplicate_layer.html \
flatten_image.html \
index.html \

View File

@ -0,0 +1,31 @@
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<title>Help Page for apply_mask</title>
</head>
<body text="#000000" bgcolor="#FFFFFF" link="#0000FF"
vlink="#FF0000" alink="#000088">
<table width="100%" cellspacing="1" cellpadding="1">
<tr bgcolor="black">
<td width="100%" align="center">
<font size="+2" color="white">apply_mask help page</font>
</td>
</tr>
<tr bgcolor="white" >
<td width="100%" align="left">
<p>
<a href="index.html">Index</a><p>
(/layers/apply_mask.html)<p>
Sorry but the help file for apply_mask is not yet done.
<p>
/Karin & Olof
<p>
</td>
</tr>
</table>
</body>
</html>

View File

@ -0,0 +1,31 @@
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<title>Help Page for delete_mask</title>
</head>
<body text="#000000" bgcolor="#FFFFFF" link="#0000FF"
vlink="#FF0000" alink="#000088">
<table width="100%" cellspacing="1" cellpadding="1">
<tr bgcolor="black">
<td width="100%" align="center">
<font size="+2" color="white">delete_mask help page</font>
</td>
</tr>
<tr bgcolor="white" >
<td width="100%" align="left">
<p>
<a href="index.html">Index</a><p>
(/layers/delete_mask.html)<p>
Sorry but the help file for delete_mask is not yet done.
<p>
/Karin & Olof
<p>
</td>
</tr>
</table>
</body>
</html>

View File

@ -25,7 +25,9 @@
<a href="add_alpha_channel.html">add_alpha_channel</a><br>
<a href="alpha_to_selection.html">alpha_to_selection</a><br>
<a href="anchor_layer.html">anchor_layer</a><br>
<a href="apply_mask.html">apply_mask</a><br>
<a href="delete_layer.html">delete_layer</a><br>
<a href="delete_mask.html">delete_mask</a><br>
<a href="duplicate_layer.html">duplicate_layer</a><br>
<a href="flatten_image.html">flatten_image</a><br>
<a href="layer_to_image_size.html">layer_to_image_size</a><br>

View File

@ -1,3 +1,14 @@
2000-03-01 Michael Natterer <mitch@gimp.org>
* C/dialogs/layers/Makefile.am
* C/dialogs/layers/index.html
* C/dialogs/layers/apply_mask.html: removed.
* C/layers/Makefile.am
* C/layers/index.html
* C/layers/apply_mask.html
* C/layers/delete_mask.html: new files.
1999-12-19 Michael Natterer <mitch@gimp.org>
* C/toolbox/help/*: we forgot help for help ;-)

View File

@ -378,8 +378,8 @@ select_row_callback (GtkWidget *widget,
gpointer data)
{
GimpUnit unit;
gboolean delete_sensitive = TRUE;
gboolean undelete_sensitive = TRUE;
gboolean delete_sensitive = TRUE;
gboolean undelete_sensitive = TRUE;
current_row = row;
@ -394,10 +394,14 @@ select_row_callback (GtkWidget *widget,
else if (gimp_unit_get_deletion_flag (unit))
{
delete_sensitive = FALSE;
gtk_clist_set_pixmap (GTK_CLIST (clist), current_row, 0,
no_pixmap, no_mask);
}
else
{
undelete_sensitive = FALSE;
gtk_clist_set_pixmap (GTK_CLIST (clist), current_row, 0,
yes_pixmap, yes_mask);
}
gtk_widget_set_sensitive (delete_button, delete_sensitive);