Re: [Evolution-hackers] Plugin and menu icons



В Сбт, 09/06/2007 в 17:45 +0200, Gilles Dartiguelongue пишет:
> Le vendredi 27 avril 2007 à 10:07 +0200, Gilles Dartiguelongue a écrit :
> > Le dimanche 08 avril 2007 à 23:11 +0200, Gilles Dartiguelongue a écrit :
> > > Hi list,
> > > 
> > > in the process of enhancing plugins, I was looking for a mean to add an
> > > icon in the top level menus. After some code reading it seems it is not
> > > possible if the icon is not a gtk stock icon. Did I miss something ?
> > > 
> > > Any pointers would be appreciated.
> > 
> after reading more code, it seems bonoboui doesn't like icons starting
> with the stock_ prefix. It throws " Bonobo-CRITICAL **:
> bonobo_ui_util_xml_to_pixbuf: assertion `length > 4 * 2 * 2 + 1' failed"
> at the command line.
> 
> The result is that the icon for folder->refresh and for any other menu
> item wanting to use a stock_* icon, it just won't appear.
> 
> I thought it could be a problem with libbonoboui but then I remembered
> that it works perfectly fine for popup menus.
> 
> As gtk-* icons are far from covering what we can add as icons in the
> menus, please, please help me fix this issue.

Hello Gilles

It's really hard to understand original problem and reasons for that
since not much is described. What are you trying to do really?

About way to convince bonoboui what about registration of stock icon and
then usage it in libbonoboui with pixtype=stock? I'm not sure why
libbonoboui tries to get pixbuf from your attribute (it's the task of
the function bonobo_ui_util_xml_to_pixbuf). Looks like you misunderstand
each other. What ui description are you passing to it?

Attachment: signature.asc
Description: =?koi8-r?Q?=FC=D4=C1?= =?koi8-r?Q?_=DE=C1=D3=D4=D8?= =?koi8-r?Q?_=D3=CF=CF=C2=DD=C5=CE=C9=D1?= =?koi8-r?Q?_=D0=CF=C4=D0=C9=D3=C1=CE=C1?= =?koi8-r?Q?_=C3=C9=C6=D2=CF=D7=CF=CA?= =?koi8-r?Q?_=D0=CF=C4=D0=C9=D3=D8=C0?=



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]