Re: Handling long SVG strings in Path
- From: Damon Chaplin <damon karuna eclipse co uk>
- To: Jamie Lahowetz <jlahowetz gmail com>
- Cc: goocanvas-list gnome org
- Subject: Re: Handling long SVG strings in Path
- Date: Thu, 07 May 2009 17:17:05 +0100
On Thu, 2009-05-07 at 10:19 -0500, Jamie Lahowetz wrote:
> I tried just placing the simple coordinates directly into the Path
> call instead of reading them from a file, it is still not showing up.
> Here is my entire code if that helps.
> //~ Mouse events
> static void event_handler(GtkWidget *widget,GdkEvent *event,GtkObject
> *adj)
> {
> GdkEventType type;
> type = event->type;
> //~ printf("Event Type: %d\n",type);
>
> //~ double click
> if (type == 5)
> {
> gdouble x;
> x = ((GdkEventButton*)event)->x;
> gdouble y;
> y = ((GdkEventButton*)event)->y;
>
> printf("Mouse Coords: %f %f\n",x,y);
> }
> }
This is your problem. Event signal handlers have to return a gboolean to
indicate whether the signal should be propagated further. If they don't
it can cause weird problems like yours.
Damon
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]