diff options
author | Angelo Naselli <anaselli@linux.it> | 2016-03-13 20:13:53 +0100 |
---|---|---|
committer | Angelo Naselli <anaselli@linux.it> | 2016-03-13 20:13:53 +0100 |
commit | c8ad37121fd16d76176a36f4a6350e7760170a91 (patch) | |
tree | 7d1c3ac68b6cff79d2db870e95ccf46b459fac7d | |
parent | 178d513d49e30e3b91c8f3805e3223e3410544f3 (diff) | |
download | manatools-c8ad37121fd16d76176a36f4a6350e7760170a91.tar manatools-c8ad37121fd16d76176a36f4a6350e7760170a91.tar.gz manatools-c8ad37121fd16d76176a36f4a6350e7760170a91.tar.bz2 manatools-c8ad37121fd16d76176a36f4a6350e7760170a91.tar.xz manatools-c8ad37121fd16d76176a36f4a6350e7760170a91.zip |
Fixed rpmdragora icons
-rw-r--r-- | Changes | 1 | ||||
-rw-r--r-- | MANIFEST | 8 | ||||
-rw-r--r-- | lib/ManaTools/Rpmdragora/gui.pm | 15 | ||||
-rwxr-xr-x | modules/rpmdragora/rpmdragora | 5 | ||||
-rw-r--r-- | share/images/rpmdragora/state_backport.png | bin | 0 -> 966 bytes | |||
-rw-r--r-- | share/images/rpmdragora/state_base.png | bin | 0 -> 867 bytes | |||
-rw-r--r-- | share/images/rpmdragora/state_installed.png | bin | 0 -> 1008 bytes | |||
-rw-r--r-- | share/images/rpmdragora/state_to_install.png | bin | 0 -> 848 bytes | |||
-rw-r--r-- | share/images/rpmdragora/state_to_remove.png | bin | 0 -> 965 bytes | |||
-rw-r--r-- | share/images/rpmdragora/state_to_update.png | bin | 0 -> 1165 bytes | |||
-rw-r--r-- | share/images/rpmdragora/state_uninstalled.png | bin | 0 -> 187 bytes |
11 files changed, 15 insertions, 14 deletions
@@ -1,3 +1,4 @@ + - rpmdragora - fixed icons (removed rpmdrake deps) - rpmdragora - Show details on first selected package also - rpmdragora - when a new filter is given now packages are shown correctly into selected group @@ -145,6 +145,7 @@ po/ru.po po/sc.po po/sk.po po/sl.po +po/sq.po po/sr.po po/sv.po po/th.po @@ -207,6 +208,13 @@ share/images/rpmdragora/dragora-urpm-sources.png share/images/rpmdragora/dragoraUpdate.png share/images/rpmdragora/general-update.png share/images/rpmdragora/security-update.png +share/images/rpmdragora/state_backport.png +share/images/rpmdragora/state_base.png +share/images/rpmdragora/state_installed.png +share/images/rpmdragora/state_to_install.png +share/images/rpmdragora/state_to_remove.png +share/images/rpmdragora/state_to_update.png +share/images/rpmdragora/state_uninstalled.png share/images/rpmdragora/title-install.png share/images/rpmdragora/title-update.png share/images/Up.png diff --git a/lib/ManaTools/Rpmdragora/gui.pm b/lib/ManaTools/Rpmdragora/gui.pm index 4dd2d56b..bd36d809 100644 --- a/lib/ManaTools/Rpmdragora/gui.pm +++ b/lib/ManaTools/Rpmdragora/gui.pm @@ -41,6 +41,7 @@ use MDK::Common::Various qw(chomp_ to_bool); use MDK::Common::String qw(formatAlaTeX); use MDK::Common::Math qw(sum); use MDK::Common::System qw(list_passwd); +use File::ShareDir ':ALL'; use ManaTools::rpmdragora; use ManaTools::Rpmdragora::open_db; @@ -489,28 +490,22 @@ sub set_node_state { my ($tblItem, $state, $detail_list) = @_; return if $state eq 'XXX' || !$state; + my $icon = File::ShareDir::dist_file(ManaTools::Shared::distName(), "images/rpmdragora/state_$state.png"); if ($detail_list) { $detail_list->parent()->parent()->startMultipleChanges(); - $tblItem->addCell($state,"/usr/share/rpmdrake/icons/state_$state.png") if(ref $tblItem eq "yui::YCBTableItem"); + + $tblItem->addCell($state, $icon) if(ref $tblItem eq "yui::YCBTableItem"); if(to_bool(member($state, qw(base installed to_install)))){ - # it should be parent()->setChecked(1) $detail_list->checkItem($tblItem, 1); - # $tblItem->setSelected(1); }else{ $detail_list->checkItem($tblItem, 0); - # $tblItem->setSelected(0); } -# if(!to_bool($state ne 'base')){ -# #$iter->cell(0)->setLabel('-'); -# $tblItem->cell(0)->setLabel('-'); -# } $detail_list->parent()->parent()->doneMultipleChanges(); } else { # no item list means we use just the item to add state information - $tblItem->addCell($state,"/usr/share/rpmdrake/icons/state_$state.png") if(ref $tblItem eq "yui::YCBTableItem"); + $tblItem->addCell($state, $icon) if(ref $tblItem eq "yui::YCBTableItem"); $tblItem->check(to_bool(member($state, qw(base installed to_install)))); -# $tblItem->cell(0)->setLabel('-') if !to_bool($state ne 'base'); } } diff --git a/modules/rpmdragora/rpmdragora b/modules/rpmdragora/rpmdragora index 178bc036..717d92b2 100755 --- a/modules/rpmdragora/rpmdragora +++ b/modules/rpmdragora/rpmdragora @@ -53,10 +53,7 @@ use yui; use feature 'state'; use POSIX qw/uname/; -# OLD $ugtk2::wm_icon = get_icon('installremoverpm', "title-$MODE"); -#TODO fix $wm_resource_path -my $wm_resource_path="/usr/share/rpmdrake/icons"; -my $wm_icon = "$wm_resource_path"."/title-$MODE.png"; +my $wm_icon = File::ShareDir::dist_file(ManaTools::Shared::distName(), "images/rpmdragora/title-$MODE.png"); # Declarations my $my_win; diff --git a/share/images/rpmdragora/state_backport.png b/share/images/rpmdragora/state_backport.png Binary files differnew file mode 100644 index 00000000..db11b94e --- /dev/null +++ b/share/images/rpmdragora/state_backport.png diff --git a/share/images/rpmdragora/state_base.png b/share/images/rpmdragora/state_base.png Binary files differnew file mode 100644 index 00000000..f2b7860a --- /dev/null +++ b/share/images/rpmdragora/state_base.png diff --git a/share/images/rpmdragora/state_installed.png b/share/images/rpmdragora/state_installed.png Binary files differnew file mode 100644 index 00000000..cf0777cc --- /dev/null +++ b/share/images/rpmdragora/state_installed.png diff --git a/share/images/rpmdragora/state_to_install.png b/share/images/rpmdragora/state_to_install.png Binary files differnew file mode 100644 index 00000000..94d356d4 --- /dev/null +++ b/share/images/rpmdragora/state_to_install.png diff --git a/share/images/rpmdragora/state_to_remove.png b/share/images/rpmdragora/state_to_remove.png Binary files differnew file mode 100644 index 00000000..50eaf758 --- /dev/null +++ b/share/images/rpmdragora/state_to_remove.png diff --git a/share/images/rpmdragora/state_to_update.png b/share/images/rpmdragora/state_to_update.png Binary files differnew file mode 100644 index 00000000..4fc9de4a --- /dev/null +++ b/share/images/rpmdragora/state_to_update.png diff --git a/share/images/rpmdragora/state_uninstalled.png b/share/images/rpmdragora/state_uninstalled.png Binary files differnew file mode 100644 index 00000000..ddd2191b --- /dev/null +++ b/share/images/rpmdragora/state_uninstalled.png |