Commit f023a087 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

applied patch from Jan Heller that fixes broken expose event handling (bug

2005-01-16  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/curve_bend.c: applied patch from Jan Heller that
	fixes broken expose event handling (bug #164207).
parent 8af216e3
2005-01-16 Sven Neumann <sven@gimp.org>
* plug-ins/common/curve_bend.c: applied patch from Jan Heller that
fixes broken expose event handling (bug #164207).
2005-01-14 Michael Natterer <mitch@gimp.org>
Merged from HEAD branch:
......
......@@ -92,9 +92,6 @@
#define SMOOTH 0
#define GFREE 1
#define RANGE_MASK GDK_EXPOSURE_MASK | \
GDK_ENTER_NOTIFY_MASK
#define GRAPH_MASK GDK_EXPOSURE_MASK | \
GDK_POINTER_MOTION_MASK | \
GDK_POINTER_MOTION_HINT_MASK | \
......@@ -268,8 +265,6 @@ static void bender_load_callback (GtkWidget *,
BenderDialog *);
static void bender_save_callback (GtkWidget *,
BenderDialog *);
static gint bender_pv_widget_events (GtkWidget *, GdkEvent *,
BenderDialog *);
static gint bender_graph_events (GtkWidget *, GdkEvent *,
BenderDialog *);
static void bender_CR_compose (CRMatrix, CRMatrix,
......@@ -1162,7 +1157,7 @@ do_dialog (GimpDrawable *drawable)
if (!GTK_WIDGET_VISIBLE (cd->shell))
gtk_widget_show (cd->shell);
bender_update (cd, UP_GRAPH | UP_DRAW);
bender_update (cd, UP_GRAPH | UP_DRAW | UP_PREVIEW_EXPOSE);
gtk_main ();
gdk_flush ();
......@@ -1291,14 +1286,9 @@ bender_new_dialog (GimpDrawable *drawable)
cd->pv_widget = gimp_preview_area_new ();
gtk_widget_set_size_request (cd->pv_widget,
PREVIEW_SIZE_X, PREVIEW_SIZE_Y);
gtk_widget_set_events (cd->pv_widget, RANGE_MASK);
gtk_container_add (GTK_CONTAINER (frame), cd->pv_widget);
gtk_widget_show (cd->pv_widget);
g_signal_connect (cd->pv_widget, "event",
G_CALLBACK (bender_pv_widget_events),
cd);
hbox = gtk_hbox_new (FALSE, 6);
gtk_box_pack_end (GTK_BOX (vbox2), hbox, FALSE, FALSE, 0);
gtk_widget_show (hbox);
......@@ -2325,24 +2315,6 @@ bender_graph_events (GtkWidget *widget,
return FALSE;
}
static gboolean
bender_pv_widget_events (GtkWidget *widget,
GdkEvent *event,
BenderDialog *cd)
{
switch (event->type)
{
case GDK_EXPOSE:
bender_update (cd, UP_PREVIEW_EXPOSE);
break;
default:
break;
}
return FALSE;
}
static void
bender_CR_compose (CRMatrix a,
CRMatrix b,
......
Supports Markdown
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