On Tue, Jun 26, 2007 at 02:28:09PM -0600, Jim George wrote:
> > can't you just compare the
> > new allocation to the current one and do nothing when they
> > are equal?
>
> That doesn't work, they seem to always be equal. I'm comparing the
> allocation being passed to the alloc-event handler in th
> I do not follow this thread, but can't you just compare the
> new allocation to the current one and do nothing when they
> are equal?
That doesn't work, they seem to always be equal. I'm comparing the
allocation being passed to the alloc-event handler in the second
parameter and the allocation o
On Tue, Jun 26, 2007 at 11:28:48AM -0600, Jim George wrote:
>
> I'll take that back, the handler keeps getting called even if I block
> it before calling gtk_image_set_from_pixbuf. If I disconnect it, it
> doesn't get called again. Seems like the allocate-event occurs with
> some delay after gtk_i
On 6/26/07, Jim George <[EMAIL PROTECTED]> wrote:
> > >[...] caused an infinite loop, because I'm trying to
> > >do the following:
> > >
> > >gboolean solar_cal_pixbuf_resize(GtkWidget *widget, GtkAllocation
> > >*alloc, gpointer user_data)
> > >{
> > > GtkImage *img_widget = user_data;
> > > Gdk
On Mon, 25 Jun 2007 17:41:51 -0600 Jim George wrote:
>[...] caused an infinite loop, because I'm trying to
>do the following:
>
>gboolean solar_cal_pixbuf_resize(GtkWidget *widget, GtkAllocation
>*alloc, gpointer user_data)
>{
> GtkImage *img_widget = user_data;
> GdkPixbuf *pixbuf = gtk_image_g
On 6/25/07, Brian J. Tarricone <[EMAIL PROTECTED]> wrote:
> On Mon, 25 Jun 2007 15:13:30 -0600 Jim George wrote:
>
> >Is there some way I can obtain a GDK_CONFIGURE event from a GtkImage
> >widget? I tried putting the GtkImage inside a GtkEventBox and
> >connecting a handler to "configure-event", w
On Mon, 25 Jun 2007 15:13:30 -0600 Jim George wrote:
>Is there some way I can obtain a GDK_CONFIGURE event from a GtkImage
>widget? I tried putting the GtkImage inside a GtkEventBox and
>connecting a handler to "configure-event", without success. I also
>manually enabled GDK_STRUCTURE_MASK, even t
Is there some way I can obtain a GDK_CONFIGURE event from a GtkImage
widget? I tried putting the GtkImage inside a GtkEventBox and
connecting a handler to "configure-event", without success. I also
manually enabled GDK_STRUCTURE_MASK, even though GTK is supposed to do
that by default. I would like