# HG changeset patch # User Christopher O'Brien # Date 1117939484 0 # Node ID e0d5038fbb7ee84c22dfdef57f76286be4613141 # Parent 77d26d0b7a0a806a41484e1ad3e373fa77bed03a [gaim-migrate @ 12789] defaulting macro magic to disable the drop shadow in buddy tooltips. Define WANT_DROP_SHADOW if you in fact do want a drop shadow. committer: Tailor Script diff -r 77d26d0b7a0a -r e0d5038fbb7e src/gtkblist.c --- a/src/gtkblist.c Sun Jun 05 02:40:19 2005 +0000 +++ b/src/gtkblist.c Sun Jun 05 02:44:44 2005 +0000 @@ -60,8 +60,12 @@ #include #include -#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 */ +#ifdef WANT_DROP_SHADOW +# if !GTK_CHECK_VERSION(2,2,0) || (defined(__APPLE__) && defined(__MACH__)) +# undef WANT_DROP_SHADOW +# endif #endif typedef struct @@ -134,13 +138,12 @@ static void show_rename_group(GtkWidget *unused, GaimGroup *g); -static gboolean xcomposite_is_present(); - struct _gaim_gtk_blist_node { GtkTreeRowReference *row; gboolean contact_expanded; }; + #ifdef WANT_DROP_SHADOW /**************************** Weird drop shadow stuff *******************/ /* This is based on a patch for drop shadows in GTK+ menus available at @@ -417,7 +420,8 @@ } /**************** END WEIRD DROP SHADOW STUFF ***********************************/ -#endif +#endif /* ifdef WANT_DROP_SHADOW */ + static char dim_grey_string[8] = ""; static char *dim_grey() @@ -2379,7 +2383,7 @@ gdk_window_set_user_data (gtkblist->south_shadow, gtkblist->tipwindow); gdk_window_set_back_pixmap (gtkblist->south_shadow, NULL, FALSE); } -#endif +#endif /* ifdef WANT_DROP_SHADOW */ layout = gtk_widget_create_pango_layout (gtkblist->tipwindow, NULL); pango_layout_set_wrap(layout, PANGO_WRAP_WORD);