lkml.org 
[lkml]   [2013]   [Jan]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 14/19] perf gtk/browser: Trim column header string when event group enabled
    Date
    From: Namhyung Kim <namhyung.kim@lge.com>

    When event group feature is enabled, each column header is expanded to
    match with the whole group column width. But this is not needed for
    GTK+ browser since ti usually use variable-width fonts. So trim it.

    Cc: Jiri Olsa <jolsa@redhat.com>
    Cc: Stephane Eranian <eranian@google.com>
    Cc: Pekka Enberg <penberg@kernel.org>
    Signed-off-by: Namhyung Kim <namhyung@kernel.org>
    ---
    tools/perf/ui/gtk/hists.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/tools/perf/ui/gtk/hists.c b/tools/perf/ui/gtk/hists.c
    index c87a98c7efaa..caa554bdbfe7 100644
    --- a/tools/perf/ui/gtk/hists.c
    +++ b/tools/perf/ui/gtk/hists.c
    @@ -170,7 +170,7 @@ static void perf_gtk__show_hists(GtkWidget *window, struct hists *hists)
    fmt->header(&hpp);

    gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(view),
    - -1, s,
    + -1, ltrim(s),
    renderer, "markup",
    col_idx++, NULL);
    }
    --
    1.7.11.7


    \
     
     \ /
      Last update: 2013-01-22 12:21    [W:6.094 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site