summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasmine Hassan <[email protected]>2012-10-27 17:02:32 +0200
committerJasmine Hassan <[email protected]>2012-11-16 09:45:52 +0200
commit9dc0c0cf31bbd72f0545ae79e724f2c98e38f43f (patch)
treef83ec5b4954eee390b3284fc6186864f5594e391
parentb1cb355a3a65d11101d55846803cbf0296e22da5 (diff)
downloadcaja-9dc0c0cf31bbd72f0545ae79e724f2c98e38f43f.tar.bz2
caja-9dc0c0cf31bbd72f0545ae79e724f2c98e38f43f.tar.xz
[window-toolbars] show/hide the spinner when changing its state
http://git.gnome.org/browse/nautilus/commit/?id=d72087b74c871ef82b1f6a13bb5bb72b38670a52 Including followup commit: window-toolbars: show/hide the spinner in the right order Apparently calling them in the wrong order makes new GTK+ crash. http://git.gnome.org/browse/nautilus/commit/?id=61906b05ec90d5d4759ae7ff7fc7aca40fb18f15
-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);
}
}