[gimp] libgimpwidgets: never ellipsize anything in the combo box' popup
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] libgimpwidgets: never ellipsize anything in the combo box' popup
- Date: Mon, 3 Jun 2013 19:34:57 +0000 (UTC)
commit 8a2474a371857fbd4e1bc49c65263921e8dc4c0e
Author: Michael Natterer <mitch gimp org>
Date: Mon Jun 3 21:33:21 2013 +0200
libgimpwidgets: never ellipsize anything in the combo box' popup
The popup can be wider than the widget, so show the full strings.
libgimpwidgets/gimpintcombobox.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/libgimpwidgets/gimpintcombobox.c b/libgimpwidgets/gimpintcombobox.c
index 357d759..0880dda 100644
--- a/libgimpwidgets/gimpintcombobox.c
+++ b/libgimpwidgets/gimpintcombobox.c
@@ -672,9 +672,11 @@ gimp_int_combo_box_create_cells (GimpIntComboBox *combo_box)
NULL);
priv->text_renderer = gtk_cell_renderer_text_new ();
- g_object_set (priv->text_renderer,
- "ellipsize", priv->ellipsize,
- NULL);
+
+ if (! shown)
+ g_object_set (priv->text_renderer,
+ "ellipsize", priv->ellipsize,
+ NULL);
if (priv->label && ! shown)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]