diff options
author | Andy Hertzfeld <andy@src.gnome.org> | 2001-01-18 23:43:48 +0000 |
---|---|---|
committer | Andy Hertzfeld <andy@src.gnome.org> | 2001-01-18 23:43:48 +0000 |
commit | b871057295b112e7d59760b23da1bf582334dd56 (patch) | |
tree | bd6ad208e121ec0ee341d5fbed8e8c1d4e208df5 | |
parent | 3cb6510f2a1d069d6bd367418186d8cd25e1293f (diff) | |
download | nautilus-b871057295b112e7d59760b23da1bf582334dd56.tar.gz |
now that the bonobo problems are resolved, we can go back to the
now that the bonobo problems are resolved, we can go back to
the componentized throbber.
* src/Makefile.am:
* src/nautilus-window-toolbars.c:
(nautilus_window_initialize_toolbars):
* src/nautilus-window.c: (throbber_location_changed_callback),
(nautilus_window_constructed), (nautilus_window_destroy),
(nautilus_window_allow_stop):
* src/nautilus-window.h:
-rw-r--r-- | ChangeLog | 15 | ||||
-rw-r--r-- | src/Makefile.am | 2 | ||||
-rw-r--r-- | src/nautilus-navigation-window.c | 23 | ||||
-rw-r--r-- | src/nautilus-navigation-window.h | 3 | ||||
-rw-r--r-- | src/nautilus-object-window.c | 23 | ||||
-rw-r--r-- | src/nautilus-object-window.h | 3 | ||||
-rw-r--r-- | src/nautilus-spatial-window.c | 23 | ||||
-rw-r--r-- | src/nautilus-spatial-window.h | 3 | ||||
-rw-r--r-- | src/nautilus-window-toolbars.c | 18 | ||||
-rw-r--r-- | src/nautilus-window.c | 23 | ||||
-rw-r--r-- | src/nautilus-window.h | 3 |
11 files changed, 21 insertions, 118 deletions
@@ -1,3 +1,16 @@ +2001-01-18 Andy Hertzfeld <andy@eazel.com> + + now that the bonobo problems are resolved, we can go back to + the componentized throbber. + + * src/Makefile.am: + * src/nautilus-window-toolbars.c: + (nautilus_window_initialize_toolbars): + * src/nautilus-window.c: (throbber_location_changed_callback), + (nautilus_window_constructed), (nautilus_window_destroy), + (nautilus_window_allow_stop): + * src/nautilus-window.h: + 2001-01-18 Michael Engber <engber@eazel.com> reviewed by: John Sullivan @@ -16,7 +29,6 @@ The desktop can now be reset to the "default" meaning when you change themes it will use the default desktop setting for the new theme - bug 5730. - 2001-01-18 Arlo Rose <arlo@eazel.com> @@ -344,7 +356,6 @@ that were doing this independently (one of which is where the code for the gnome-vfs routine came from). ->>>>>>> 1.3409 2001-01-18 John Sullivan <sullivan@eazel.com> Fixed bug 5260: (Should revise 'Music view is unable to play diff --git a/src/Makefile.am b/src/Makefile.am index 7eecf6c20..30e18c842 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -83,7 +83,6 @@ noinst_HEADERS = \ nautilus-switchable-navigation-bar.h \ nautilus-switchable-search-bar.h \ nautilus-theme-selector.h \ - nautilus-throbber.h \ nautilus-view-frame-private.h \ nautilus-view-frame.h \ nautilus-window-manage-views.h \ @@ -123,7 +122,6 @@ nautilus_SOURCES = \ nautilus-switchable-navigation-bar.c \ nautilus-switchable-search-bar.c \ nautilus-theme-selector.c \ - nautilus-throbber.c \ nautilus-view-frame-corba.c \ nautilus-view-frame.c \ nautilus-window-manage-views.c \ diff --git a/src/nautilus-navigation-window.c b/src/nautilus-navigation-window.c index 0f851c53b..580902f66 100644 --- a/src/nautilus-navigation-window.c +++ b/src/nautilus-navigation-window.c @@ -36,7 +36,6 @@ #include "nautilus-sidebar.h" #include "nautilus-signaller.h" #include "nautilus-switchable-navigation-bar.h" -#include "nautilus-throbber.h" #include "nautilus-window-manage-views.h" #include "nautilus-window-service-ui.h" #include "nautilus-zoom-control.h" @@ -390,7 +389,6 @@ menu_bar_no_resize_hack (NautilusWindow *window) } /* handle bonobo events from the throbber */ -/* static void throbber_location_changed_callback (BonoboListener *listener, char *event_name, @@ -404,7 +402,6 @@ throbber_location_changed_callback (BonoboListener *listener, location = BONOBO_ARG_GET_STRING (arg); nautilus_window_goto_uri (window, location); } -*/ static void nautilus_window_constructed (NautilusWindow *window) @@ -553,11 +550,6 @@ nautilus_window_constructed (NautilusWindow *window) nautilus_window_initialize_toolbars (window); /* watch for throbber location changes, too */ - /* watch for throbber location changes, too */ - gtk_signal_connect (GTK_OBJECT (window->throbber), "location_changed", - goto_uri_callback, window); - - /* if (window->throbber != NULL) { CORBA_Environment ev; Bonobo_PropertyBag property_bag; @@ -572,7 +564,6 @@ nautilus_window_constructed (NautilusWindow *window) } CORBA_exception_free (&ev); } - */ /* Set initial sensitivity of some buttons & menu items * now that they're all created. @@ -698,7 +689,6 @@ nautilus_window_destroy (GtkObject *object) } /* get rid of the CORBA objects */ - /* if (window->throbber != NULL) { CORBA_Environment ev; Bonobo_PropertyBag property_bag; @@ -714,7 +704,6 @@ nautilus_window_destroy (GtkObject *object) bonobo_object_release_unref (window->throbber, &ev); CORBA_exception_free (&ev); } - */ g_free (window->details); NAUTILUS_CALL_PARENT_CLASS (GTK_OBJECT_CLASS, destroy, (GTK_OBJECT (window))); @@ -1353,16 +1342,13 @@ nautilus_window_allow_reload (NautilusWindow *window, gboolean allow) void nautilus_window_allow_stop (NautilusWindow *window, gboolean allow) { - /* CORBA_Environment ev; Bonobo_PropertyBag property_bag; - */ nautilus_bonobo_set_sensitive (window->details->shell_ui, NAUTILUS_COMMAND_STOP, allow); if (window->throbber != NULL) { - /* CORBA_exception_init (&ev); property_bag = Bonobo_Control_getProperties (window->throbber, &ev); @@ -1370,14 +1356,7 @@ nautilus_window_allow_stop (NautilusWindow *window, gboolean allow) bonobo_property_bag_client_set_value_gboolean (property_bag, "throbbing", allow, &ev); bonobo_object_release_unref (property_bag, &ev); } - CORBA_exception_free (&ev); - */ - if (allow) { - nautilus_throbber_start (NAUTILUS_THROBBER (window->throbber)); - } else { - nautilus_throbber_stop (NAUTILUS_THROBBER (window->throbber)); - } - + CORBA_exception_free (&ev); } } diff --git a/src/nautilus-navigation-window.h b/src/nautilus-navigation-window.h index 3a2fb07ba..ed9b189b2 100644 --- a/src/nautilus-navigation-window.h +++ b/src/nautilus-navigation-window.h @@ -100,8 +100,7 @@ struct NautilusWindow { /* Widgets to keep track of (for state changes, etc) */ GtkWidget *zoom_control; - /* Bonobo_Unknown throbber; */ - GtkWidget *throbber; + Bonobo_Unknown throbber; /* Pending changes */ NautilusNavigationInfo *pending_ni; diff --git a/src/nautilus-object-window.c b/src/nautilus-object-window.c index 0f851c53b..580902f66 100644 --- a/src/nautilus-object-window.c +++ b/src/nautilus-object-window.c @@ -36,7 +36,6 @@ #include "nautilus-sidebar.h" #include "nautilus-signaller.h" #include "nautilus-switchable-navigation-bar.h" -#include "nautilus-throbber.h" #include "nautilus-window-manage-views.h" #include "nautilus-window-service-ui.h" #include "nautilus-zoom-control.h" @@ -390,7 +389,6 @@ menu_bar_no_resize_hack (NautilusWindow *window) } /* handle bonobo events from the throbber */ -/* static void throbber_location_changed_callback (BonoboListener *listener, char *event_name, @@ -404,7 +402,6 @@ throbber_location_changed_callback (BonoboListener *listener, location = BONOBO_ARG_GET_STRING (arg); nautilus_window_goto_uri (window, location); } -*/ static void nautilus_window_constructed (NautilusWindow *window) @@ -553,11 +550,6 @@ nautilus_window_constructed (NautilusWindow *window) nautilus_window_initialize_toolbars (window); /* watch for throbber location changes, too */ - /* watch for throbber location changes, too */ - gtk_signal_connect (GTK_OBJECT (window->throbber), "location_changed", - goto_uri_callback, window); - - /* if (window->throbber != NULL) { CORBA_Environment ev; Bonobo_PropertyBag property_bag; @@ -572,7 +564,6 @@ nautilus_window_constructed (NautilusWindow *window) } CORBA_exception_free (&ev); } - */ /* Set initial sensitivity of some buttons & menu items * now that they're all created. @@ -698,7 +689,6 @@ nautilus_window_destroy (GtkObject *object) } /* get rid of the CORBA objects */ - /* if (window->throbber != NULL) { CORBA_Environment ev; Bonobo_PropertyBag property_bag; @@ -714,7 +704,6 @@ nautilus_window_destroy (GtkObject *object) bonobo_object_release_unref (window->throbber, &ev); CORBA_exception_free (&ev); } - */ g_free (window->details); NAUTILUS_CALL_PARENT_CLASS (GTK_OBJECT_CLASS, destroy, (GTK_OBJECT (window))); @@ -1353,16 +1342,13 @@ nautilus_window_allow_reload (NautilusWindow *window, gboolean allow) void nautilus_window_allow_stop (NautilusWindow *window, gboolean allow) { - /* CORBA_Environment ev; Bonobo_PropertyBag property_bag; - */ nautilus_bonobo_set_sensitive (window->details->shell_ui, NAUTILUS_COMMAND_STOP, allow); if (window->throbber != NULL) { - /* CORBA_exception_init (&ev); property_bag = Bonobo_Control_getProperties (window->throbber, &ev); @@ -1370,14 +1356,7 @@ nautilus_window_allow_stop (NautilusWindow *window, gboolean allow) bonobo_property_bag_client_set_value_gboolean (property_bag, "throbbing", allow, &ev); bonobo_object_release_unref (property_bag, &ev); } - CORBA_exception_free (&ev); - */ - if (allow) { - nautilus_throbber_start (NAUTILUS_THROBBER (window->throbber)); - } else { - nautilus_throbber_stop (NAUTILUS_THROBBER (window->throbber)); - } - + CORBA_exception_free (&ev); } } diff --git a/src/nautilus-object-window.h b/src/nautilus-object-window.h index 3a2fb07ba..ed9b189b2 100644 --- a/src/nautilus-object-window.h +++ b/src/nautilus-object-window.h @@ -100,8 +100,7 @@ struct NautilusWindow { /* Widgets to keep track of (for state changes, etc) */ GtkWidget *zoom_control; - /* Bonobo_Unknown throbber; */ - GtkWidget *throbber; + Bonobo_Unknown throbber; /* Pending changes */ NautilusNavigationInfo *pending_ni; diff --git a/src/nautilus-spatial-window.c b/src/nautilus-spatial-window.c index 0f851c53b..580902f66 100644 --- a/src/nautilus-spatial-window.c +++ b/src/nautilus-spatial-window.c @@ -36,7 +36,6 @@ #include "nautilus-sidebar.h" #include "nautilus-signaller.h" #include "nautilus-switchable-navigation-bar.h" -#include "nautilus-throbber.h" #include "nautilus-window-manage-views.h" #include "nautilus-window-service-ui.h" #include "nautilus-zoom-control.h" @@ -390,7 +389,6 @@ menu_bar_no_resize_hack (NautilusWindow *window) } /* handle bonobo events from the throbber */ -/* static void throbber_location_changed_callback (BonoboListener *listener, char *event_name, @@ -404,7 +402,6 @@ throbber_location_changed_callback (BonoboListener *listener, location = BONOBO_ARG_GET_STRING (arg); nautilus_window_goto_uri (window, location); } -*/ static void nautilus_window_constructed (NautilusWindow *window) @@ -553,11 +550,6 @@ nautilus_window_constructed (NautilusWindow *window) nautilus_window_initialize_toolbars (window); /* watch for throbber location changes, too */ - /* watch for throbber location changes, too */ - gtk_signal_connect (GTK_OBJECT (window->throbber), "location_changed", - goto_uri_callback, window); - - /* if (window->throbber != NULL) { CORBA_Environment ev; Bonobo_PropertyBag property_bag; @@ -572,7 +564,6 @@ nautilus_window_constructed (NautilusWindow *window) } CORBA_exception_free (&ev); } - */ /* Set initial sensitivity of some buttons & menu items * now that they're all created. @@ -698,7 +689,6 @@ nautilus_window_destroy (GtkObject *object) } /* get rid of the CORBA objects */ - /* if (window->throbber != NULL) { CORBA_Environment ev; Bonobo_PropertyBag property_bag; @@ -714,7 +704,6 @@ nautilus_window_destroy (GtkObject *object) bonobo_object_release_unref (window->throbber, &ev); CORBA_exception_free (&ev); } - */ g_free (window->details); NAUTILUS_CALL_PARENT_CLASS (GTK_OBJECT_CLASS, destroy, (GTK_OBJECT (window))); @@ -1353,16 +1342,13 @@ nautilus_window_allow_reload (NautilusWindow *window, gboolean allow) void nautilus_window_allow_stop (NautilusWindow *window, gboolean allow) { - /* CORBA_Environment ev; Bonobo_PropertyBag property_bag; - */ nautilus_bonobo_set_sensitive (window->details->shell_ui, NAUTILUS_COMMAND_STOP, allow); if (window->throbber != NULL) { - /* CORBA_exception_init (&ev); property_bag = Bonobo_Control_getProperties (window->throbber, &ev); @@ -1370,14 +1356,7 @@ nautilus_window_allow_stop (NautilusWindow *window, gboolean allow) bonobo_property_bag_client_set_value_gboolean (property_bag, "throbbing", allow, &ev); bonobo_object_release_unref (property_bag, &ev); } - CORBA_exception_free (&ev); - */ - if (allow) { - nautilus_throbber_start (NAUTILUS_THROBBER (window->throbber)); - } else { - nautilus_throbber_stop (NAUTILUS_THROBBER (window->throbber)); - } - + CORBA_exception_free (&ev); } } diff --git a/src/nautilus-spatial-window.h b/src/nautilus-spatial-window.h index 3a2fb07ba..ed9b189b2 100644 --- a/src/nautilus-spatial-window.h +++ b/src/nautilus-spatial-window.h @@ -100,8 +100,7 @@ struct NautilusWindow { /* Widgets to keep track of (for state changes, etc) */ GtkWidget *zoom_control; - /* Bonobo_Unknown throbber; */ - GtkWidget *throbber; + Bonobo_Unknown throbber; /* Pending changes */ NautilusNavigationInfo *pending_ni; diff --git a/src/nautilus-window-toolbars.c b/src/nautilus-window-toolbars.c index e3a51e4a7..b603deda7 100644 --- a/src/nautilus-window-toolbars.c +++ b/src/nautilus-window-toolbars.c @@ -29,7 +29,6 @@ #include <config.h> #include "nautilus-application.h" -#include "nautilus-throbber.h" #include "nautilus-window-manage-views.h" #include "nautilus-window-private.h" #include "nautilus-window.h" @@ -353,9 +352,6 @@ set_up_back_or_forward_tool_bar_item (NautilusWindow *window, void nautilus_window_initialize_toolbars (NautilusWindow *window) { - GtkWidget *box; - - /* CORBA_Environment ev; CORBA_exception_init (&ev); window->throbber = bonobo_get_object ("OAFIID:nautilus_throbber", "IDL:Bonobo/Control:1.0", &ev); @@ -373,22 +369,8 @@ nautilus_window_initialize_toolbars (NautilusWindow *window) "/Tool Bar/ThrobberWrapper", window->throbber, &ev); - CORBA_exception_free (&ev); - */ - - window->throbber = nautilus_throbber_new (); - gtk_widget_show (window->throbber); - /* wrap it in another box to add some visual padding */ - box = gtk_hbox_new (FALSE, 0); - gtk_container_set_border_width (GTK_CONTAINER (box), 4); - gtk_widget_show (box); - gtk_container_add (GTK_CONTAINER (box), window->throbber); - - set_widget_for_bonobo_control (window, box, "/Tool Bar/ThrobberWrapper"); - - window->details->back_button_item = set_up_back_or_forward_tool_bar_item (window, _("Back"), "/Tool Bar/BackWrapper"); window->details->forward_button_item = set_up_back_or_forward_tool_bar_item diff --git a/src/nautilus-window.c b/src/nautilus-window.c index 0f851c53b..580902f66 100644 --- a/src/nautilus-window.c +++ b/src/nautilus-window.c @@ -36,7 +36,6 @@ #include "nautilus-sidebar.h" #include "nautilus-signaller.h" #include "nautilus-switchable-navigation-bar.h" -#include "nautilus-throbber.h" #include "nautilus-window-manage-views.h" #include "nautilus-window-service-ui.h" #include "nautilus-zoom-control.h" @@ -390,7 +389,6 @@ menu_bar_no_resize_hack (NautilusWindow *window) } /* handle bonobo events from the throbber */ -/* static void throbber_location_changed_callback (BonoboListener *listener, char *event_name, @@ -404,7 +402,6 @@ throbber_location_changed_callback (BonoboListener *listener, location = BONOBO_ARG_GET_STRING (arg); nautilus_window_goto_uri (window, location); } -*/ static void nautilus_window_constructed (NautilusWindow *window) @@ -553,11 +550,6 @@ nautilus_window_constructed (NautilusWindow *window) nautilus_window_initialize_toolbars (window); /* watch for throbber location changes, too */ - /* watch for throbber location changes, too */ - gtk_signal_connect (GTK_OBJECT (window->throbber), "location_changed", - goto_uri_callback, window); - - /* if (window->throbber != NULL) { CORBA_Environment ev; Bonobo_PropertyBag property_bag; @@ -572,7 +564,6 @@ nautilus_window_constructed (NautilusWindow *window) } CORBA_exception_free (&ev); } - */ /* Set initial sensitivity of some buttons & menu items * now that they're all created. @@ -698,7 +689,6 @@ nautilus_window_destroy (GtkObject *object) } /* get rid of the CORBA objects */ - /* if (window->throbber != NULL) { CORBA_Environment ev; Bonobo_PropertyBag property_bag; @@ -714,7 +704,6 @@ nautilus_window_destroy (GtkObject *object) bonobo_object_release_unref (window->throbber, &ev); CORBA_exception_free (&ev); } - */ g_free (window->details); NAUTILUS_CALL_PARENT_CLASS (GTK_OBJECT_CLASS, destroy, (GTK_OBJECT (window))); @@ -1353,16 +1342,13 @@ nautilus_window_allow_reload (NautilusWindow *window, gboolean allow) void nautilus_window_allow_stop (NautilusWindow *window, gboolean allow) { - /* CORBA_Environment ev; Bonobo_PropertyBag property_bag; - */ nautilus_bonobo_set_sensitive (window->details->shell_ui, NAUTILUS_COMMAND_STOP, allow); if (window->throbber != NULL) { - /* CORBA_exception_init (&ev); property_bag = Bonobo_Control_getProperties (window->throbber, &ev); @@ -1370,14 +1356,7 @@ nautilus_window_allow_stop (NautilusWindow *window, gboolean allow) bonobo_property_bag_client_set_value_gboolean (property_bag, "throbbing", allow, &ev); bonobo_object_release_unref (property_bag, &ev); } - CORBA_exception_free (&ev); - */ - if (allow) { - nautilus_throbber_start (NAUTILUS_THROBBER (window->throbber)); - } else { - nautilus_throbber_stop (NAUTILUS_THROBBER (window->throbber)); - } - + CORBA_exception_free (&ev); } } diff --git a/src/nautilus-window.h b/src/nautilus-window.h index 3a2fb07ba..ed9b189b2 100644 --- a/src/nautilus-window.h +++ b/src/nautilus-window.h @@ -100,8 +100,7 @@ struct NautilusWindow { /* Widgets to keep track of (for state changes, etc) */ GtkWidget *zoom_control; - /* Bonobo_Unknown throbber; */ - GtkWidget *throbber; + Bonobo_Unknown throbber; /* Pending changes */ NautilusNavigationInfo *pending_ni; |