Commit ba5cc08e authored by Morten Welinder's avatar Morten Welinder Committed by Morten Welinder

Add ellipsize property to contents column if supported.

2004-10-19  Morten Welinder  <terra@gnome.org>

	* dialog-search.c (make_matches_table): Add ellipsize property to
	contents column if supported.
parent 5d04a1de
......@@ -28,6 +28,7 @@ Morten:
* Fix window menu in case of "_" in names. [#155235]
* Add support for setting text and markup in buttons.
* Fix XL save crash. [#155371]
* Limit the width of search window. [#136421]
Yukihiro Nakai:
* Improve perl plugin.
......
2004-10-19 Morten Welinder <terra@gnome.org>
* dialog-search.c (make_matches_table): Add ellipsize property to
contents column if supported.
2004-10-18 Andreas J. Guelzow <aguelzow@taliesin.ca>
* dialog-stf-export.glade: fix formatting on all pages
......
......@@ -642,7 +642,7 @@ unit_editor_configure (UnitInfo *target, PrinterSetupState *state,
gnome_print_unit_selector_add_adjustment (GNOME_PRINT_UNIT_SELECTOR (state->unit_selector),
target->adj);
g_signal_connect (G_OBJECT (target->spin),
"value-changed",
"value_changed",
G_CALLBACK (unit_changed), cbdata);
g_object_set_data_full (G_OBJECT (target->spin),
"cbdata", cbdata, g_free); /* avoid a leak */
......
......@@ -432,6 +432,11 @@ make_matches_table (GtkTreeModel *model)
NULL);
/* Set single_paragraph_mode to ensure fixed height. */
g_object_set (cell, "single_paragraph_mode", TRUE, NULL);
#ifdef HAVE_PANGO_LAYOUT_SET_ELLIPSIZE
if (i == COL_CONTENTS &&
g_object_class_find_property (G_OBJECT_GET_CLASS (cell), "ellipsize"))
g_object_set (cell, "ellipsize", PANGO_ELLIPSIZE_END, NULL);
#endif
gtk_tree_view_column_set_sizing (column, GTK_TREE_VIEW_COLUMN_GROW_ONLY);
gtk_tree_view_append_column (tree_view, column);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment