diff options
Diffstat (limited to 'components/throbber/nautilus-throbber.c')
-rw-r--r-- | components/throbber/nautilus-throbber.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/components/throbber/nautilus-throbber.c b/components/throbber/nautilus-throbber.c index 806ec864e..fb2a20efe 100644 --- a/components/throbber/nautilus-throbber.c +++ b/components/throbber/nautilus-throbber.c @@ -107,7 +107,8 @@ nautilus_throbber_initialize_class (NautilusThrobberClass *throbber_class) enum { THROBBING, - LOCATION + LOCATION, + CONFIGURATION } MyArgs; @@ -143,8 +144,12 @@ get_bonobo_properties (BonoboPropertyBag *bag, BONOBO_ARG_SET_STRING (arg, ""); } + break; } + case CONFIGURATION: + BONOBO_ARG_SET_STRING (arg, ""); + break; default: g_warning ("Unhandled arg %d", arg_id); break; @@ -177,6 +182,13 @@ set_bonobo_properties (BonoboPropertyBag *bag, break; } + /* respond to configuration calls by starting the throbber */ + case CONFIGURATION: + { + nautilus_throbber_start (throbber); + break; + } + default: g_warning ("Unhandled arg %d", arg_id); break; @@ -289,6 +301,9 @@ nautilus_throbber_initialize (NautilusThrobber *throbber) "Throbber active", 0); bonobo_property_bag_add (throbber->details->property_bag, "location", LOCATION, BONOBO_ARG_STRING, NULL, "associated URL", 0); + + bonobo_property_bag_add (throbber->details->property_bag, "configuration", CONFIGURATION, BONOBO_ARG_STRING, NULL, + "Throbber image source", BONOBO_PROPERTY_WRITEABLE); /* allocate the pixmap that holds the image */ nautilus_throbber_load_images (throbber); |