summaryrefslogtreecommitdiff
path: root/src/caja-window-toolbars.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2012-11-16 05:08:48 -0800
committerStefano Karapetsas <[email protected]>2012-11-16 05:08:48 -0800
commitdc66bc40724191f0068869773576dc4edf042c6f (patch)
tree74b9684feea188736b21f2c829f29befaaf2e9da /src/caja-window-toolbars.c
parent935e1fed604f48e68d125d205c890a59f46f8f21 (diff)
parent1466df20591105550738a1d0784a623af9909abf (diff)
downloadcaja-dc66bc40724191f0068869773576dc4edf042c6f.tar.bz2
caja-dc66bc40724191f0068869773576dc4edf042c6f.tar.xz
Merge pull request #42 from jasmineaura/develop
Bring Caja up to speed, stage1
Diffstat (limited to 'src/caja-window-toolbars.c')
-rw-r--r--src/caja-window-toolbars.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/caja-window-toolbars.c b/src/caja-window-toolbars.c
index d777ab41..1d6a22fb 100644
--- a/src/caja-window-toolbars.c
+++ b/src/caja-window-toolbars.c
@@ -59,19 +59,16 @@ caja_navigation_window_set_spinner_active (CajaNavigationWindow *window,
gboolean allow)
{
if (( window->details->spinner_active && allow) ||
- (!window->details->spinner_active && !allow))
- {
+ (!window->details->spinner_active && !allow)) {
return;
}
window->details->spinner_active = allow;
- if (allow)
- {
+ if (allow) {
+ gtk_widget_show (window->details->spinner);
gtk_spinner_start (GTK_SPINNER (window->details->spinner));
- }
- else
- {
- gtk_spinner_stop (GTK_SPINNER (window->details->spinner));
+ } else {
+ gtk_widget_hide (window->details->spinner);
}
}