Commit e70e0388 authored by Sven Neumann's avatar Sven Neumann

You can't paste into an empty image. Now the menu reflects this fact by

setting the paste functions insensitive.

When pasting from the named buffer, a call to gdisplays_flush() was missing.
I originally intended to fix the bug that canceling the cut-named-function
doesn't work. But it appears that there's no way to check if the
Cancel-button was hit in the query_string_box?!


--Sven
parent f6d5af1e
Mon Apr 13 15:37:42 MEST 1998 Sven Neumann <sven@gimp.org>
* app/gdisplay.c: correctly update the menu-sensitivity; you can't
paste into an empty image
* global_edit.c: flush the displays when pasting from a named buffer
Mon Apr 13 13:40:50 MEST 1998 Sven Neumann <sven@gimp.org>
*docs/gimp.1: fixes and updates to the man-page
......
......@@ -499,6 +499,9 @@ named_buffer_paste_callback (GtkWidget *w,
gtk_widget_destroy (pn_dlg->shell);
g_free (pn_dlg);
/* flush the display */
gdisplays_flush ();
}
static void
......
......@@ -499,6 +499,9 @@ named_buffer_paste_callback (GtkWidget *w,
gtk_widget_destroy (pn_dlg->shell);
g_free (pn_dlg);
/* flush the display */
gdisplays_flush ();
}
static void
......
......@@ -1038,12 +1038,14 @@ gdisplay_set_menu_sensitivity (GDisplay *gdisp)
menus_set_sensitive ("<Image>/Select", lp);
menus_set_sensitive ("<Image>/Edit/Cut", lp);
menus_set_sensitive ("<Image>/Edit/Copy", lp);
menus_set_sensitive ("<Image>/Edit/Paste", lp);
menus_set_sensitive ("<Image>/Edit/Paste Into", lp);
menus_set_sensitive ("<Image>/Edit/Clear", lp);
menus_set_sensitive ("<Image>/Edit/Fill", lp);
menus_set_sensitive ("<Image>/Edit/Stroke", lp);
menus_set_sensitive ("<Image>/Edit/Cut Named", lp);
menus_set_sensitive ("<Image>/Edit/Copy Named", lp);
menus_set_sensitive ("<Image>/Edit/Paste Named", lp);
menus_set_sensitive ("<Image>/Image/Colors", lp);
menus_set_sensitive ("<Image>/Image/Channel Ops/Offset", lp);
menus_set_sensitive ("<Image>/Image/Histogram", lp);
......
......@@ -1038,12 +1038,14 @@ gdisplay_set_menu_sensitivity (GDisplay *gdisp)
menus_set_sensitive ("<Image>/Select", lp);
menus_set_sensitive ("<Image>/Edit/Cut", lp);
menus_set_sensitive ("<Image>/Edit/Copy", lp);
menus_set_sensitive ("<Image>/Edit/Paste", lp);
menus_set_sensitive ("<Image>/Edit/Paste Into", lp);
menus_set_sensitive ("<Image>/Edit/Clear", lp);
menus_set_sensitive ("<Image>/Edit/Fill", lp);
menus_set_sensitive ("<Image>/Edit/Stroke", lp);
menus_set_sensitive ("<Image>/Edit/Cut Named", lp);
menus_set_sensitive ("<Image>/Edit/Copy Named", lp);
menus_set_sensitive ("<Image>/Edit/Paste Named", lp);
menus_set_sensitive ("<Image>/Image/Colors", lp);
menus_set_sensitive ("<Image>/Image/Channel Ops/Offset", lp);
menus_set_sensitive ("<Image>/Image/Histogram", lp);
......
......@@ -1038,12 +1038,14 @@ gdisplay_set_menu_sensitivity (GDisplay *gdisp)
menus_set_sensitive ("<Image>/Select", lp);
menus_set_sensitive ("<Image>/Edit/Cut", lp);
menus_set_sensitive ("<Image>/Edit/Copy", lp);
menus_set_sensitive ("<Image>/Edit/Paste", lp);
menus_set_sensitive ("<Image>/Edit/Paste Into", lp);
menus_set_sensitive ("<Image>/Edit/Clear", lp);
menus_set_sensitive ("<Image>/Edit/Fill", lp);
menus_set_sensitive ("<Image>/Edit/Stroke", lp);
menus_set_sensitive ("<Image>/Edit/Cut Named", lp);
menus_set_sensitive ("<Image>/Edit/Copy Named", lp);
menus_set_sensitive ("<Image>/Edit/Paste Named", lp);
menus_set_sensitive ("<Image>/Image/Colors", lp);
menus_set_sensitive ("<Image>/Image/Channel Ops/Offset", lp);
menus_set_sensitive ("<Image>/Image/Histogram", lp);
......
......@@ -499,6 +499,9 @@ named_buffer_paste_callback (GtkWidget *w,
gtk_widget_destroy (pn_dlg->shell);
g_free (pn_dlg);
/* flush the display */
gdisplays_flush ();
}
static void
......
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