[yelp] [yelp-location-entry] Ellipsize labels in completion and history dropdowns
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp] [yelp-location-entry] Ellipsize labels in completion and history dropdowns
- Date: Thu, 1 Apr 2010 22:16:01 +0000 (UTC)
commit d09158a2427cc610d5741bf1eaa0453b6b1e7e9b
Author: Shaun McCance <shaunm gnome org>
Date: Thu Apr 1 16:08:09 2010 -0500
[yelp-location-entry] Ellipsize labels in completion and history dropdowns
libyelp/yelp-location-entry.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libyelp/yelp-location-entry.c b/libyelp/yelp-location-entry.c
index a25bcbb..8b60713 100644
--- a/libyelp/yelp-location-entry.c
+++ b/libyelp/yelp-location-entry.c
@@ -333,6 +333,7 @@ yelp_location_entry_init (YelpLocationEntry *entry)
GTK_CELL_RENDERER (cells->data),
(GtkCellLayoutDataFunc) cell_set_text_cell,
entry, NULL);
+ g_object_set (cells->data, "ellipsize", PANGO_ELLIPSIZE_END, NULL);
g_list_free (cells);
priv->icon_cell = gtk_cell_renderer_pixbuf_new ();
@@ -495,6 +496,7 @@ yelp_location_entry_set_completion_model (YelpLocationEntry *entry,
GTK_CELL_RENDERER (cells->data),
(GtkCellLayoutDataFunc) cell_set_completion_text_cell,
entry, NULL);
+ g_object_set (cells->data, "ellipsize", PANGO_ELLIPSIZE_END, NULL);
/* We use multi-line text, and GTK+ gets heights wrong without this. */
gtk_cell_renderer_text_set_fixed_height_from_font (GTK_CELL_RENDERER_TEXT (cells->data), 2);
g_list_free (cells);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]