diff options
author | Andy Hertzfeld <andy@src.gnome.org> | 2000-08-30 09:08:42 +0000 |
---|---|---|
committer | Andy Hertzfeld <andy@src.gnome.org> | 2000-08-30 09:08:42 +0000 |
commit | b07d1d4cf31c63a1dd357d054cd39813e6b3dc77 (patch) | |
tree | 845e6a9acc7a93e8ccc24e2e0847c8bca0ab10fc /src/nautilus-window-toolbars.c | |
parent | 1cd321c684850a3d4ca2a42abe66ba5fb776caa9 (diff) | |
download | nautilus-b07d1d4cf31c63a1dd357d054cd39813e6b3dc77.tar.gz |
added a netscape like throbber to give busy feedback while loading pages.
added a netscape like throbber to give busy feedback while loading
pages. It uses a generic image from Arlo, but different themes
can/will include other animations. There's still a little more left
to do.
Diffstat (limited to 'src/nautilus-window-toolbars.c')
-rw-r--r-- | src/nautilus-window-toolbars.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/nautilus-window-toolbars.c b/src/nautilus-window-toolbars.c index c1fc8987c..3260faa08 100644 --- a/src/nautilus-window-toolbars.c +++ b/src/nautilus-window-toolbars.c @@ -29,6 +29,7 @@ #include <config.h> #include "nautilus-application.h" +#include "nautilus-throbber.h" #include "nautilus-toolbar.h" #include "nautilus-window-private.h" #include "nautilus-window.h" @@ -329,6 +330,18 @@ set_up_toolbar_images (NautilusWindow *window) g_free(theme_name); } +static GtkWidget* +allocate_throbber (GtkWidget *toolbar) +{ + GtkWidget *throbber; + + throbber = nautilus_throbber_new (); + gtk_widget_show (throbber); + gtk_toolbar_append_widget (GTK_TOOLBAR (toolbar), throbber, NULL, NULL); + nautilus_toolbar_set_throbber (NAUTILUS_TOOLBAR (toolbar), throbber); + return throbber; +} + static void set_up_toolbar_images_callback (gpointer callback_data) { @@ -349,8 +362,10 @@ nautilus_window_initialize_toolbars (NautilusWindow *window) gtk_toolbar_set_style (GTK_TOOLBAR (toolbar), GTK_TOOLBAR_BOTH); nautilus_toolbar_set_button_spacing (NAUTILUS_TOOLBAR (toolbar), 50); - gnome_app_fill_toolbar_with_data (GTK_TOOLBAR (toolbar), toolbar_info, app->accel_group, app); + gnome_app_fill_toolbar_with_data (GTK_TOOLBAR (toolbar), toolbar_info, app->accel_group, app); remember_buttons(window, toolbar_info); + window->throbber = allocate_throbber (toolbar); + set_up_toolbar_images (window); gnome_app_set_toolbar (app, GTK_TOOLBAR (toolbar)); |