CVS commit 1.189 (Owen) and gtk_window_set_has_frame
- From: Stephane Raimbault <stephane raimbault syneo fr>
- To: GTK+ <gtk-list gnome org>
- Subject: CVS commit 1.189 (Owen) and gtk_window_set_has_frame
- Date: Fri, 25 Feb 2005 11:32:15 +0100
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]