diff options
author | Angelo Naselli <anaselli@linux.it> | 2014-11-17 21:56:37 +0100 |
---|---|---|
committer | Angelo Naselli <anaselli@linux.it> | 2014-11-17 21:56:37 +0100 |
commit | 41de9ecd40f7dd07743f02aec9853c3a61aaee9a (patch) | |
tree | 6b2077d049ef717f3d156895e0d24fee6a69eaca | |
parent | 1bd5a460aa491d3280d66e8ba8f5dc0895644fcd (diff) | |
download | manatools-41de9ecd40f7dd07743f02aec9853c3a61aaee9a.tar manatools-41de9ecd40f7dd07743f02aec9853c3a61aaee9a.tar.gz manatools-41de9ecd40f7dd07743f02aec9853c3a61aaee9a.tar.bz2 manatools-41de9ecd40f7dd07743f02aec9853c3a61aaee9a.tar.xz manatools-41de9ecd40f7dd07743f02aec9853c3a61aaee9a.zip |
added log and title
-rwxr-xr-x | modules/rpmdragora/dragoraUpdate | 16 | ||||
-rw-r--r-- | share/images/rpmdragora/title-update.png | bin | 0 -> 4402 bytes |
2 files changed, 13 insertions, 3 deletions
diff --git a/modules/rpmdragora/dragoraUpdate b/modules/rpmdragora/dragoraUpdate index a0ee144d..c37e256b 100755 --- a/modules/rpmdragora/dragoraUpdate +++ b/modules/rpmdragora/dragoraUpdate @@ -27,8 +27,7 @@ use strict; use MDK::Common::Func 'any'; # use lib qw(/usr/lib/libDrakX); # use common; - - +use File::ShareDir ':ALL'; use AdminPanel::Rpmdragora::init; @@ -73,6 +72,7 @@ my %update_icons = ( security => { icon => 'images/rpmdragora/security-update.png', text => $loc->N("Security") }, bugfix => { icon => 'images/rpmdragora/bugfix-update.png', text => $loc->N("Bug fixing") }, normal => { icon => 'images/rpmdragora/general-update.png', text => '' }, + title => { icon => 'images/rpmdragora/title-update.png', text => $loc->N("Here is the list of software package updates") }, ); my %icons_cache; @@ -183,7 +183,7 @@ sub run_treeview_dialog { # TODO $w = ugtk2->new(N("Software Management")); ## set new title to get it in dialog - yui::YUI::app()->setApplicationTitle($loc->N("Here is the list of software package updates")); + yui::YUI::app()->setApplicationTitle($loc->N("Software Management")); ## set icon if not already set by external launcher yui::YUI::app()->setApplicationIcon("/usr/share/mcc/themes/default/MageiaUpdate.png"); @@ -198,6 +198,16 @@ sub run_treeview_dialog { my $vbox = $factory->createVBox( $dialog ); + #Line for logo and title + my $hbox_iconbar = $factory->createHBox($vbox); + my $head_align_left = $factory->createLeft($hbox_iconbar); + $hbox_iconbar = $factory->createHBox($head_align_left); + my $wm_icon = File::ShareDir::dist_file(AdminPanel::Shared::distName(), $update_icons{'title'}->{icon}); + $factory->createImage($hbox_iconbar, $wm_icon); + + $factory->createHeading($hbox_iconbar, $update_icons{'title'}->{text}); + + my $yTableHeader = new yui::YTableHeader(); # checkbox $yTableHeader->addColumn("", $yui::YAlignCenter); diff --git a/share/images/rpmdragora/title-update.png b/share/images/rpmdragora/title-update.png Binary files differnew file mode 100644 index 00000000..753de690 --- /dev/null +++ b/share/images/rpmdragora/title-update.png |