RE: How to shape a button

2005-05-26 Thread Chris Wu
in there already; use BtnLogo = gtk_button_new() instead), and the final thing: you need to show the image: gtk_widget_show(img); Attached is the new code. Enjoy. -Alem On 5/26/05, Chris Wu <[EMAIL PROTECTED]> wrote: > > Have

How to shape a button

2005-05-25 Thread Chris Wu
Hi all, I would like to make a shaped button, but when I use the gtk_widget_shape_combine_mask(button, mask, 0, 0). The follow item is my source code. It can be passed build all step and no exception to run , but still can't shaped the button as the shape. According your su

RE: How to shape a button

2005-05-24 Thread Chris Wu
Hi Mr. Muthiah, I'm sorry to tell you the bad news. It can be passed build all step and no exception to run , but still can't shaped the button as the shape. According your suggestion, I write a test code and send to you. I used the follow envionment for development. OS

RE: How to shape a button

2005-05-21 Thread Chris Wu
Hi! Thank you very much, Mr.Muthiah It works, that great! Thanks. Chris.Wu -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Muthiah Annam

RE: How to shape a button

2005-05-19 Thread Chris Wu
idget *w; w=gtk_window_new(GTK_WINDOW_TOPLEVEL); g_signal_connect(G_OBJECT(w),"configure_event",G_CALLBACK(configure_event),NULL); g_signal_connect(G_OBJECT(w),"destroy",G_CALLBACK(gtk_main_quit),NULL); gtk_container_add(GTK_CONTAINER(w),gtk_color_selection_new()); return w;

How to shape a button

2005-05-19 Thread Chris Wu
Hi all, I would like to make a shaped button, but when I use the gtk_widget_shape_combine_mask(button, mask, 0, 0). I got "assertion `!GTK_WIDGET_NO_WINDOW (widget)' failed". Would you mind to send me some demo code to told me how to shape a button! Chris.Wu