Hi,

I did some tests to see how the magnifier would works after the image
changes, and I found some problems introduced on revision 11861

First, the magnifier starts showing lot's of messages like this:

(magnifier:9882): GLib-GObject-CRITICAL **: g_object_unref: assertion
`G_IS_OBJECT (object)' failed

Which it never did before.

Second, on the TrayIcon component, there is this code:

  {*******************************************************************
  *  Draws the icon
  *******************************************************************}

  GDIObject := PgdiObject(Icon.Handle);

  AImage := gtk_image_new_from_pixmap(GDIObject^.GDIPixmapObject,
   GDIObject^.GDIBitmapMaskObject);

  gtk_widget_show(AImage);

  gtk_container_add(GTK_CONTAINER(GtkForm), AImage);

  ..............

Which worked fine to show the bitmap on the tray. After that revision
it no longer works, because the names of the structure items changed,
but not only this. I tryed using this code:

  AImage := gtk_image_new_from_pixmap(GDIObject^.GDIPixmapObject.Image,
   GDIObject^.GDIPixmapObject.Image);

But it will crash the application with a strange X11 syncronization
error. I can't even get a backtrace at this point, I only found this
line was the problem by changing the code and retesting.

Then I tryed this:

  AImage := gtk_image_new_from_pixmap(GDIObject^.GDIPixmapObject.Image,
   nil);

Which will work, but the areas of the image which should be
transparent will show random pixels.

thanks,
-- 
Felipe Monteiro de Carvalho

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to