CVS commit 1.189 (Owen) and gtk_window_set_has_frame



Hi,

I previously did a report about this problem (august 04).
 
The gtk+'s commit 1.189 (between GTK+ 2.2 and 2.4) introduced a new
check in gdk/x11/gdkwindow-x11.c -> gdk_window_set_icon() :

g_return_if_fail (GDK_WINDOW_TYPE (window) != GDK_WINDOW_CHILD);

Now this simple code shows a warning :
dialog = gtk_message_dialog_new (window,
                                 GTK_DIALOG_MODAL,
                                 GTK_MESSAGE_QUESTION,
                                 GTK_BUTTONS_CANCEL,
                                 "Do you want something ?");

gtk_dialog_add_button (GTK_DIALOG (dialog),
                       GTK_STOCK_QUIT,
                       GTK_RESPONSE_ACCEPT);
gtk_window_set_has_frame (GTK_WINDOW (dialog), TRUE);
gtk_window_set_frame_dimensions (GTK_WINDOW(dialog),
                                 6, 6, 6, 6);
gtk_widget_show_all(dialog);


I often use this code and warnings are really annoying :(
Thank you.

Stephane






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