aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorArturo Espinosa <unammx@src.gnome.org>1998-05-09 08:18:26 +0800
committerArturo Espinosa <unammx@src.gnome.org>1998-05-09 08:18:26 +0800
commit667ddb5e5f2dbffca19affdb90cf3125b13629ee (patch)
tree6ac72314cb9646cb25a05901f10adac68c4afdf5 /calendar
parenta9b1af2b26c0be96173149078b4e98b2b1d3aac2 (diff)
downloadgsoc2013-evolution-667ddb5e5f2dbffca19affdb90cf3125b13629ee.tar.gz
gsoc2013-evolution-667ddb5e5f2dbffca19affdb90cf3125b13629ee.tar.zst
gsoc2013-evolution-667ddb5e5f2dbffca19affdb90cf3125b13629ee.zip
Further work on getting nice pixmaps displayed -mig
svn path=/trunk/; revision=210
Diffstat (limited to 'calendar')
-rw-r--r--calendar/gncal-full-day.c31
-rw-r--r--calendar/gui/gncal-full-day.c31
2 files changed, 34 insertions, 28 deletions
diff --git a/calendar/gncal-full-day.c b/calendar/gncal-full-day.c
index 723e9430d9..47d5ca8d39 100644
--- a/calendar/gncal-full-day.c
+++ b/calendar/gncal-full-day.c
@@ -289,29 +289,31 @@ child_draw_decor (GncalFullDay *fullday, Child *child, GdkRectangle *area)
GdkRectangle rect, dest;
int ry = 0;
- rect.x = child->width;
+ rect.x = child->width - child->decor_width;
rect.y = 0;
rect.width = child->decor_width;
rect.height = child->decor_height;
-
+
+#if 0
if (!gdk_rectangle_intersect (&rect, area, &dest))
return;
-
+#endif
if (ico->recur){
- gdk_window_copy_area (child->decor_window,
- fullday->recur_gc,
- 0, ry,
- pixmap_recur, 0, 0,
- DECOR_WIDTH, DECOR_HEIGHT);
+ gdk_draw_pixmap (child->decor_window,
+ fullday->recur_gc,
+ pixmap_recur,
+ 0, 0,
+ 0, ry,
+ DECOR_WIDTH, DECOR_HEIGHT);
ry += DECOR_HEIGHT;
}
if (ico->dalarm.enabled || ico->malarm.enabled || ico->palarm.enabled || ico->aalarm.enabled){
- printf ("PINTANDO ALARMA\n");
- gdk_window_copy_area (child->decor_window,
- fullday->bell_gc,
- 0, ry,
- pixmap_bell, 0, 0,
- DECOR_WIDTH, DECOR_HEIGHT);
+ gdk_draw_pixmap (child->decor_window,
+ fullday->bell_gc,
+ pixmap_bell,
+ 0, 0,
+ 0, ry,
+ DECOR_WIDTH, DECOR_HEIGHT);
ry += DECOR_HEIGHT;
}
}
@@ -363,6 +365,7 @@ child_draw (GncalFullDay *fullday, Child *child, GdkRectangle *area, int draw_ch
view_utils_draw_textured_frame (GTK_WIDGET (fullday), child->window, &rect, GTK_SHADOW_OUT);
}
+ child_draw_decor (fullday, child, area);
if (draw_child) {
area->x -= HANDLE_SIZE;
area->y -= has_focus ? HANDLE_SIZE : 0;
diff --git a/calendar/gui/gncal-full-day.c b/calendar/gui/gncal-full-day.c
index 723e9430d9..47d5ca8d39 100644
--- a/calendar/gui/gncal-full-day.c
+++ b/calendar/gui/gncal-full-day.c
@@ -289,29 +289,31 @@ child_draw_decor (GncalFullDay *fullday, Child *child, GdkRectangle *area)
GdkRectangle rect, dest;
int ry = 0;
- rect.x = child->width;
+ rect.x = child->width - child->decor_width;
rect.y = 0;
rect.width = child->decor_width;
rect.height = child->decor_height;
-
+
+#if 0
if (!gdk_rectangle_intersect (&rect, area, &dest))
return;
-
+#endif
if (ico->recur){
- gdk_window_copy_area (child->decor_window,
- fullday->recur_gc,
- 0, ry,
- pixmap_recur, 0, 0,
- DECOR_WIDTH, DECOR_HEIGHT);
+ gdk_draw_pixmap (child->decor_window,
+ fullday->recur_gc,
+ pixmap_recur,
+ 0, 0,
+ 0, ry,
+ DECOR_WIDTH, DECOR_HEIGHT);
ry += DECOR_HEIGHT;
}
if (ico->dalarm.enabled || ico->malarm.enabled || ico->palarm.enabled || ico->aalarm.enabled){
- printf ("PINTANDO ALARMA\n");
- gdk_window_copy_area (child->decor_window,
- fullday->bell_gc,
- 0, ry,
- pixmap_bell, 0, 0,
- DECOR_WIDTH, DECOR_HEIGHT);
+ gdk_draw_pixmap (child->decor_window,
+ fullday->bell_gc,
+ pixmap_bell,
+ 0, 0,
+ 0, ry,
+ DECOR_WIDTH, DECOR_HEIGHT);
ry += DECOR_HEIGHT;
}
}
@@ -363,6 +365,7 @@ child_draw (GncalFullDay *fullday, Child *child, GdkRectangle *area, int draw_ch
view_utils_draw_textured_frame (GTK_WIDGET (fullday), child->window, &rect, GTK_SHADOW_OUT);
}
+ child_draw_decor (fullday, child, area);
if (draw_child) {
area->x -= HANDLE_SIZE;
area->y -= has_focus ? HANDLE_SIZE : 0;
devel/eric6: update to 18.02David Naylor2018-02-081-3/+3 * - Bump PORTREVISION. Lazarus was updated to 1.8.0Jose Alonso Cardenas Marquez2018-02-011-2/+2 * Securityupdate to 4.9.2:Jochen Neumeister2018-01-192-4/+4 * lang/eric6: update to 17.12David Naylor2018-01-171-3/+3 * devel/eric6: update to 17.11.1, add FLAVORSDavid Naylor2018-01-112-3/+4 * Securityupdate to 4.9.1:Jochen Neumeister2017-12-022-7/+6 * For ports that are marked BROKEN on armv6, and also fail to build onMark Linimon2017-11-301-0/+1 * russian/wordpress: Update distinfoSteve Wills2017-11-202-3/+4 * russian/wordpress: Update to 4.9Steve Wills2017-11-172-4/+4 * Update to 5.3.7.Jung-uk Kim2017-11-031-5/+5 * */wordpress: update to 4.8.3Jochen Neumeister2017-11-022-4/+4 * evel/eric6: update to 17.10David Naylor2017-10-271-3/+3 * Change CONFLICTS to CONFLICTS_INSTALLRodrigo Osorio2017-10-151-1/+2 * Update to 4.8.2Jochen Neumeister2017-10-062-4/+4 * Fix kde4-l10n packages after sysutils/filelight's updateTobias C. Berner2017-09-172-2/+1 * Update to 5.3.6.Jung-uk Kim2017-09-061-5/+5 * Remove expired ports:Rene Ladan2017-08-236-127/+0 * - russian/wordpress: Update from 4.8 to 4.8.1Jochen Neumeister2017-08-042-4/+4 * Update to 5.3.5.Jung-uk Kim2017-08-041-5/+5 * Deprecate ports BROKEN for more than 6 monthsAntoine Brodin2017-07-221-0/+2 * Update to 5.3.4.Jung-uk Kim2017-06-221-5/+5 * Update the Calligra ports to 3.0.1.Raphael Kubo da Costa2017-06-175-90/+0 * - Update to 4.8Wen Heping2017-06-092-4/+4 * - Switch to options helpersDmitry Marakasov2017-06-031-3/+6 * Mark some ports failing on armv6, for errors classified as "clang".Mark Linimon2017-05-271-1/+2 * Update to 5.3.3.Jung-uk Kim2017-05-201-5/+5 * Update to 4.7.5Sunpoet Po-Chuan Hsieh2017-05-192-4/+4 * Update to 5.2.7.Jung-uk Kim2017-05-051-5/+5 * Chase ffmpeg 3.3 update (ABI changes)Thomas Zander2017-04-252-1/+2 * - Revert the php7 switch, we can't force users to switch to php7 yet.Martin Wilke2017-04-251-1/+0 * - Update to 4.7.4Martin Wilke2017-04-252-4/+5 * Rename the magic DISTVERSION into SPELLVERSION for the aspell ports.Mathieu Arnold2017-04-121-1/+1 * Remove obsolete PROJECTHOST.Mathieu Arnold2017-03-311-1/+0 * Update to 5.2.6.Jung-uk Kim2017-03-281-5/+5 * Remove all USE_OPENSSL occurrences.Mathieu Arnold2017-03-151-2/+1 * russian/wordpress: Update from 4.7.2 to 4.7.3Torsten Zuehlsdorff2017-03-072-4/+4 * - Bump PORTREVISION. Lazarus was update to 1.6.4Jose Alonso Cardenas Marquez2017-03-021-2/+2 * - Bump PORTREVISION. Freepascal was updatedJose Alonso Cardenas Marquez2017-02-271-2/+1 * Update to 5.2.5.Jung-uk Kim2017-02-011-5/+5 * Update to 4.7.2Sunpoet Po-Chuan Hsieh2017-01-282-4/+4 * Update WWW: SF redirects to https://sourceforge.net/projects/<PROJECT_NAME>/Sunpoet Po-Chuan Hsieh2017-01-213-3/+3 * Extract do-patch into a separate script.Mathieu Arnold2017-01-171-2/+1 * Update to 4.7.1Sunpoet Po-Chuan Hsieh2017-01-152-4/+4 * Update to 5.2.4.Jung-uk Kim2017-01-021-5/+5 * - Mark BROKEN on 11.x:Dmitry Marakasov2016-12-291-11/+6 * - Update to 4.7Sunpoet Po-Chuan Hsieh2016-12-162-4/+4 * Remove libiconv.so.3 compatibility link that was added in r374303 toTijl Coosemans2016-12-091-1/+1 * Don't quote {} in find -exec calls.Mathieu Arnold2016-12-011-1/+1 * - Update to 0.28Jose Alonso Cardenas Marquez2016-11-222-5/+6 * devel/eric6: update to 6.1.11David Naylor2016-11-191-3/+3 * Update libreoffice to 5.2.3 and liborcus to 0.11.2Baptiste Daroussin2016-11-121-4/+5 * Mark as broken on aarch64. While here, pet portlint.Mark Linimon2016-11-111-5/+6 * ${RM} already has -f.Mathieu Arnold2016-10-211-1/+1 * Reassign makc's ports back to the pool.Raphael Kubo da Costa2016-10-204-4/+4 * devel/eric6: update to 6.1.10.David Naylor2016-10-101-3/+3 * russian/fortuneru: Once again, mark this port BROKEN (unfetchable)John Marino2016-09-201-0/+2 * Revert recent strfile changes, strfile is already in baseAntoine Brodin2016-09-151-9/+11 * russian/fortuneru: Use fortune_strfile instead of strfile(8) and mark BROKENJohn Marino2016-09-141-11/+9 * - Update to 4.6.1Dmitry Marakasov2016-09-082-4/+4 * - Update to 4.6Dmitry Marakasov2016-09-072-8/+6 * devel/eric6: update to 6.1.9David Naylor2016-09-061-3/+3 * russian/xruskb: revbump required after previous changesJohn Marino2016-09-011-1/+1 * - Add LICENSEDmitry Marakasov2016-08-263-11/+11 * devel/eric6: update to 6.1.8.David Naylor2016-08-201-3/+3 * Prevent collision with getline(3)Baptiste Daroussin2016-07-301-0/+29 * Site changed to httpsAndrey A. Chernov2016-07-231-1/+1 * Cleanup $() variables in ports Makefiles.Mathieu Arnold2016-07-201-1/+1 * Remove expired ports without open PRs:Rene Ladan2016-07-058-68/+0 * eric6 ports: Update to version 6.1.7.Boris Samorodov2016-07-051-3/+3 * - Update to 4.5.3 [1]Dmitry Marakasov2016-06-232-9/+9 * eric6 ports: Update to version 6.1.6.Boris Samorodov2016-06-061-2/+3 * Deprecate ports broken for more than 6 monthsAntoine Brodin2016-06-042-0/+5 * Many KDE i10n ports: Patch updates CURDIRKurt Jaeger2016-05-261-1/+1 * editors/calligra-l10n: add plist-subKurt Jaeger2016-05-242-71/+71 * Cleanup some other NO_PACKAGE madness.Mathieu Arnold2016-05-241-1/+0 * - Fix trailing whitespace in pkg-messagesDmitry Marakasov2016-05-191-1/+1 * - Fix trailing whitespace in pkg-descrs, categories [p-x]*Dmitry Marakasov2016-05-193-3/+3 * eric6 ports: Update to version 6.1.5.Boris Samorodov2016-05-101-2/+2 * russian/wordpress: update 4.5.1 -> 4.5.2Bartek Rutkowski2016-05-082-3/+3 * Update to 5.0.6.Jung-uk Kim2016-05-071-4/+4 * - Update to 4.5.1Wen Heping2016-04-282-3/+3 * Convert USES=gem:autoplist to USES=gem since autoplist is defaultSteve Wills2016-04-281-1/+1 * create USES=gem and update rubygem- ports to use itSteve Wills2016-04-281-2/+1 * Remove expired ports:Rene Ladan2016-04-234-27/+0 * many ports: mark broken on powerpc64Steve Wills2016-04-221-0/+2 * eric6 ports: update to version 6.1.4 (reaaly, previous updateBoris Samorodov2016-04-221-2/+2 * eric6 ports: update to version 6.1.4.Boris Samorodov2016-04-221-2/+2 * russian/wordpress: update 4.4.2 -> 4.5Bartek Rutkowski2016-04-132-3/+3 * Remove ${PORTSDIR}/ from dependencies, categories r, s, t, and u.Mathieu Arnold2016-04-018-18/+18 * Add missing items to the calligra-l10n ports plists.Raphael Kubo da Costa2016-03-292-0/+2 * - Update to 0.27Jose Alonso Cardenas Marquez2016-03-182-5/+4 * Remove expired ports:Rene Ladan2016-03-143-23/+0 * Set an expiration date for a few deprecated leaf portsAntoine Brodin2016-03-141-0/+1 * - Makefile.local for slave ports is included by bsd.port.mk r397519Dirk Meyer2016-02-281-4/+0 * Remove russian/muttprint.Raphael Kubo da Costa2016-02-253-157/+0 * - Update to 4.4.2Martin Wilke2016-02-232-3/+3 * Update to 5.0.5.Jung-uk Kim2016-02-161-4/+4 * www/MT: update to 5.2.13; set to deprectaionRuslan Makhmatkhanov2016-02-141-1/+1 * Update Calligra to 2.9.11.Raphael Kubo da Costa2016-02-092-3/+2 * eric6 ports: Update to version 6.1.2.Boris Samorodov2016-02-081-2/+2 * Fix build with new lazarusAntoine Brodin2016-02-061-2/+2 * russian/napster: document ncurses requirement (USES+=ncurses)John Marino2016-02-061-0/+1 * Convert LICENSE= "GPLxx # or later" to "GPLxx+"Dmitry Marakasov2016-01-131-1/+1 * - Update to 4.4.1Martin Wilke2016-01-082-5/+4 * eric6 ports: Update to version 6.1.1.Boris Samorodov2016-01-051-2/+2 * Update Calligra to 2.9.10.Raphael Kubo da Costa2015-12-223-23/+23 * Update to 5.0.4.Jung-uk Kim2015-12-181-4/+4 * - Fix build with new FPCMartin Wilke2015-12-151-2/+3 * - Update distinfo: tarball rerolled with reordered messages in .po/.mo filesSunpoet Po-Chuan Hsieh2015-12-132-2/+3 * - Update to 4.4Sunpoet Po-Chuan Hsieh2015-12-112-4/+6 * eric6 ports: Update to version 6.1.0.Boris Samorodov2015-12-071-2/+2 * russian/emkatic: update 0.25 -> 0.26Bartek Rutkowski2015-11-245-6/+32 * Mark a few ports BROKEN: unfetchableAntoine Brodin2015-11-091-0/+2 * Fix ports that confused the meaning of WRKDIR and WRKSRC.Mathieu Arnold2015-11-051-7/+7 * Update to 5.0.3.Jung-uk Kim2015-11-041-4/+4 * Update to 5.0.2.Jung-uk Kim2015-09-242-6/+6 * Security update to 4.3.1. Further details are available at WordPressXin LI2015-09-162-3/+3 * eric6 ports: Update to version 6.0.9.Boris Samorodov2015-09-121-2/+2 * Update LibreOffice to 5.0.1.Jung-uk Kim2015-09-021-4/+4 * - Update to version 0.25, which now features localization supportAlexey Dokuchaev2015-08-264-15/+19 * - Pass maintainership to perl@Sunpoet Po-Chuan Hsieh2015-08-251-1/+1 * - Add NO_ARCHDmitry Marakasov2015-08-211-0/+1 * - Update to 4.3Sunpoet Po-Chuan Hsieh2015-08-202-3/+3 * - Fix buildJose Alonso Cardenas Marquez2015-08-201-2/+3 * Reset maintainerErwin Lansing2015-08-191-1/+1 * devel/eric6 and eric6 i18n files: update to version 6.0.8Boris Samorodov2015-08-181-2/+2 * Simple tools for processing strings in Russian (choose proper form for plurals,Ruslan Makhmatkhanov2015-08-144-0/+27 * - editors/lazarus update to 1.4.2Jose Alonso Cardenas Marquez2015-08-091-3/+3 * Update to 4.2.4Florian Smeets2015-08-072-3/+3 * - Update to 4.2.3Sunpoet Po-Chuan Hsieh2015-07-242-3/+4 * - Add NO_ARCHSunpoet Po-Chuan Hsieh2015-07-181-0/+1 * - Add NO_ARCHSunpoet Po-Chuan Hsieh2015-07-181-0/+1 * - Add NO_ARCHSunpoet Po-Chuan Hsieh2015-07-181-0/+1 * Revive russian/rux: Best Cyrillic text viewer and code page converterRuslan Makhmatkhanov2015-07-054-0/+40 * - Use DISTVERSIONSUFFIX instead of DISTNAMESunpoet Po-Chuan Hsieh2015-06-281-1/+1 * - Bump PORTREVISION. lazarus was updated to 1.4.0Jose Alonso Cardenas Marquez2015-06-151-2/+2 * - Update to 2.0.0Sunpoet Po-Chuan Hsieh2015-06-082-6/+6 * Update portaudio to v19/Remove portaudio2 [1]Baptiste Daroussin2015-05-311-1/+2 * - Don't cat pkg-message from MakefilesDmitry Marakasov2015-05-271-1/+0 * - Mark DEPRECATEDSunpoet Po-Chuan Hsieh2015-05-241-0/+2 * - Update WWWSunpoet Po-Chuan Hsieh2015-05-241-1/+1 * MASTER_SITES cleanup.Mathieu Arnold2015-05-142-4/+2 * Move p5- ports from ports@ to perl@.Mathieu Arnold2015-05-111-1/+1 * eric6 ports: Update to version 6.0.5.Boris Samorodov2015-05-081-2/+2 * Update ru-wordpress to 4.2.2.Koop Mast2015-05-072-3/+3 * - Update to 4.2.1Sunpoet Po-Chuan Hsieh2015-04-292-3/+3 * - Update to 4.2Sunpoet Po-Chuan Hsieh2015-04-272-3/+3 * Update to 4.3.7.Jung-uk Kim2015-04-261-4/+4 * russian/wordpress: update 4.1.1 -> 4.1.2Bartek Rutkowski2015-04-232-3/+3 * - Update to version 0.20 and install CHANGELOG.txt fileAlexey Dokuchaev2015-04-103-17/+17 * eric6 ports: Update to version 6.0.4.Boris Samorodov2015-04-091-2/+2 * Make EGD conditionalRodrigo Osorio2015-04-043-0/+16888 * www/MT,russian/MT: Upgrade version 5.2.11 => 5.2.12John Marino2015-04-041-1/+1 * Update "BSD" licenseMark Felder2015-03-241-1/+1 * Make fonts repecting XDGBaptiste Daroussin2015-03-223-37/+28 * Clean up the rest of the perl@ Makefiles a bit.Adam Weinberger2015-03-14