changeset 18620:cec3ced34a7d

gtk_window_set_deletable() is GTK+ >= 2.10.0. References #1947. Also fix a bug where on Windows, the default title is always applied.
author Daniel Atallah <daniel.atallah@gmail.com>
date Mon, 23 Jul 2007 03:03:20 +0000
parents 0cb46c94c47d
children 3700c41dd0db
files pidgin/gtkrequest.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkrequest.c	Mon Jul 23 02:35:22 2007 +0000
+++ b/pidgin/gtkrequest.c	Mon Jul 23 03:03:20 2007 +0000
@@ -580,11 +580,15 @@
 
 	/* Create the dialog. */
 	data->dialog = dialog = gtk_dialog_new();
+
+#if GTK_CHECK_VERSION(2,10,0)
 	gtk_window_set_deletable(GTK_WINDOW(data->dialog), FALSE);
+#endif
 
 	if (title != NULL)
 		gtk_window_set_title(GTK_WINDOW(dialog), title);
 #ifdef _WIN32
+	else
 		gtk_window_set_title(GTK_WINDOW(dialog), PIDGIN_ALERT_TITLE);
 #endif