diff options
author | Seth Alves <alves@src.gnome.org> | 2000-04-21 10:09:07 +0800 |
---|---|---|
committer | Seth Alves <alves@src.gnome.org> | 2000-04-21 10:09:07 +0800 |
commit | 3d9a80f3a8c2efc7cb2857a50a42805775fccbf6 (patch) | |
tree | 994a5e310ab5d31aa25f18588d33d758f5db13a2 /calendar/gui/gncal-full-day.c | |
parent | 623a9d69008bc6881a4f70a7e9127220cdb9bdff (diff) | |
download | gsoc2013-evolution-3d9a80f3a8c2efc7cb2857a50a42805775fccbf6.tar.gz gsoc2013-evolution-3d9a80f3a8c2efc7cb2857a50a42805775fccbf6.tar.zst gsoc2013-evolution-3d9a80f3a8c2efc7cb2857a50a42805775fccbf6.zip |
create fullday's gcs even if pixmap_bell has already been created. this
* gui/gncal-full-day.c (child_realize): create fullday's gcs
even if pixmap_bell has already been created. this was
causing crashes if the calendar was run twice.
svn path=/trunk/; revision=2537
Diffstat (limited to 'calendar/gui/gncal-full-day.c')
-rw-r--r-- | calendar/gui/gncal-full-day.c | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/calendar/gui/gncal-full-day.c b/calendar/gui/gncal-full-day.c index e387e98824..de3372b55f 100644 --- a/calendar/gui/gncal-full-day.c +++ b/calendar/gui/gncal-full-day.c @@ -1,3 +1,4 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* Full day widget for gncal * * Copyright (C) 1998 The Free Software Foundation @@ -249,6 +250,7 @@ child_realize (GncalFullDay *fullday, Child *child) gdk_window_set_background (child->decor_window, &c); gdk_window_set_user_data (child->decor_window, widget); + /* if (!pixmap_bell){ GdkImlibImage *imlib_bell, *imlib_recur; GdkPixmap *mask; @@ -271,6 +273,42 @@ child_realize (GncalFullDay *fullday, Child *child) if (mask) gdk_gc_set_clip_mask (fullday->recur_gc, mask); } + */ + + if (!pixmap_bell){ + GdkPixmap *mask; + + GdkImlibImage *imlib_bell; + GdkImlibImage *imlib_recur; + + imlib_bell = gdk_imlib_create_image_from_xpm_data (bell_xpm); + gdk_imlib_render (imlib_bell, DECOR_WIDTH, DECOR_HEIGHT); + pixmap_bell = gdk_imlib_move_image (imlib_bell); + + mask = gdk_imlib_move_mask (imlib_bell); + gdk_imlib_destroy_image (imlib_bell); + + imlib_recur = gdk_imlib_create_image_from_xpm_data (recur_xpm); + gdk_imlib_render (imlib_recur, DECOR_WIDTH, DECOR_HEIGHT); + pixmap_recur = gdk_imlib_move_image (imlib_recur); + mask = gdk_imlib_move_mask (imlib_recur); + gdk_imlib_destroy_image (imlib_recur); + } + +#warning "fix this" + + fullday->bell_gc = gdk_gc_new (child->decor_window); + /* + if (mask) + gdk_gc_set_clip_mask (fullday->bell_gc, mask); + */ + + fullday->recur_gc = gdk_gc_new (child->decor_window); + /* + if (mask) + gdk_gc_set_clip_mask (fullday->recur_gc, mask); + */ + child_set_text_pos (child); } |