Re: Invisible GtkImage

2013-06-20 Thread Kip Warner
On Wed, 2013-06-19 at 14:03 +0300, אנטולי קרסנר wrote:
 I have another idea for you: In the Gnome Mines game (which you can
 probably find on git.gnome.org) written in Vala, the game board has a
 fixed ratio and resizes with the window, exactly like your requirement. 
 
 Go there and see how the MinefieldView and Window classes word.

Hey Tom. So I'm looking through his gnome-mines.vala and I see in his
startup_custom_game_screen () function he is creating the GtkAspectFrame
as I do. I think the key difference is the child he is using is a
GtkGrid which already knows on how to resize inside of anything, whereas
the GtkImage does not.

I'll keep looking through his code and fiddling with my own, but any
help appreciated.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Invisible GtkImage

2013-06-20 Thread Kip Warner
On Thu, 2013-06-20 at 17:59 -0700, Kip Warner wrote:
 On Wed, 2013-06-19 at 14:03 +0300, אנטולי קרסנר wrote:
  I have another idea for you: In the Gnome Mines game (which you can
  probably find on git.gnome.org) written in Vala, the game board has a
  fixed ratio and resizes with the window, exactly like your requirement. 
  
  Go there and see how the MinefieldView and Window classes word.
 
 Hey Tom. So I'm looking through his gnome-mines.vala and I see in his
 startup_custom_game_screen () function he is creating the GtkAspectFrame
 as I do. I think the key difference is the child he is using is a
 GtkGrid which already knows on how to resize inside of anything, whereas
 the GtkImage does not.
 
 I'll keep looking through his code and fiddling with my own, but any
 help appreciated.

Ah hah. So I noticed something. When I set the shadow type to NONE in
the AspectFrame, the recursive resizing stops. I can make the window
larger, but not smaller. Hmm...

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list