diff --git a/ChangeLog b/ChangeLog index d880be4318..d532da3c85 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ +Wed Jan 5 21:46:07 CET 2000 Sven Neumann + + * app/gradient_select.c: open the gradient editor on double-click + 2000-01-05 Garry R. Osgood - *app/undo.c: GimpChannel->bounds_known field on the + + * app/undo.c: GimpChannel->bounds_known field on the image Selection Mask channel was never invalidated when restored via undo_pop_channel_mod(). Caused PixelRegion iterators calculating new selection boundaries to use cached image dimensions, thereby diff --git a/app/gradient_select.c b/app/gradient_select.c index 2fe68a2ea9..f71b1759b2 100644 --- a/app/gradient_select.c +++ b/app/gradient_select.c @@ -45,32 +45,32 @@ #include "libgimp/gimpintl.h" -static void gradient_change_callbacks (GradientSelect *gsp, - gboolean closing); -static gradient_t * gradient_select_drag_gradient (GtkWidget *widget, - gpointer data); -static void gradient_select_drop_gradient (GtkWidget *widget, - gradient_t *gradient, - gpointer data); -static void gradient_select_gradient_changed (GimpContext *context, - gradient_t *gradient, - GradientSelect *gsp); -static void gradient_select_select (GradientSelect *gsp, - gradient_t *gradient); +static void gradient_change_callbacks (GradientSelect *gsp, + gboolean closing); +static gradient_t* gradient_select_drag_gradient (GtkWidget *widget, + gpointer data); +static void gradient_select_drop_gradient (GtkWidget *widget, + gradient_t *gradient, + gpointer data); +static void gradient_select_gradient_changed (GimpContext *context, + gradient_t *gradient, + GradientSelect *gsp); +static void gradient_select_select (GradientSelect *gsp, + gradient_t *gradient); -static gint gradient_select_button_press (GtkWidget *widget, - GdkEventButton *bevent, - gpointer data); -static void gradient_select_list_item_update (GtkWidget *widget, - gint row, - gint column, - GdkEventButton *event, - gpointer data); +static gint gradient_select_button_press (GtkWidget *widget, + GdkEventButton *bevent, + gpointer data); +static void gradient_select_list_item_update (GtkWidget *widget, + gint row, + gint column, + GdkEventButton *event, + gpointer data); -static void gradient_select_close_callback (GtkWidget *widget, - gpointer data); -static void gradient_select_edit_callback (GtkWidget *widget, - gpointer data); +static void gradient_select_close_callback (GtkWidget *widget, + gpointer data); +static void gradient_select_edit_callback (GtkWidget *widget, + gpointer data); /* dnd stuff */ static GtkTargetEntry clist_target_table[] = @@ -553,6 +553,13 @@ gradient_select_button_press (GtkWidget *widget, gsp = (GradientSelect *) data; + if (bevent->button == 1 && bevent->type == GDK_2BUTTON_PRESS) + { + gradient_select_edit_callback (widget, data); + + return TRUE; + } + if (bevent->button == 2) { GSList *list = NULL; diff --git a/app/gui/gradient-select.c b/app/gui/gradient-select.c index 2fe68a2ea9..f71b1759b2 100644 --- a/app/gui/gradient-select.c +++ b/app/gui/gradient-select.c @@ -45,32 +45,32 @@ #include "libgimp/gimpintl.h" -static void gradient_change_callbacks (GradientSelect *gsp, - gboolean closing); -static gradient_t * gradient_select_drag_gradient (GtkWidget *widget, - gpointer data); -static void gradient_select_drop_gradient (GtkWidget *widget, - gradient_t *gradient, - gpointer data); -static void gradient_select_gradient_changed (GimpContext *context, - gradient_t *gradient, - GradientSelect *gsp); -static void gradient_select_select (GradientSelect *gsp, - gradient_t *gradient); +static void gradient_change_callbacks (GradientSelect *gsp, + gboolean closing); +static gradient_t* gradient_select_drag_gradient (GtkWidget *widget, + gpointer data); +static void gradient_select_drop_gradient (GtkWidget *widget, + gradient_t *gradient, + gpointer data); +static void gradient_select_gradient_changed (GimpContext *context, + gradient_t *gradient, + GradientSelect *gsp); +static void gradient_select_select (GradientSelect *gsp, + gradient_t *gradient); -static gint gradient_select_button_press (GtkWidget *widget, - GdkEventButton *bevent, - gpointer data); -static void gradient_select_list_item_update (GtkWidget *widget, - gint row, - gint column, - GdkEventButton *event, - gpointer data); +static gint gradient_select_button_press (GtkWidget *widget, + GdkEventButton *bevent, + gpointer data); +static void gradient_select_list_item_update (GtkWidget *widget, + gint row, + gint column, + GdkEventButton *event, + gpointer data); -static void gradient_select_close_callback (GtkWidget *widget, - gpointer data); -static void gradient_select_edit_callback (GtkWidget *widget, - gpointer data); +static void gradient_select_close_callback (GtkWidget *widget, + gpointer data); +static void gradient_select_edit_callback (GtkWidget *widget, + gpointer data); /* dnd stuff */ static GtkTargetEntry clist_target_table[] = @@ -553,6 +553,13 @@ gradient_select_button_press (GtkWidget *widget, gsp = (GradientSelect *) data; + if (bevent->button == 1 && bevent->type == GDK_2BUTTON_PRESS) + { + gradient_select_edit_callback (widget, data); + + return TRUE; + } + if (bevent->button == 2) { GSList *list = NULL;