[gnome-control-center] Revert "Fit three columns of search results"



commit 29792b41e5e06a8267586daa75a790383a195cc9
Author: William Jon McCann <jmccann redhat com>
Date:   Tue May 1 14:55:40 2012 -0400

    Revert "Fit three columns of search results"
    
    This reverts commit 2d145a6fa4b21a5b558597ab9b6dde460a41a4f6.

 shell/shell-search-renderer.c |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/shell/shell-search-renderer.c b/shell/shell-search-renderer.c
index c72f0bb..6032af8 100644
--- a/shell/shell-search-renderer.c
+++ b/shell/shell-search-renderer.c
@@ -215,7 +215,7 @@ get_size (GtkCellRenderer *cell,
 
   shell_search_renderer_set_layout (SHELL_SEARCH_RENDERER (cell), widget);
 
-  pango_layout_set_width (priv->layout, PANGO_SCALE * 164);
+  pango_layout_set_width (priv->layout, PANGO_SCALE * 180);
   pango_layout_get_pixel_extents (priv->layout, NULL, &rect);
 
   if (width) *width = rect.width;
@@ -281,8 +281,6 @@ shell_search_renderer_render (GtkCellRenderer      *cell,
   ShellSearchRendererPrivate *priv = SHELL_SEARCH_RENDERER (cell)->priv;
   PangoRectangle rect;
   GtkStyleContext *context;
-  gint layout_height;
-  gint vcenter_offset;
 
   context = gtk_widget_get_style_context (widget);
 
@@ -290,14 +288,11 @@ shell_search_renderer_render (GtkCellRenderer      *cell,
 
   pango_layout_get_pixel_extents (priv->layout, NULL, &rect);
 
-  pango_layout_get_pixel_size (priv->layout, NULL, &layout_height);
-  vcenter_offset = (cell_area->height - layout_height) / 2;
-
   cairo_save (cr);
 
   gtk_render_layout (context, cr,
                      cell_area->x,
-                     cell_area->y + vcenter_offset,
+                     cell_area->y,
                      priv->layout);
 
   cairo_restore (cr);



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