projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adapt Oxygen import script to the new realities
[quassel.git]
/
icons
/
import
/
import_oxygen.pl
diff --git
a/icons/import/import_oxygen.pl
b/icons/import/import_oxygen.pl
index
4a84bcf
..
c6132d0
100755
(executable)
--- 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";
# 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) {
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};
}
$req_icons{$name} = 1
unless exists $blacklist{$name};
}