X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=icons%2Fimport%2Fimport_oxygen.pl;h=c6132d01be76261bb6d9d6c7b83cc087a4426c3e;hp=4a84bcfe304426c32effd1bb55d7ba03b1fdbeff;hb=bd295c044a8a8d2bb4efc1e8b0607a404b0db42c;hpb=f3d6f8088d8be6af9319a99fb8d2fee2837b540a diff --git a/icons/import/import_oxygen.pl b/icons/import/import_oxygen.pl index 4a84bcfe..c6132d01 100755 --- a/icons/import/import_oxygen.pl +++ b/icons/import/import_oxygen.pl @@ -42,10 +42,9 @@ close BLACKLIST; # We now grep the source for things like SmallIcon("fubar") and generate size and name from that print "Grepping $source for requested icons...\n"; -my @results = `grep -r Icon\\(\\" $source`; +my @results = `grep -r QIcon::fromTheme\\(\\" $source`; foreach(@results) { - next unless my ($type, $name) = /\W+(\s|Desktop|Bar|MainBar|Small|Panel|Dialog)Icon\("([-\w]+)/; - $type = "Desktop" if $type =~ /\s+/; + next unless my ($name) = /\W+QIcon::fromTheme\(\"([-\w]+)/; $req_icons{$name} = 1 unless exists $blacklist{$name}; }