diff options
author | Angelo Naselli <angelo.naselli@softeco.it> | 2013-11-21 11:50:56 +0100 |
---|---|---|
committer | Angelo Naselli <angelo.naselli@softeco.it> | 2013-11-21 11:50:56 +0100 |
commit | c7e7c41ed2b276334702453dbd4f7bc8905f4a86 (patch) | |
tree | 495ca648d0298d5e7311b0d920085a7714a8ce84 | |
parent | 5da40e88c8abd7a5f02ed445853890c0782fe271 (diff) | |
download | manatools-c7e7c41ed2b276334702453dbd4f7bc8905f4a86.tar manatools-c7e7c41ed2b276334702453dbd4f7bc8905f4a86.tar.gz manatools-c7e7c41ed2b276334702453dbd4f7bc8905f4a86.tar.bz2 manatools-c7e7c41ed2b276334702453dbd4f7bc8905f4a86.tar.xz manatools-c7e7c41ed2b276334702453dbd4f7bc8905f4a86.zip |
Managed MODE to get title and icon
-rwxr-xr-x | modules/rpmdragora/rpmdragora | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/modules/rpmdragora/rpmdragora b/modules/rpmdragora/rpmdragora index 26059669..046c70d6 100755 --- a/modules/rpmdragora/rpmdragora +++ b/modules/rpmdragora/rpmdragora @@ -51,7 +51,9 @@ use AdminPanel::Rpmdragora::widgets; use feature 'state'; # OLD $ugtk2::wm_icon = get_icon('installremoverpm', "title-$MODE"); -my $wm_icon = "/usr/share/mcc/themes/default/installremoverpm.png"; +#TODO fix $wm_resource_path +my $wm_resource_path="/usr/share/rpmdrake/icons"; +my $wm_icon = "$wm_resource_path"."/title-$MODE.png"; # Declarations my $my_win; @@ -373,10 +375,9 @@ sub run_treeview_dialog { my $hbox_iconbar = $factory->createHBox($vbox); $head_align_left = $factory->createLeft($hbox_iconbar); $hbox_iconbar = $factory->createHBox($head_align_left); - # TODO manage MODE for title and icon - $factory->createImage($hbox_iconbar, "/usr/share/rpmdrake/icons/title-install.png"); - $factory->createHeading($hbox_iconbar, N("Software Management")); -# Gtk2::Banner->new($ugtk2::wm_icon, $::MODE eq 'update' ? N("Software Packages Update") : N("Software Management")) + $factory->createImage($hbox_iconbar, $wm_icon); + + $factory->createHeading($hbox_iconbar, $::MODE eq 'update' ? N("Software Packages Update") : N("Software Management")); my $hbox_top = $factory->createHBox($vbox); my $hbox_middle = $factory->createHBox($vbox); |