[gnumeric] diff: various fixes
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] diff: various fixes
- Date: Tue, 10 Apr 2018 00:32:41 +0000 (UTC)
commit 07170e4fb3859cde9ba1a20f6b21009bc7772a95
Author: Morten Welinder <terra gnome org>
Date: Mon Apr 9 20:32:09 2018 -0400
diff: various fixes
src/dialogs/dialog-sheet-compare.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/src/dialogs/dialog-sheet-compare.c b/src/dialogs/dialog-sheet-compare.c
index d608721..631adc3 100644
--- a/src/dialogs/dialog-sheet-compare.c
+++ b/src/dialogs/dialog-sheet-compare.c
@@ -199,7 +199,7 @@ get_mstyle_name (int e)
case MSTYLE_BORDER_DIAGONAL: return _("Diagonal border");
case MSTYLE_PATTERN: return _("Pattern");
- case MSTYLE_FONT_COLOR: return _("Color");
+ case MSTYLE_FONT_COLOR: return _("Font color");
case MSTYLE_FONT_NAME: return _("Font");
case MSTYLE_FONT_BOLD: return _("Bold");
case MSTYLE_FONT_ITALIC: return _("Italic");
@@ -469,6 +469,9 @@ oldnew_renderer_func (GtkTreeViewColumn *tree_column,
text = do_int (gnm_style_get_pattern (style));
break;
+ case MSTYLE_FONT_NAME:
+ text = g_strdup (gnm_style_get_font_name (style));
+ break;
case MSTYLE_FONT_BOLD:
text = do_bool (gnm_style_get_font_bold (style));
break;
@@ -520,7 +523,8 @@ oldnew_renderer_func (GtkTreeViewColumn *tree_column,
text = g_strdup (_("Unavailable"));
}
} else if (section == SEC_COLROW) {
- ColRowInfo *cr = sheet_colrow_get (loc->a.sheet, e, is_cols);
+ ColRowInfo const *cr =
+ sheet_colrow_get_info (loc->a.sheet, e, is_cols);
text = g_strdup_printf ("%d pixels", cr->size_pixels);
}
@@ -719,6 +723,7 @@ cb_compare_clicked (G_GNUC_UNUSED GtkWidget *ignore,
tvc = gtk_tree_view_column_new ();
cr = gtk_cell_renderer_text_new ();
+ g_object_set (G_OBJECT (cr), "max-width-chars", 30, NULL);
gtk_tree_view_column_set_title (tvc, _("Old"));
gtk_tree_view_column_set_cell_data_func
(tvc, cr, oldnew_renderer_func,
@@ -728,6 +733,7 @@ cb_compare_clicked (G_GNUC_UNUSED GtkWidget *ignore,
tvc = gtk_tree_view_column_new ();
cr = gtk_cell_renderer_text_new ();
+ g_object_set (G_OBJECT (cr), "max-width-chars", 30, NULL);
gtk_tree_view_column_set_title (tvc, _("New"));
gtk_tree_view_column_set_cell_data_func
(tvc, cr, oldnew_renderer_func,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]