Re: Reread file option for "image" standard object
From: Cyrille Chepelov <cyrille chepelov org>
To: dia-list gnome org
Subject: Re: Reread file option for "image" standard object
Date: Wed, 7 Aug 2002 15:16:28 +0200
Le Wed, Aug 07, 2002, à 08:37:35AM -0300, Dolores Alia de Saravia a écrit:
> I'm sending the output which I called "diferencias". Is this one
> Lars and Cyrille are talking about?
Exactly (I've not looked at the contents yet, but the form is right).
> static real image_distance_from(Image *image, Point *point);
> static void image_select(Image *image, Point *clicked_point,
> @@ -131,6 +133,8 @@
> N_("Draw border"), NULL, NULL},
> { "keep_aspect", PROP_TYPE_BOOL, PROP_FLAG_VISIBLE,
> N_("Keep aspect ratio"), NULL, NULL},
> + { "re_read_file", PROP_TYPE_BOOL, PROP_FLAG_VISIBLE,
> + N_("Reread image file"), NULL, NULL},
why not use a PROP_TYPE_BUTTON and put a trigger on that ?
(granted, the code behind PROP_TYPE_BUTTON is not much tested, even less
documented. I believe there is still an object with an example in #ifdef 0
shackles, somewhere in the objects/ tree. Grep...)
--
Grumpf.