Changeset 4327


Ignore:
Timestamp:
Dec 25, 2007, 8:03:35 AM (14 years ago)
Author:
charles
Message:

(gtk) narrow the torrent inspector a bit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/torrent-inspector.c

    r4321 r4327  
    754754    track = info->trackerList->list;
    755755    pch = track->port==80
    756       ? g_strdup_printf ("http://%s%s", track->address, track->announce)
    757       : g_strdup_printf ("http://%s:%d%s", track->address, track->port, track->announce);
    758     l = gtk_label_new (pch);
     756      ? g_strdup_printf( "http://%s%s", track->address, track->announce )
     757      : g_strdup_printf( "http://%s:%d%s", track->address, track->port, track->announce );
     758    l = gtk_label_new( pch );
     759    gtk_label_set_ellipsize( GTK_LABEL( l ), PANGO_ELLIPSIZE_END );
     760
    759761    hig_workarea_add_row (t, &row, name, l, NULL);
    760762    g_free (pch);
     
    768770    g_snprintf (name, sizeof(name), namefmt, _("Hash"));
    769771    l = gtk_label_new (info->hashString);
     772    gtk_label_set_ellipsize( GTK_LABEL( l ), PANGO_ELLIPSIZE_END );
    770773    hig_workarea_add_row (t, &row, name, l, NULL);
    771774
     
    809812    g_snprintf (name, sizeof(name), namefmt, _("Downloaded Data"));
    810813    l = gtk_label_new (tr_torrentGetFolder (tor));
     814    gtk_label_set_ellipsize( GTK_LABEL( l ), PANGO_ELLIPSIZE_END );
    811815    hig_workarea_add_row (t, &row, name, l, NULL);
    812816
     
    814818    dname = g_path_get_dirname (info->torrent);
    815819    l = gtk_label_new ( dname );
     820    gtk_label_set_ellipsize( GTK_LABEL( l ), PANGO_ELLIPSIZE_END );
    816821    hig_workarea_add_row (t, &row, name, l, NULL);
    817822    g_free (dname);
     
    820825    bname = g_path_get_basename (info->torrent);
    821826    l = gtk_label_new (bname);
     827    gtk_label_set_ellipsize( GTK_LABEL( l ), PANGO_ELLIPSIZE_END );
    822828    hig_workarea_add_row (t, &row, name, l, NULL);
    823829    g_free (bname);
Note: See TracChangeset for help on using the changeset viewer.