bug-gnubg
[Top][All Lists]
Advanced

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

Re: [Bug-gnubg] Errors with current build and icons


From: Jim Segrave
Subject: Re: [Bug-gnubg] Errors with current build and icons
Date: Tue, 10 Sep 2002 14:14:48 +0200
User-agent: Mutt/1.4i

On Tue 10 Sep 2002 (11:56 +0000), Joern Thyssen wrote:
> On Tue, Sep 10, 2002 at 01:44:15PM +0200, Jim Segrave wrote
> > On Tue 10 Sep 2002 (11:12 +0000), Joern Thyssen wrote:
> 
> > > Yes, I commited some untested code for GTK 2 yesterday (I don't have GTK
> > > 2), hoping that someone with GTK 2 would test and correct the errors
> > > (hint hint hint) :-)
> > 
> > I was afraid you might say that. It appears not to want to create the
> > icons with that size. I'll see what I can find out.
> 
> Great :-) As a last resort the GTK 1.2 code I've written should work for
> GTK2 as well. However, I guess it's betetr to use the GTK2 stock icons
> if available.

OK - that was easy.
gtk_image_new_from_stock requires enums for the icon sizes, not pixel
counts. 

Changing the 16 to GTK_ICON_SIZE_SMALL_TOOLBAR and it's all happy again.


#if USE_GTK2
    bd->reset = 
      button_from_image ( gtk_image_new_from_stock ( GTK_STOCK_UNDO,
    GTK_ICON_SIZE_SMALL_TOOLBAR ) );
#else

and
#if USE_GTK2
    bd->stop =
      button_from_image ( gtk_image_new_from_stock ( GTK_STOCK_STOP,
          GTK_ICON_SIZE_SMALL_TOOLBAR ) );
#else

-- 
Jim Segrave           address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]