Re: size of an image on a button

2006-07-29 Thread Christopher Backhouse
sorry, looks like I am going to have to ask for a few more clues :( http://developer.gnome.org/doc/API/2.0/gtk/gtk-Resource-Files.html http://developer.gnome.org/doc/API/2.0/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html (and following pages) don't even hint at how to do this, as far as I can tell. gtk_bu

Re: size of an image on a button

2006-07-27 Thread Tristan Van Berkom
Christopher Backhouse wrote: >If I set a button to have an image like this: > > > Hi, You can accomplish what you want using a gtkrc file and the pixbuf engine, this way you can set a graphics file for any particular widget by name and it will scale automatically. Cheers,

size of an image on a button

2006-07-27 Thread Christopher Backhouse
If I set a button to have an image like this: gtk_button_set_image(GTK_BUTTON(button),gtk_image_new_from_file("fname.svg")); then the button grows to the full size of the image (huge). Using: gtk_widget_set_size_request(button,30,30); I can make the button have a sensible size, but the