Commit 683007c2 authored by Jonas Smedegaard's avatar Jonas Smedegaard

Imported Upstream version 0.106.0

parents d94a90d6 f215d205
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69 for sugar-toolkit-gtk3 0.105.3.
# Generated by GNU Autoconf 2.69 for sugar-toolkit-gtk3 0.106.0.
#
#
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
......@@ -587,8 +587,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='sugar-toolkit-gtk3'
PACKAGE_TARNAME='sugar-toolkit-gtk3'
PACKAGE_VERSION='0.105.3'
PACKAGE_STRING='sugar-toolkit-gtk3 0.105.3'
PACKAGE_VERSION='0.106.0'
PACKAGE_STRING='sugar-toolkit-gtk3 0.106.0'
PACKAGE_BUGREPORT=''
PACKAGE_URL=''
......@@ -1395,7 +1395,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
\`configure' configures sugar-toolkit-gtk3 0.105.3 to adapt to many kinds of systems.
\`configure' configures sugar-toolkit-gtk3 0.106.0 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
......@@ -1466,7 +1466,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of sugar-toolkit-gtk3 0.105.3:";;
short | recursive ) echo "Configuration of sugar-toolkit-gtk3 0.106.0:";;
esac
cat <<\_ACEOF
......@@ -1586,7 +1586,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
sugar-toolkit-gtk3 configure 0.105.3
sugar-toolkit-gtk3 configure 0.106.0
generated by GNU Autoconf 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
......@@ -1951,7 +1951,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by sugar-toolkit-gtk3 $as_me 0.105.3, which was
It was created by sugar-toolkit-gtk3 $as_me 0.106.0, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ $0 $@
......@@ -2820,7 +2820,7 @@ fi
# Define the identity of the package.
PACKAGE='sugar-toolkit-gtk3'
VERSION='0.105.3'
VERSION='0.106.0'
cat >>confdefs.h <<_ACEOF
......@@ -14009,7 +14009,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by sugar-toolkit-gtk3 $as_me 0.105.3, which was
This file was extended by sugar-toolkit-gtk3 $as_me 0.106.0, which was
generated by GNU Autoconf 2.69. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
......@@ -14066,7 +14066,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
sugar-toolkit-gtk3 config.status 0.105.3
sugar-toolkit-gtk3 config.status 0.106.0
configured by $0, generated by GNU Autoconf 2.69,
with options \\"\$ac_cs_config\\"
......
AC_INIT([sugar-toolkit-gtk3],[0.105.3],[],[sugar-toolkit-gtk3])
AC_INIT([sugar-toolkit-gtk3],[0.106.0],[],[sugar-toolkit-gtk3])
AC_PREREQ([2.59])
......
......@@ -83,6 +83,7 @@ from sugar3.graphics.alert import Alert
from sugar3.graphics.icon import Icon
from sugar3.datastore import datastore
from sugar3.bundle.activitybundle import get_bundle_instance
from sugar3.bundle.helpers import bundle_from_dir
from gi.repository import SugarExt
_ = lambda msg: gettext.dgettext('sugar-toolkit-gtk3', msg)
......@@ -1166,3 +1167,14 @@ def launch_bundle(bundle_id='', object_id=''):
obj = bus.get_object(J_DBUS_SERVICE, J_DBUS_PATH)
bundle_launcher = dbus.Interface(obj, J_DBUS_INTERFACE)
return bundle_launcher.LaunchBundle(bundle_id, object_id)
def get_bundle(bundle_id='', object_id=''):
bus = dbus.SessionBus()
obj = bus.get_object(J_DBUS_SERVICE, J_DBUS_PATH)
journal = dbus.Interface(obj, J_DBUS_INTERFACE)
bundle_path = journal.GetBundlePath(bundle_id, object_id)
if bundle_path:
return bundle_from_dir(bundle_path)
else:
return None
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment