Re: CVS commit 1.189 (Owen) and gtk_window_set_has_frame



Could you paste the warnning here !?

Best Regards

Antonio Gomes

On Fri, 25 Feb 2005 11:32:15 +0100, Stephane Raimbault
<stephane raimbault syneo fr> wrote:
> 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
> 
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
> 


-- 
Antonio Gomes
Embedded Linux Developer
Embedded Linux Lab - 10LE
INdT - Instituto Nokia de Tecnlogia
Manaus/Br



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