--Sven
This commit is contained in:
Sven Neumann 2000-02-13 14:23:47 +00:00
parent f0ae0dccd4
commit 3cabc8b4d8
5 changed files with 31 additions and 12 deletions

View File

@ -1,3 +1,8 @@
Sun Feb 13 15:23:03 CET 2000 Sven Neumann <sven@gimp.org>
* app/channel_dialog.c
* app/layers_dialog.c: provided a proper fix for bug #2518
2000-02-13 Michael Natterer <mitch@gimp.org>
* app/brush_select.c

View File

@ -1616,8 +1616,7 @@ channel_widget_drag_drop_callback (GtkWidget *widget,
if (dest &&
(src_widget = gtk_drag_get_source_widget (context)))
{
src
= (ChannelWidget *) gtk_object_get_user_data (GTK_OBJECT (src_widget));
src = (ChannelWidget *) gtk_object_get_user_data (GTK_OBJECT (src_widget));
if (src &&
src->channel == channelsD->active_channel)
@ -1903,6 +1902,10 @@ channel_widget_button_events (GtkWidget *widget,
if (button_down && (event_widget == click_widget))
{
/* the user moved the cursor out of the widget before
releasing the button -> cancel the button_press */
button_down = FALSE;
if (widget == channel_widget->eye_widget)
{
if (exclusive)

View File

@ -1616,8 +1616,7 @@ channel_widget_drag_drop_callback (GtkWidget *widget,
if (dest &&
(src_widget = gtk_drag_get_source_widget (context)))
{
src
= (ChannelWidget *) gtk_object_get_user_data (GTK_OBJECT (src_widget));
src = (ChannelWidget *) gtk_object_get_user_data (GTK_OBJECT (src_widget));
if (src &&
src->channel == channelsD->active_channel)
@ -1903,6 +1902,10 @@ channel_widget_button_events (GtkWidget *widget,
if (button_down && (event_widget == click_widget))
{
/* the user moved the cursor out of the widget before
releasing the button -> cancel the button_press */
button_down = FALSE;
if (widget == channel_widget->eye_widget)
{
if (exclusive)

View File

@ -2104,7 +2104,6 @@ layer_widget_create (GImage *gimage,
GTK_DEST_DEFAULT_ALL,
layer_target_table, n_layer_targets,
GDK_ACTION_MOVE);
gtk_signal_connect (GTK_OBJECT (list_item), "drag_leave",
GTK_SIGNAL_FUNC (layer_widget_drag_leave_callback),
NULL);
@ -2515,12 +2514,17 @@ layer_widget_button_events (GtkWidget *widget,
if (button_down && (event_widget == click_widget))
{
/* the user moved the cursor out of the widget before
releasing the button -> cancel the button_press */
button_down = FALSE;
if (widget == layer_widget->eye_widget)
{
if (exclusive)
{
layer_widget_exclusive_visible (layer_widget);
}
else
{
GIMP_DRAWABLE (layer_widget->layer)->visible =

View File

@ -2104,7 +2104,6 @@ layer_widget_create (GImage *gimage,
GTK_DEST_DEFAULT_ALL,
layer_target_table, n_layer_targets,
GDK_ACTION_MOVE);
gtk_signal_connect (GTK_OBJECT (list_item), "drag_leave",
GTK_SIGNAL_FUNC (layer_widget_drag_leave_callback),
NULL);
@ -2515,12 +2514,17 @@ layer_widget_button_events (GtkWidget *widget,
if (button_down && (event_widget == click_widget))
{
/* the user moved the cursor out of the widget before
releasing the button -> cancel the button_press */
button_down = FALSE;
if (widget == layer_widget->eye_widget)
{
if (exclusive)
{
layer_widget_exclusive_visible (layer_widget);
}
else
{
GIMP_DRAWABLE (layer_widget->layer)->visible =