Mercurial > pidgin
changeset 10968:e0d5038fbb7e
[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 <tailor@pidgin.im>
author | Christopher O'Brien <siege@pidgin.im> |
---|---|
date | Sun, 05 Jun 2005 02:44:44 +0000 |
parents | 77d26d0b7a0a |
children | 3ef77720e577 |
files | src/gtkblist.c |
diffstat | 1 files changed, 10 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- 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 <gtk/gtk.h> #include <gdk/gdk.h> -#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);