Changeset 5320


Ignore:
Timestamp:
Mar 21, 2008, 2:12:32 PM (14 years ago)
Author:
charles
Message:

(gtk) #804: Details window, Info tab, the torrent hash should be selectable (for copy/paste and to use it in search engines)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/details.c

    r5314 r5320  
    682682    hig_workarea_add_row (t, &row, _("Pieces:"), l, NULL);
    683683
    684     l = gtk_label_new (info->hashString);
    685     gtk_label_set_ellipsize( GTK_LABEL( l ), PANGO_ELLIPSIZE_END );
     684    l = g_object_new( GTK_TYPE_LABEL, "label", info->hashString, "selectable", TRUE,
     685                                      "ellipsize", PANGO_ELLIPSIZE_END, NULL );
    686686    hig_workarea_add_row (t, &row, _("Hash:"), l, NULL);
    687687
     
    719719  hig_workarea_add_section_title (t, &row, _("Location"));
    720720
    721     l = gtk_label_new (tr_torrentGetFolder (tor));
    722     gtk_label_set_ellipsize( GTK_LABEL( l ), PANGO_ELLIPSIZE_END );
     721    l = g_object_new( GTK_TYPE_LABEL, "label", tr_torrentGetFolder( tor ), "selectable", TRUE,
     722                                      "ellipsize", PANGO_ELLIPSIZE_END, NULL );
    723723    hig_workarea_add_row (t, &row, _( "Destination folder:" ), l, NULL);
    724724
    725     l = gtk_label_new ( info->torrent );
    726     gtk_label_set_ellipsize( GTK_LABEL( l ), PANGO_ELLIPSIZE_END );
     725    l = g_object_new( GTK_TYPE_LABEL, "label", info->torrent, "selectable", TRUE,
     726                                      "ellipsize", PANGO_ELLIPSIZE_END, NULL );
    727727    hig_workarea_add_row (t, &row, _( "Torrent file:" ), l, NULL);
    728728
Note: See TracChangeset for help on using the changeset viewer.