[gnome-logs] Fix the height problem while viewing other boots



commit 7c4019e4b7d3c8b1109ef45221def06622442c8e
Author: Jonathan Kang <jonathan121537 gmail com>
Date:   Thu Jul 2 00:02:59 2015 +0800

    Fix the height problem while viewing other boots
    
    https://bugzilla.gnome.org/show_bug.cgi?id=751789

 src/gl-eventviewlist.c |    6 +++---
 src/gl-eventviewrow.c  |    1 +
 2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/gl-eventviewlist.c b/src/gl-eventviewlist.c
index a4557d2..9962fb0 100644
--- a/src/gl-eventviewlist.c
+++ b/src/gl-eventviewlist.c
@@ -698,9 +698,9 @@ gl_event_view_list_init (GlEventViewList *view)
 
     priv->search_text = NULL;
     priv->boot_match = NULL;
-    priv->category_sizegroup = gtk_size_group_new (GTK_SIZE_GROUP_BOTH);
-    priv->message_sizegroup = gtk_size_group_new (GTK_SIZE_GROUP_BOTH);
-    priv->time_sizegroup = gtk_size_group_new (GTK_SIZE_GROUP_BOTH);
+    priv->category_sizegroup = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
+    priv->message_sizegroup = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
+    priv->time_sizegroup = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
 
     categories = GL_CATEGORY_LIST (priv->categories);
 
diff --git a/src/gl-eventviewrow.c b/src/gl-eventviewrow.c
index 21fb5aa..9876bce 100644
--- a/src/gl-eventviewrow.c
+++ b/src/gl-eventviewrow.c
@@ -236,6 +236,7 @@ gl_event_view_row_constructed (GObject *object)
     gtk_label_set_ellipsize (GTK_LABEL (priv->message_label),
                              PANGO_ELLIPSIZE_END);
     gtk_label_set_xalign (GTK_LABEL (priv->message_label), 0);
+    gtk_label_set_single_line_mode (GTK_LABEL (priv->message_label), TRUE);
     gtk_grid_attach (GTK_GRID (grid), priv->message_label,
                      1, 0, 1, 1);
 


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