impliment copy file name in search
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
LinuxDC++ |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
can someone give me help on how to impliment the above mentioned item in the search please or impliment it in the client as can be useful to be able just copy filenames from the search window?
am uncertain as how to complete this: ?
glade/search.glade:
<widget class="GtkMenuItem" id="copyFileName">
<property name="visible"
<property name="label" translatable=
<property name="use_
</widget>
</child>
linux/search.cc:
g_signal_
void Search:
{
Search *s = (Search *)data;
if (gtk_tree_
{
int64_t size;
string magnets, magnet, filename, tth;
GtkTreeIter iter;
GtkTreePath *path;
GList *list = gtk_tree_
for (GList *i = list; i; i = i->next)
{
path = (GtkTreePath *)i->data;
if (gtk_tree_
{
bool parent = gtk_tree_
do
{
filename = s->resultView.
size = s->resultView.
tth = s->resultView.
magnet = WulforUtil:
if (!magnet.empty())
{
if (!magnets.empty())
magnets += '\n';
magnets += magnet;
}
}
while (parent && WulforUtil:
}
gtk_
}
g_list_
if (!magnets.empty())
gtk_
}
}
linux/search.hh:
static void onCopyFileNameC
obv it doesnt need the magnet stuff just used that as uncertain as to which bits to call to just call the actual filename itself, oh and i missed the opening <child> in the glad bit but only in this report, not in my notes.