[gnome-media/gnome-2-30] Fix dialogue getting too wide because of card settings



commit ebfe80bf13d5e24c63366f31d0cdacbeb4700874
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Mar 16 15:11:05 2010 +0000

    Fix dialogue getting too wide because of card settings
    
    But leaves the problem of differentiating clipped entries.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=613040

 gnome-volume-control/src/gvc-combo-box.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gnome-volume-control/src/gvc-combo-box.c b/gnome-volume-control/src/gvc-combo-box.c
index 5e0d82c..2eef99d 100644
--- a/gnome-volume-control/src/gvc-combo-box.c
+++ b/gnome-volume-control/src/gvc-combo-box.c
@@ -322,10 +322,11 @@ gvc_combo_box_init (GvcComboBox *combo_box)
         combo_box->priv->combobox = gtk_combo_box_new_with_model (combo_box->priv->model);
         renderer = gtk_cell_renderer_text_new ();
         gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (combo_box->priv->combobox),
-                                    renderer, FALSE);
+                                    renderer, TRUE);
         gtk_cell_layout_add_attribute (GTK_CELL_LAYOUT (combo_box->priv->combobox),
                                        renderer,
                                        "text", COL_HUMAN_NAME);
+        g_object_set (G_OBJECT (renderer), "ellipsize", PANGO_ELLIPSIZE_END, NULL);
 
 /*       gtk_widget_set_size_request (combo_box->priv->combobox, 128, -1); */
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]