Thank you very much Dain.

 On 10/30/05, Alem Dain <[EMAIL PROTECTED]> wrote:
>
> This is the province of the GTK theme, usually defined in resource
> files. The philosophy is that the user -- not the programmer --
> decides how his buttons should look.
>
> That being said, there are plenty of ways around it. The first is to
> enforce the use of a particular theme, either by hardcoding it or
> loading it from a file with gtk_rc_parse. See
>
> file:///usr/local/share/gtk-doc/html/gtk/gtk-Resource-Files.html
>
> for info on GTK resources.
>
> Another way is to load an image onto the button, and use a
> transparency mask to change the shape. I was involved in a thread on
> this a few months ago: search for "How to shape a button". Once you
> have a pixmap (for example, from gdk_pixmap_create_from_xpm), you set
> the transparency mask with gdk_window_shape_combine_mask, create an
> image with gtk_image_new_from_pixmap, and add the image to the button
> (as a container). All these functions are, of course, documented.
>
> Good luck,
> Alem.
>
> 2005/10/28, sadhees kumar <[EMAIL PROTECTED]>:
> > Dear Friends,
> > I want to display my button widget with different look.
> > Is there any way to change the appearence of GtkButton from rectangle to
> > ellipse?
> > if anybody achieved this, attach the sample code.
> > Thanks in advance.
> > _____________
> > Regards,
> >
> > K.Sadheeskumar.
> > _______________________________________________
> > gtk-app-devel-list mailing list
> > gtk-app-devel-list@gnome.org
> > http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
> >
> _______________________________________________
> gtk-app-devel-list mailing list
> gtk-app-devel-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
>



--
_____________
Regards,

K.Sadheeskumar.
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to