aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-08-18 12:58:42 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-08-18 12:58:42 +0000
commit16a44a4ac1d6c651b55dbe11b537dfdb33eb6890 (patch)
tree82c9a16c3369806e35cc4cfaeac2c7632ff2c9ee
parent5fbbbcdc22f6b4bf0973b816c4f5638bf1b8d532 (diff)
downloadrpmdrake-16a44a4ac1d6c651b55dbe11b537dfdb33eb6890.tar
rpmdrake-16a44a4ac1d6c651b55dbe11b537dfdb33eb6890.tar.gz
rpmdrake-16a44a4ac1d6c651b55dbe11b537dfdb33eb6890.tar.bz2
rpmdrake-16a44a4ac1d6c651b55dbe11b537dfdb33eb6890.tar.xz
rpmdrake-16a44a4ac1d6c651b55dbe11b537dfdb33eb6890.zip
Display a wait cursor on the whole window when a wait message is displayed on
the status bar.
-rwxr-xr-xrpmdrake2
-rw-r--r--rpmdrake.pm2
2 files changed, 3 insertions, 1 deletions
diff --git a/rpmdrake b/rpmdrake
index 02444310..660f74d9 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -153,7 +153,7 @@ sub invalidate_cancel_forever {
package main;
-my $w;
+our $w;
my $changelog_first;
my $treeview_dialog_run = 0;
our $statusbar;
diff --git a/rpmdrake.pm b/rpmdrake.pm
index 69245c8d..a818b801 100644
--- a/rpmdrake.pm
+++ b/rpmdrake.pm
@@ -343,6 +343,7 @@ sub statusbar_msg {
my ($msg) = @_;
#- always use the same context description for now
my $cx = $::statusbar->get_context_id("foo");
+ $::w and $::w->{rwindow} and gtkset_mousecursor_wait($::w->{rwindow}->window);
#- returns a msg_id to be passed optionnally to statusbar_msg_remove
$::statusbar->push($cx, $msg);
}
@@ -358,6 +359,7 @@ sub statusbar_msg_remove {
} else {
$::statusbar->pop($cx);
}
+ $::w and $::w->{rwindow} and gtkset_mousecursor_normal($::w->{rwindow}->window);
}
sub slow_func_statusbar ($$&) {