Hello Yen-Ju,

>> I just fired up /opt/firefox/firefox in a terminal session. The
>> application comes up fine (Version 1.0). In AZDock appears one gray
>> icon with a question mark. AZDock logs out nothing when the 
>> application
>> is started!? Why can't I see the firefox icon. Is my firefox two old?
>
>   Then I think something is not right here in AZDock.
>   How about other regular GNOME application ?
>   They should work fine.
>   If you look at "AZXWindowApp.m" line 135 of 269,
>   it use XWindowIcon() in XWindowServerKit,
>   which is at "XFunctions.m" line 65 of 565.
>   If it cannot get _NET_WM_ICON, it will complain.
>   Maybe you can play with that and see.
>

I had a look into XFunctions.m when starting

        /usr/staroffice7/program/swriter


NSImage *XWindowIcon(Window window)
{
    NSImage *icon = nil;
    Display *dpy = (Display*)[GSCurrentServer() serverDevice];

    unsigned long num;
    unsigned long *data = NULL;
    Atom prop = XInternAtom(dpy, "_NET_WM_ICON", False);
    Atom type_ret;
    int format_ret;
    unsigned long after_ret;
    int result = XGetWindowProperty(dpy, window, prop,
                                    0, 0x7FFFFFFF, False, XA_CARDINAL,
                                    &type_ret, &format_ret, &num,
                                    &after_ret, (unsigned char **)&data);

    NSLog(@"XWindowIcon result %d Success %d", result, Success);

    if ((result != Success))
      {
       NSLog(@"Error: cannot get client icon");
       if (data != NULL)
         {
          XFree(data);
         }
       return nil;
      }

    NSLog(@"num %d data %d", num, data);

    if (num && data)
      {
       int width = data[0];
       int height = data[1];
       int size = width * height;
     ...
      }
}

I get

        result == Success
        num == 0
        data == 0

Thus the image creation stuff is never executed!? :-(

Regards,

   Andraes

        


_______________________________________________
Etoile-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/etoile-discuss

Répondre à