Commit Graph

32 Commits

Author SHA1 Message Date
Marco Pesenti Gritti
0d6760b194 Do not fail is lang is not set 2007-06-28 22:40:37 +02:00
Tomeu Vizoso
6c0885b490 Check type of bundle path by os.path.isdir(). 2007-06-15 16:48:53 +02:00
Tomeu Vizoso
cb9dd212e9 Add to Bundle facilities for dealing with not-yet-installed bundles. 2007-06-15 11:36:08 +02:00
Tomeu Vizoso
22689ed1da Several fixes for the object type registry and the activity registry. 2007-06-12 21:57:49 +02:00
Marco Pesenti Gritti
fc53bf8667 Support icons inside the activity 2007-05-31 11:30:16 +02:00
Marco Pesenti Gritti
42fef182f4 Refactor the bundle registry. Move it inside
the shell and expose the parts that should be
public to the shell dbus service.
2007-05-27 20:24:10 +02:00
Marco Pesenti Gritti
98c5c0734e Add API to get the mime types 2007-05-24 17:53:57 +02:00
Bert Freudenberg
6dd2f7109c Find executable in bundle (approved by marcopg, fix for #1362) 2007-05-17 13:18:56 +02:00
Dan Williams
894fcea9fc Remove get_default_type() and bundle default types; obsolete 2007-04-11 15:08:40 -04:00
Marco Pesenti Gritti
73f2577397 First go at the new type registry. 2007-04-11 14:06:27 +02:00
Mike C. Fletcher
3f10890319 Docstrings for modules all over sugar and shell.
These are just the doc strings I created as I was spelunking
through to see how Sugar manages launching applications.  The
resulting auto-documentation is neither polished or finished,
but it should help people reading the code somewhat.

There are a few minor code cleanups:

  * activityhandle (replacing C idiom for initialisation with
    a Python one)
  * bundle registry (using a parameterised directory name so
    that it shows up in the documentation)
  * validate_activity_id function, use isinstance( item, (str,unicode))
    for the query, rather than two separate checks with isinstance
2007-04-09 22:47:37 -04:00
Marco Pesenti Gritti
aa8debb4cb Fix up translations support 2007-03-23 18:18:42 +01:00
Marco Pesenti Gritti
ba242f34b7 Fix locale path handling 2007-03-23 17:43:40 +01:00
Marco Pesenti Gritti
d17e733677 Add support to read linfo.
Refactor locale to actually use gettext.
2007-03-23 17:27:31 +01:00
Marco Pesenti Gritti
d3493aea9e Smarter sugar-activity which can make itself the factory and open
one instance.
2007-03-09 16:35:53 +01:00
Marco Pesenti Gritti
57c928916c Refactor sugar.env and paths 2007-03-09 14:57:54 +01:00
Owen Williams
2c7a22b157 Fix bug for activities with spaces in the name 2007-03-06 08:01:46 -05:00
Marco Pesenti Gritti
02f375b710 Add a class attribute as per the updated spec.
Cleanups.
2007-02-22 15:46:13 +01:00
Marco Pesenti Gritti
7db372cc1c Make bundle registry a singleton. Get the object path from the registry. 2007-02-21 17:53:44 +01:00
Marco Pesenti Gritti
6527077928 Do not look in the icon theme for activity icons 2007-01-31 15:00:13 -05:00
Marco Pesenti Gritti
4c07e090fa Get the icon from activity not root 2007-01-12 21:48:06 +01:00
Marco Pesenti Gritti
6971ddb9a4 Support for activity icons inside the bundle.
Patch by Gonzalo Odiard <godiard@gmail.com>
Modified by me to allow icon theme to override the bundle one.
2007-01-12 21:35:53 +01:00
Marco Pesenti Gritti
99cce220cd Get the default type from env, clean stuff a bit 2006-12-20 13:43:54 +01:00
Justin Gallardo
b9f9ef0fe9 Changed all tabs to 4 spaces for python style 2006-12-04 11:12:24 -08:00
Marco Pesenti Gritti
6bdda47901 Since service name and bundle id corrisponds, there
is no need to query the register anymore.
2006-12-01 22:22:09 +01:00
Marco Pesenti Gritti
503d21cff4 show_launcher true by default 2006-11-03 16:18:03 +01:00
Marco Pesenti Gritti
da3c550bfd Fix show_launcher logic 2006-11-03 16:01:46 +01:00
Marco Pesenti Gritti
26b04db5e3 Add activity_version support 2006-11-02 11:10:37 +01:00
Marco Pesenti Gritti
cb285aba06 Get running activities to work. Still hacky. 2006-10-31 12:06:28 +01:00
Marco Pesenti Gritti
92f37d31da Several fixes, generate the service, add a test bundle 2006-10-31 10:48:45 +01:00
Marco Pesenti Gritti
d150ac40cc More work on bundles support 2006-10-29 19:05:09 +01:00
Marco Pesenti Gritti
87274fd89f Initial bundle registry code 2006-10-29 18:28:48 +01:00