aboutsummaryrefslogtreecommitdiffstats
path: root/modules/rpmdragora
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2014-11-17 21:56:37 +0100
committerAngelo Naselli <anaselli@linux.it>2014-11-17 21:56:37 +0100
commit41de9ecd40f7dd07743f02aec9853c3a61aaee9a (patch)
tree6b2077d049ef717f3d156895e0d24fee6a69eaca /modules/rpmdragora
parent1bd5a460aa491d3280d66e8ba8f5dc0895644fcd (diff)
downloadcolin-keep-41de9ecd40f7dd07743f02aec9853c3a61aaee9a.tar
colin-keep-41de9ecd40f7dd07743f02aec9853c3a61aaee9a.tar.gz
colin-keep-41de9ecd40f7dd07743f02aec9853c3a61aaee9a.tar.bz2
colin-keep-41de9ecd40f7dd07743f02aec9853c3a61aaee9a.tar.xz
colin-keep-41de9ecd40f7dd07743f02aec9853c3a61aaee9a.zip
added log and title
Diffstat (limited to 'modules/rpmdragora')
-rwxr-xr-xmodules/rpmdragora/dragoraUpdate16
1 files changed, 13 insertions, 3 deletions
diff --git a/modules/rpmdragora/dragoraUpdate b/modules/rpmdragora/dragoraUpdate
index a0ee144..c37e256 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);