aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-04-16 00:52:41 +0800
committerChris Lahey <clahey@src.gnome.org>2001-04-16 00:52:41 +0800
commit55b44f1c465147949a550422ff7515e8a1684cb0 (patch)
treec8b9bc73fef70bbbca8e08e44a4136a43f8a4fc6
parent8da0e6054ff610764f75b2d252aaa9489396368c (diff)
downloadgsoc2013-evolution-55b44f1c465147949a550422ff7515e8a1684cb0.tar.gz
gsoc2013-evolution-55b44f1c465147949a550422ff7515e8a1684cb0.tar.zst
gsoc2013-evolution-55b44f1c465147949a550422ff7515e8a1684cb0.zip
Added /* #defines */ at the top. Fixed ALTERNATE_COLORS to be an #ifdef
2001-04-15 Christopher James Lahey <clahey@ximian.com> * e-table-item.c: Added /* #defines */ at the top. Fixed ALTERNATE_COLORS to be an #ifdef instead of an #if. * e-cell-text.c (ect_show_tooltip): Set "strikeout" argument on created tooltip. svn path=/trunk/; revision=9328
-rw-r--r--widgets/table/e-cell-text.c2
-rw-r--r--widgets/table/e-table-item.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/widgets/table/e-cell-text.c b/widgets/table/e-cell-text.c
index db881f764b..1ad50921e3 100644
--- a/widgets/table/e-cell-text.c
+++ b/widgets/table/e-cell-text.c
@@ -579,6 +579,7 @@ ect_draw (ECellView *ecell_view, GdkDrawable *drawable,
sel_rect.height = height;
gtk_paint_flat_box (canvas->style,
drawable,
+
edit->has_selection ? GTK_STATE_SELECTED : GTK_STATE_ACTIVE,
GTK_SHADOW_NONE,
clip_rect,
@@ -1225,6 +1226,7 @@ ect_show_tooltip (ECellView *ecell_view,
"anchor", GTK_ANCHOR_NW,
/* "font_gdk", text_view->font, */
"bold", (gboolean) ect->bold_column >= 0 && e_table_model_value_at(ecell_view->e_table_model, ect->bold_column, row),
+ "strikeout", (gboolean) ect->strikeout_column >= 0 && e_table_model_value_at(ecell_view->e_table_model, ect->strikeout_column, row),
"text", cell.text,
"editable", FALSE,
"clip_width", max_width,
diff --git a/widgets/table/e-table-item.c b/widgets/table/e-table-item.c
index 98cb7788e5..85fab6bd64 100644
--- a/widgets/table/e-table-item.c
+++ b/widgets/table/e-table-item.c
@@ -33,6 +33,7 @@
#define FOCUSED_BORDER 2
/* #define DO_TOOLTIPS 1 */
+/* #define ALTERNATE_COLORS 1 */
#define d(x)
@@ -1337,11 +1338,12 @@ eti_draw (GnomeCanvasItem *item, GdkDrawable *drawable, int x, int y, int width,
background = &canvas->style->base [GTK_STATE_NORMAL];
}
-#if ALTERNATE_COLORS
+#ifdef ALTERNATE_COLORS
if (row % 2) {
} else {
free_background = TRUE;
+ background = gdk_color_copy (background);
e_hsv_tweak (background, 0.0f, 0.0f, -0.05f);
gdk_color_alloc (gtk_widget_get_colormap (GTK_WIDGET (canvas)), background);
}
ks to 5.55.0Tobias C. Berner2019-02-132-4/+3 * Fix Qt5 symbol version scripts to put the catch-all clause first. WhenTijl Coosemans2019-01-161-0/+1 * Update KDE Frameworks to 5.54.0Tobias C. Berner2019-01-161-3/+3 * Change cmake default behaviour to outsource.Tobias C. Berner2018-12-261-1/+1 * Update KDE Frameworks to 5.53.0Tobias C. Berner2018-12-162-4/+3 * Bump PORTREVISION for ports depending on the canonical version of GCCGerald Pfeifer2018-12-121-0/+1 * Update KDE Frameworks to 5.52.0Tobias C. Berner2018-11-132-4/+3 * Merge lang/qt5-qml and x11-toolkits/qt5-quick into x11-toolkits/qt5-declarativeTobias C. Berner2018-11-051-2/+3 * Update KDE Frameworks to 5.41Tobias C. Berner2018-10-201-3/+3 * Update KDE Frameworks to 5.50Tobias C. Berner2018-09-181-3/+3 * Update KDE Frameworks to the latest monthly, 5.49Adriaan de Groot2018-08-242-4/+3 * Bump PORTREVISION for ports depending on the canonical version of GCCGerald Pfeifer2018-07-301-0/+1 * Update KDE Frameworks to 5.48.0Tobias C. Berner2018-07-201-3/+3 * Replace bsd.qt.mk by Uses/qt.mk and Uses/qt-dist.mkTobias C. Berner2018-06-291-2/+2 * Update KDE Frameworks to 5.47Tobias C. Berner2018-06-151-3/+3 * Update KDE Frameworks to 5.46Tobias C. Berner2018-05-191-3/+3 * Update KDE Frameworks to 5.45.0Tobias C. Berner2018-04-271-3/+3 * Update KDE Frameworks to 5.44Tobias C. Berner2018-03-131-3/+3 * Update KDE Frameworks to 5.43.0Tobias C. Berner2018-02-161-3/+3 * Update KDE Frameworks to 5.42.0Tobias C. Berner2018-01-171-3/+3 * Update KDE Frameworks to 5.41Tobias C. Berner2017-12-152-3/+4 * Update KDE Frameworks to 5.40.0Tobias C. Berner2017-11-162-5/+4 * Update KDE Frameworks to 5.39Tobias C. Berner2017-10-181-3/+3 * Update KDE Frameworks to 5.38.0Tobias C. Berner2017-09-193-4/+4 * Bump PORTREVISION for ports depending on the canonical version of GCCGerald Pfeifer2017-09-111-0/+1 * Update KDE Frameworks to 5.37.0Tobias C. Berner2017-08-291-3/+3 * Update KDE Frameworks to 5.36.0Tobias C. Berner2017-07-121-3/+3 * Update KDE Frameworks to 5.35Tobias C. Berner2017-06-181-3/+3 * Update KDE Frameworks to 5.34.0Tobias C. Berner2017-05-201-3/+3 * Update KDE Frameworks to 5.33.0Tobias C. Berner2017-04-192-4/+3 * Bump PORTREVISIONs for ports depending on the canonical version of GCC andGerald Pfeifer2017-04-011-0/+1 * Update KDE Frameworks to 5.32Tobias C. Berner2017-03-171-3/+3 * Update KDE Frameworks to 5.31Tobias C. Berner2017-02-191-3/+3 * Update KDE Frameworks to 5.30.0Tobias C. Berner2017-01-271-3/+3 * Update KDE Frameworks to 5.29.0Tobias C. Berner2016-12-191-3/+3