You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Daniel Drake 4e137f6e4f sugar-activity: import and make independent of sugar-toolkit GTK versions
As we move to adding support for a second UI toolkit (GTK+ 3.x),
the sugar-activity binary used by all activities must become
backend-toolkit-independent. It would be wasteful to have two backend
toolkits loaded in memory, and in the GTK2/GTK3 case, it is impossible
(importing both results in an instant crash).

To achieve this, we split the existing sugar-toolkit activity/main.py:main()
functionality into two parts, moving it into the sugar-activity binary and
the Activity class as follows:
 1. All toolkit-specific stuff is moved into the Activity class (i.e.
   everything that interacts with GTK)
 2. Everything that can be reasonably/easily moved into the Activity class
   is also moved.
 3. What remains is the stuff that is inherently involved with the
   construction of the Activity object, not related to UI toolkits. This
   is moved into the sugar-activity binary.

main.py is then removed from sugar-toolkit, and sugar-activity is moved
from sugar to sugar-toolkit-gtk3 in order to keep toolkit-related code
with the toolkit itself.

With this work done, the one remaining question is how to invoke the main
loop. An optional run_main_loop() method is added to the activity class,
for GTK2 this will run the GTK2 main loop, for GTK3 the GTK3 main loop will
be run, etc.

Signed-off-by: Daniel Drake <dsd@laptop.org>
13 years ago
..
activity sugar-activity: import and make independent of sugar-toolkit GTK versions 13 years ago
bundle Fix broken imports 13 years ago
datastore Run pygi-convert.sh for automatic conversion from GTK2 to GTK3 + pygi. 13 years ago
dispatch Import sugar-base into sugar-toolkit 13 years ago
graphics Use rsvg wrapper while rsvg gains introspection support 13 years ago
presence Run pygi-convert.sh for automatic conversion from GTK2 to GTK3 + pygi. 13 years ago
.gitignore Rename the module to sugar3 13 years ago
.license Rename the module to sugar3 13 years ago
Makefile.am Import sugar-base into sugar-toolkit 13 years ago
__init__.py Import sugar-base into sugar-toolkit 13 years ago
_sugarbaseext.defs Import sugar-base into sugar-toolkit 13 years ago
_sugarbaseext.override Import sugar-base into sugar-toolkit 13 years ago
_sugarbaseextmodule.c Import sugar-base into sugar-toolkit 13 years ago
acme-volume-alsa.c Rename the module to sugar3 13 years ago
acme-volume-alsa.h Rename the module to sugar3 13 years ago
acme-volume.c Rename the module to sugar3 13 years ago
acme-volume.h Rename the module to sugar3 13 years ago
eggaccelerators.c Port key handling code to GTK3 13 years ago
eggaccelerators.h Switch sugarext to be an introspectable library 13 years ago
eggdesktopfile.c Port key handling code to GTK3 13 years ago
eggdesktopfile.h Rename the module to sugar3 13 years ago
eggsmclient-private.h Switch sugarext to be an introspectable library 13 years ago
eggsmclient-xsmp.c Replace deprecated gdk_set_sm_client_id() invocation 13 years ago
eggsmclient.c Rename the module to sugar3 13 years ago
eggsmclient.h Rename the module to sugar3 13 years ago
env.py Rename the module to sugar3 13 years ago
gdk-wrapper.c Add GdkWrapper to access non-introspectable Gdk API 13 years ago
gdk-wrapper.h Add GdkWrapper to access non-introspectable Gdk API 13 years ago
gsm-app.c Rename the module to sugar3 13 years ago
gsm-app.h Rename the module to sugar3 13 years ago
gsm-client-xsmp.c Rename the module to sugar3 13 years ago
gsm-client-xsmp.h Rename the module to sugar3 13 years ago
gsm-client.c Rename the module to sugar3 13 years ago
gsm-client.h Rename the module to sugar3 13 years ago
gsm-session.c Switch sugarext to be an introspectable library 13 years ago
gsm-session.h Rename the module to sugar3 13 years ago
gsm-xsmp.c Rename the module to sugar3 13 years ago
gsm-xsmp.h Rename the module to sugar3 13 years ago
logger.py Import sugar-base into sugar-toolkit 13 years ago
mime.py Import sugar-base into sugar-toolkit 13 years ago
network.py Run pygi-convert.sh for automatic conversion from GTK2 to GTK3 + pygi. 13 years ago
profile.py Run pygi-convert.sh for automatic conversion from GTK2 to GTK3 + pygi. 13 years ago
rsvg-wrapper.c Add wrapper for rsvg 13 years ago
rsvg-wrapper.h Add wrapper for rsvg 13 years ago
session.py Run pygi-convert.sh for automatic conversion from GTK2 to GTK3 + pygi. 13 years ago
sugar-grid.c Rename the module to sugar3 13 years ago
sugar-grid.h Rename the module to sugar3 13 years ago
sugar-key-grabber.c Port key handling code to GTK3 13 years ago
sugar-key-grabber.h Switch sugarext to be an introspectable library 13 years ago
sugar-marshal.list Rename the module to sugar3 13 years ago
sugar-menu.c Rename the module to sugar3 13 years ago
sugar-menu.h Switch sugarext to be an introspectable library 13 years ago
util.py Rename the module to sugar3 13 years ago
wm.py Add GdkWrapper to access non-introspectable Gdk API 13 years ago
xdgmime.c Import sugar-base into sugar-toolkit 13 years ago
xdgmime.h Import sugar-base into sugar-toolkit 13 years ago
xdgmimealias.c Import sugar-base into sugar-toolkit 13 years ago
xdgmimealias.h Import sugar-base into sugar-toolkit 13 years ago
xdgmimecache.c Import sugar-base into sugar-toolkit 13 years ago
xdgmimecache.h Import sugar-base into sugar-toolkit 13 years ago
xdgmimeglob.c Import sugar-base into sugar-toolkit 13 years ago
xdgmimeglob.h Import sugar-base into sugar-toolkit 13 years ago
xdgmimeint.c Import sugar-base into sugar-toolkit 13 years ago
xdgmimeint.h Import sugar-base into sugar-toolkit 13 years ago
xdgmimemagic.c Import sugar-base into sugar-toolkit 13 years ago
xdgmimemagic.h Import sugar-base into sugar-toolkit 13 years ago
xdgmimeparent.c Import sugar-base into sugar-toolkit 13 years ago
xdgmimeparent.h Import sugar-base into sugar-toolkit 13 years ago