summaryrefslogtreecommitdiff
path: root/rhimport
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2010-06-08 12:47:27 (GMT)
committerChristian Pointner <equinox@helsinki.at>2010-06-08 12:47:27 (GMT)
commit5b7e717eb91aba37b30c12b3e47ef68592166fbe (patch)
tree2e4ecd11360059297ef8586e32bdb1dce28737c4 /rhimport
parent5b2f5155fa61cfb923288001be1d8bfb5992850b (diff)
open used carts window with corret title
Diffstat (limited to 'rhimport')
-rwxr-xr-xrhimport13
1 files changed, 9 insertions, 4 deletions
diff --git a/rhimport b/rhimport
index 20a814f..b3f0c20 100755
--- a/rhimport
+++ b/rhimport
@@ -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()