mirror of https://github.com/GNOME/gimp.git
open the gradient editor on double-click
* app/gradient_select.c: open the gradient editor on double-click --Sven
This commit is contained in:
parent
ef3489560b
commit
f4b06fdb4c
|
@ -1,5 +1,10 @@
|
|||
Wed Jan 5 21:46:07 CET 2000 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/gradient_select.c: open the gradient editor on double-click
|
||||
|
||||
2000-01-05 Garry R. Osgood <gosgood@idt.net>
|
||||
*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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue