aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmodules/rpmdragora/dragoraUpdate16
-rw-r--r--share/images/rpmdragora/title-update.pngbin0 -> 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
new file mode 100644
index 00000000..753de690
--- /dev/null
+++ b/share/images/rpmdragora/title-update.png
Binary files differ