--- a/src/gtkblist.c Sat Jun 04 13:36:41 2005 -0400
+++ b/src/gtkblist.c Sat Jun 04 19:48:32 2005 -0400
@@ -57,8 +57,12 @@
-#if (GTK_CHECK_VERSION(2,2,0) && !(defined(__APPLE__) && defined(__MACH__)))
-#define WANT_DROP_SHADOW
+/* if someone explicitly asked for drop shadows, we also need to make + sure that their environment can support it. If not, tough */ +# if !GTK_CHECK_VERSION(2,2,0) || (defined(__APPLE__) && defined(__MACH__)) +# undef WANT_DROP_SHADOW @@ -130,16 +134,20 @@
static void show_rename_group(GtkWidget *unused, GaimGroup *g);
-static gboolean xcomposite_is_present();
struct _gaim_gtk_blist_node {
GtkTreeRowReference *row;
gboolean contact_expanded;
/**************************** Weird drop shadow stuff *******************/
-/* This is based on a patch for drop shadows in GTK menus available at http://www.xfce.org/gtkmenu-shadow/ */
+/* This is based on a patch for drop shadows in GTK menus available at + http://www.xfce.org/gtkmenu-shadow/ +static gboolean xcomposite_is_present(); @@ -182,7 +190,6 @@
.941, .847, .698, .521, .215
static gboolean xcomposite_is_present()
static gboolean result = FALSE;
@@ -196,11 +203,10 @@
+#endif /* ifndef _WIN32 */ -#endif /* WANT_DROP_SHADOW */
get_pixbuf(GtkWidget *menu, int x, int y, int width, int height)
@@ -213,8 +219,7 @@
gint original_width = width;
gint original_height = height;
-#if !GTK_CHECK_VERSION(2,4,8)
+#if !GTK_CHECK_VERSION(2,4,8) && defined(_WIN32) /* XXX: Kill this entire block someday.
* 2004-08-22: This bug fix should land in GTK+ version 2.4.8:
@@ -234,8 +239,7 @@
+#endif /* if !GTK_CHECK_VERSION(2,4,8) && defined(_WIN32) */ @@ -436,7 +440,8 @@
/**************** END WEIRD DROP SHADOW STUFF ***********************************/
+#endif /* ifdef WANT_DROP_SHADOW */ static GSList *blist_prefs_callbacks = NULL;
@@ -2255,7 +2260,7 @@
gdk_window_set_user_data (gtkblist->south_shadow, gtkblist->tipwindow);
gdk_window_set_back_pixmap (gtkblist->south_shadow, NULL, FALSE);
+#endif /* ifdef WANT_DROP_SHADOW */ layout = gtk_widget_create_pango_layout (gtkblist->tipwindow, NULL);
pango_layout_set_wrap(layout, PANGO_WRAP_WORD);