diff options
author | Christian Pointner <equinox@helsinki.at> | 2010-06-08 12:47:27 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2010-06-08 12:47:27 (GMT) |
commit | 5b7e717eb91aba37b30c12b3e47ef68592166fbe (patch) | |
tree | 2e4ecd11360059297ef8586e32bdb1dce28737c4 /rhimport | |
parent | 5b2f5155fa61cfb923288001be1d8bfb5992850b (diff) |
open used carts window with corret title
Diffstat (limited to 'rhimport')
-rwxr-xr-x | rhimport | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -337,10 +337,15 @@ sub show_used_carts_gui() $l_status->set_label("Carts: $low_cart - $high_cart"); } -# my $usedcartswin = $guixml->get_widget('usedcartswin'); -# $usedcartswin or die "can't find Widget"; -# $usedcartswin->resize(640,480); -# $usedcartswin->show; + my $usedcartswin = Gtk2::Window->new(); + $usedcartswin or die "can't open new window"; + $usedcartswin->resize(640,480); + if($low_cart eq $high_cart) { + $usedcartswin->set_title("Cart: $low_cart"); + } else { + $usedcartswin->set_title("Carts: $low_cart - $high_cart"); + } + $usedcartswin->show; } sub clear_status_gui() |