@pheem49/mint 1.8.1 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Cargo.lock +3 -3
- package/Cargo.toml +1 -1
- package/README.md +0 -17
- package/Release_Note.md +137 -58
- package/bin/mint +0 -0
- package/crates/mint-cli/src/agent.rs +150 -45
- package/crates/mint-cli/src/image.rs +8 -8
- package/crates/mint-cli/src/main.rs +929 -412
- package/crates/mint-cli/src/onboard.rs +108 -108
- package/crates/mint-cli/src/setup.rs +143 -143
- package/crates/mint-core/src/agent_loop.rs +1 -0
- package/crates/mint-core/src/api_server.rs +108 -52
- package/crates/mint-core/src/browser.rs +56 -1
- package/crates/mint-core/src/channels.rs +1 -0
- package/crates/mint-core/src/chat.rs +126 -8
- package/crates/mint-core/src/code_tools.rs +18 -20
- package/crates/mint-core/src/config.rs +245 -17
- package/crates/mint-core/src/image_gen.rs +5 -5
- package/crates/mint-core/src/lib.rs +16 -2
- package/crates/mint-core/src/memory.rs +6 -1
- package/crates/mint-core/src/orchestration.rs +260 -72
- package/crates/mint-core/src/pictures.rs +3 -4
- package/crates/mint-core/src/semantic.rs +1 -1
- package/crates/mint-core/src/shell.rs +1 -1
- package/crates/mint-core/src/skills.rs +46 -19
- package/crates/mint-core/src/tts.rs +3 -1
- package/flatpak/com.pheem49.mint.desktop +9 -0
- package/flatpak/com.pheem49.mint.metainfo.xml +35 -0
- package/flatpak/com.pheem49.mint.yaml +52 -0
- package/package.json +1 -1
- package/shared-modules/.github/workflows/ci.yml +120 -0
- package/shared-modules/.github/workflows/update.yaml +28 -0
- package/shared-modules/CODEOWNERS +23 -0
- package/shared-modules/README.md +79 -0
- package/shared-modules/SDL/README.md +3 -0
- package/shared-modules/SDL/SDL-1.2.15.json +51 -0
- package/shared-modules/SDL/SDL_Pango-0.1.2-API-adds.patch +118 -0
- package/shared-modules/SDL/SDL_image-1.2.12.json +25 -0
- package/shared-modules/SDL/SDL_mixer-1.2.12.json +27 -0
- package/shared-modules/SDL/SDL_net-1.2.8.json +19 -0
- package/shared-modules/SDL/SDL_pango-0.1.2.json +26 -0
- package/shared-modules/SDL/SDL_ttf-2.0.11.json +28 -0
- package/shared-modules/SDL/libsdl-1.2.15-strict-prototypes.patch +316 -0
- package/shared-modules/SDL/sdl-check-for-SDL_VIDEO_X11_BACKINGSTORE.patch +24 -0
- package/shared-modules/SDL/sdl-libx11-build.patch +59 -0
- package/shared-modules/SDL/sdl-sysloadso-buffer-length.patch +27 -0
- package/shared-modules/SDL/sdl12-compat.json +22 -0
- package/shared-modules/SDL2/SDL2_image.json +27 -0
- package/shared-modules/SDL2/SDL2_ttf.json +29 -0
- package/shared-modules/cld2/CMakeLists.txt +157 -0
- package/shared-modules/cld2/cld2.json +24 -0
- package/shared-modules/clutter/clutter.json +72 -0
- package/shared-modules/dbus-glib/dbus-glib.json +29 -0
- package/shared-modules/glew/glew.json +36 -0
- package/shared-modules/glu/glu-9.json +12 -0
- package/shared-modules/gtk2/arc-gtk2-theme-Replace-Inkscape-dependency-with-rsvg-convert.patch +180 -0
- package/shared-modules/gtk2/gtk2-common-themes.json +360 -0
- package/shared-modules/gtk2/gtk2-fix-crash-in-show-uri.patch +30 -0
- package/shared-modules/gtk2/gtk2-gcc14.patch +281 -0
- package/shared-modules/gtk2/gtk2-gcc15.patch +250 -0
- package/shared-modules/gtk2/gtk2-murrine-c99.patch +34 -0
- package/shared-modules/gtk2/gtk2-use-adwaita-theme.patch +80 -0
- package/shared-modules/gtk2/gtk2.json +120 -0
- package/shared-modules/gtk2/ibus-gcc15.patch +13 -0
- package/shared-modules/gtk2/murrine-engine-fix-crash.patch +12 -0
- package/shared-modules/gtk2/readme.md +10 -0
- package/shared-modules/intltool/intltool-0.51.json +20 -0
- package/shared-modules/intltool/intltool-perl5.26-regex-fixes.patch +59 -0
- package/shared-modules/lame/0001-Build-xmm_quantize_sub.c-with-msse.patch +34 -0
- package/shared-modules/lame/0002-Include-GTK-1-autoconf-directives-in-build-system.patch +222 -0
- package/shared-modules/lame/0003-Patch-out-remaining-ansi2knr.patch +70 -0
- package/shared-modules/lame/0004-initscr-is-not-used-anywhere-in-lame-sourcetree.patch +41 -0
- package/shared-modules/lame/0005-Update-autoconf.patch +81 -0
- package/shared-modules/lame/lame-3.99.5.json +32 -0
- package/shared-modules/libappindicator/libappindicator-gtk2-12.10.json +140 -0
- package/shared-modules/libappindicator/libappindicator-gtk3-12.10.json +140 -0
- package/shared-modules/libappindicator/libappindicator-gtk3-introspection-12.10.json +140 -0
- package/shared-modules/libappindicator/patches/0001-libappindicator-ftbfs.patch +20 -0
- package/shared-modules/libappindicator/patches/0002-libappindicator-no-python.patch +888 -0
- package/shared-modules/libappindicator/patches/0003-libappindicator-fix-crash-from-incorrect-signal-emission.patch +74 -0
- package/shared-modules/libappindicator/patches/0004-libappindicator-fix-crash-iterating-icon-themes.patch +11 -0
- package/shared-modules/libayatana-appindicator/0001-Fix-HAVE_VALGRIND-AM_CONDITIONAL.patch +51 -0
- package/shared-modules/libayatana-appindicator/0001-Make-introspection-configurable.patch +44 -0
- package/shared-modules/libayatana-appindicator/libayatana-appindicator-gtk3.json +121 -0
- package/shared-modules/libcanberra/0001-gtk-Don-t-assume-all-GdkDisplays-are-GdkX11Displays-.patch +123 -0
- package/shared-modules/libcanberra/libcanberra.json +44 -0
- package/shared-modules/libmad/libmad.json +19 -0
- package/shared-modules/libsecret/libsecret.json +23 -0
- package/shared-modules/libsoup/libsoup-2.4.json +14 -0
- package/shared-modules/libusb/libusb.json +27 -0
- package/shared-modules/linux-audio/dssi.json +31 -0
- package/shared-modules/linux-audio/fftw3f-static.json +44 -0
- package/shared-modules/linux-audio/fftw3f.json +42 -0
- package/shared-modules/linux-audio/fluidsynth2-static.json +36 -0
- package/shared-modules/linux-audio/fluidsynth2.json +25 -0
- package/shared-modules/linux-audio/ladspa.json +26 -0
- package/shared-modules/linux-audio/lash.json +35 -0
- package/shared-modules/linux-audio/libinstpatch.json +16 -0
- package/shared-modules/linux-audio/liblo-static.json +22 -0
- package/shared-modules/linux-audio/liblo.json +17 -0
- package/shared-modules/linux-audio/lilv-static.json +94 -0
- package/shared-modules/linux-audio/lilv.json +89 -0
- package/shared-modules/linux-audio/lrdf.json +57 -0
- package/shared-modules/linux-audio/lv2.json +20 -0
- package/shared-modules/linux-audio/patches/lash/0001-configure-remove-aclocal-m4.patch +29 -0
- package/shared-modules/linux-audio/patches/lash/0002-Fix-build-with-recent-gcc.patch +73 -0
- package/shared-modules/linux-audio/patches/lash/0003-Fix-linking.patch +136 -0
- package/shared-modules/linux-audio/patches/raptor-libxml.patch +31 -0
- package/shared-modules/linux-audio/patches/stk-install.sh +54 -0
- package/shared-modules/linux-audio/stk.json +28 -0
- package/shared-modules/lua5.1/0004-Fix-stack-overflow-in-vararg-functions.patch +21 -0
- package/shared-modules/lua5.1/lua-5.1.5-so.patch +43 -0
- package/shared-modules/lua5.1/lua-5.1.5.json +42 -0
- package/shared-modules/lua5.3/lua-5.3.5.json +41 -0
- package/shared-modules/lua5.3/lua.pc.in +8 -0
- package/shared-modules/lua5.3/luaconf.patch +47 -0
- package/shared-modules/lua5.3/makefile-add-liblua.so-rule.patch +47 -0
- package/shared-modules/lua5.4/lua-5.4.json +41 -0
- package/shared-modules/lua5.4/lua.pc.in +8 -0
- package/shared-modules/lua5.4/luaconf.patch +34 -0
- package/shared-modules/lua5.4/makefile-add-liblua.so-rule.patch +42 -0
- package/shared-modules/luajit/luajit.json +30 -0
- package/shared-modules/lzo/lzo.json +27 -0
- package/shared-modules/mac/mac.json +18 -0
- package/shared-modules/physfs/physfs.json +26 -0
- package/shared-modules/pygame/audiofile-gcc6.patch +21 -0
- package/shared-modules/pygame/cython-fixes.patch +34 -0
- package/shared-modules/pygame/fluidsynth-no-rawmidi.patch +69 -0
- package/shared-modules/pygame/glib.patch +25 -0
- package/shared-modules/pygame/pygame1-python2.json +157 -0
- package/shared-modules/pygtk/pygtk-c99.patch +15 -0
- package/shared-modules/pygtk/pygtk.json +117 -0
- package/shared-modules/pygtk/pygtk.patch +39 -0
- package/shared-modules/python2.7/python-2.7.json +48 -0
- package/shared-modules/smpeg/smpeg-0.4.5.json +50 -0
- package/shared-modules/smpeg/smpeg-am-prog-as.patch +12 -0
- package/shared-modules/smpeg/smpeg-export-mpegaudio-class.patch +17 -0
- package/shared-modules/smpeg/smpeg-gcc6.patch +40 -0
- package/shared-modules/smpeg/smpeg-no-gtk.patch +37 -0
- package/shared-modules/squashfs-tools/squashfs-tools.json +25 -0
- package/shared-modules/update-checker.sh +50 -0
- package/shared-modules/vorbisgain/0001-temp_files.patch +75 -0
- package/shared-modules/vorbisgain/0002-errno.patch +33 -0
- package/shared-modules/vorbisgain/0003-manpage.patch +248 -0
- package/shared-modules/vorbisgain/0004-vorbisgain_mtime.patch +183 -0
- package/shared-modules/vorbisgain/0005-double_fclose.patch +21 -0
- package/shared-modules/vorbisgain/0006-manpage_hyphens.patch +56 -0
- package/shared-modules/vorbisgain/0007-recursively_spelling.patch +14 -0
- package/shared-modules/vorbisgain/0008-manpage_recursion_mistake.patch +23 -0
- package/shared-modules/vorbisgain/0009-hardening.patch +13 -0
- package/shared-modules/vorbisgain/0010-fclose.patch +13 -0
- package/shared-modules/vorbisgain/README.md +23 -0
- package/shared-modules/vorbisgain/vorbisgain_0.37-2.json +29 -0
- package/src/renderer/shared/agentProgress.ts +145 -0
- package/src/renderer/shared/calculator.ts +52 -0
- package/src/renderer/shared/components/AgentActivityDrawer.tsx +72 -0
- package/src/renderer/shared/components/AgentActivityTable.tsx +85 -0
- package/src/renderer/shared/components/ApprovalCard.tsx +93 -0
- package/src/renderer/shared/components/ChatCodeBlock.tsx +75 -0
- package/src/renderer/shared/components/ThinkingBlock.tsx +101 -0
- package/src/renderer/shared/constants/models.ts +91 -0
- package/src/renderer/shared/platform.ts +82 -0
- package/src/renderer/shared/types.ts +140 -0
- package/src/renderer/shared/utils/agentActivity.ts +187 -0
- package/src/renderer/shared/utils/approval.ts +1 -0
- package/src/renderer/shared/utils/approval.tsx +64 -0
- package/src/renderer/shared/utils/fileIcons.ts +135 -0
- package/src/renderer/shared/utils/markdown.tsx +347 -0
- package/src/renderer/shared/utils/providers.ts +36 -0
- package/src/renderer/shared/utils/speech.ts +216 -0
- package/src/renderer/shared/utils/ui.ts +147 -0
- package/src/renderer/src/agentProgress.ts +11 -39
- package/src/renderer/src/calculator.ts +3 -46
- package/src/renderer/src/components/ChatPanel.tsx +219 -1308
- package/src/renderer/src/components/MintDashboard.tsx +67 -170
- package/src/renderer/src/components/PicturesLibrary.tsx +32 -8
- package/src/renderer/src/components/Settings/AgentsTab.tsx +381 -0
- package/src/renderer/src/components/Settings/AutomationTab.tsx +0 -22
- package/src/renderer/src/components/Settings/GeneralTab.tsx +256 -2
- package/src/renderer/src/components/SettingsWindow.tsx +120 -3
- package/src/renderer/src/components/WorkspacePanel.tsx +7 -125
- package/src/renderer/src/css/styles.css +100 -0
- package/src/renderer/src/tauri.ts +128 -143
- package/src/renderer/src-web/agentProgress.ts +11 -39
- package/src/renderer/src-web/calculator.ts +3 -46
- package/src/renderer/src-web/components/ChatPanel.tsx +219 -1306
- package/src/renderer/src-web/components/MintDashboard.tsx +42 -170
- package/src/renderer/src-web/components/PicturesLibrary.tsx +23 -29
- package/src/renderer/src-web/components/Settings/AgentsTab.tsx +381 -0
- package/src/renderer/src-web/components/Settings/AutomationTab.tsx +0 -22
- package/src/renderer/src-web/components/Settings/GeneralTab.tsx +254 -3
- package/src/renderer/src-web/components/SettingsWindow.tsx +127 -3
- package/src/renderer/src-web/css/styles.css +100 -0
- package/src/renderer/src-web/tauri.ts +180 -102
- package/src-tauri/src/desktop.rs +18 -16
- package/src-tauri/src/discord_rpc.rs +1 -1
- package/src-tauri/src/lib.rs +168 -40
- package/src-tauri/src/webhooks.rs +1 -0
- package/src-tauri/src/workflows.rs +1 -0
- package/src-tauri/tauri.conf.json +1 -1
|
@@ -0,0 +1,888 @@
|
|
|
1
|
+
diff --git a/bindings/Makefile.am b/bindings/Makefile.am
|
|
2
|
+
index d1f6d73..dccca6c 100644
|
|
3
|
+
--- a/bindings/Makefile.am
|
|
4
|
+
+++ b/bindings/Makefile.am
|
|
5
|
+
@@ -3,7 +3,6 @@ SUBDIRS = \
|
|
6
|
+
vala
|
|
7
|
+
else
|
|
8
|
+
SUBDIRS = \
|
|
9
|
+
- python \
|
|
10
|
+
vala
|
|
11
|
+
endif
|
|
12
|
+
|
|
13
|
+
diff --git a/bindings/python/Makefile.am b/bindings/python/Makefile.am
|
|
14
|
+
deleted file mode 100644
|
|
15
|
+
index fe95c02..0000000
|
|
16
|
+
--- a/bindings/python/Makefile.am
|
|
17
|
+
+++ /dev/null
|
|
18
|
+
@@ -1,39 +0,0 @@
|
|
19
|
+
-defsdir = $(datadir)/pygtk/2.0/defs
|
|
20
|
+
-defs_DATA = appindicator.defs
|
|
21
|
+
-
|
|
22
|
+
-#CFLAGS = -Wall -Werror
|
|
23
|
+
-INCLUDES = \
|
|
24
|
+
- -I$(top_srcdir)/src \
|
|
25
|
+
- -DG_LOG_DOMAIN=\"appindicator-python\" \
|
|
26
|
+
- -DDATADIR=\"$(datadir)\" \
|
|
27
|
+
- -DLIBDIR=\"$(libdir)\" \
|
|
28
|
+
- $(APPINDICATOR_PYTHON_CFLAGS) \
|
|
29
|
+
- $(PYTHON_INCLUDES)
|
|
30
|
+
-
|
|
31
|
+
-pkgpythondir = $(pyexecdir)
|
|
32
|
+
-pkgpyexecdir = $(pyexecdir)
|
|
33
|
+
-
|
|
34
|
+
-pkgappindicatordir = $(pkgpythondir)/appindicator
|
|
35
|
+
-pkgappindicator_PYTHON = __init__.py
|
|
36
|
+
-
|
|
37
|
+
-appindicatordir = $(pkgpyexecdir)/appindicator
|
|
38
|
+
-appindicator_LTLIBRARIES = _appindicator.la
|
|
39
|
+
-
|
|
40
|
+
-_appindicator_la_LDFLAGS = -module -avoid-version -export-symbols-regex init_appindicator
|
|
41
|
+
-_appindicator_la_LIBADD = $(APPINDICATOR_PYTHON_LIBS) -L$(top_builddir)/src/.libs -lappindicator
|
|
42
|
+
-_appindicator_la_SOURCES = appindicatormodule.c
|
|
43
|
+
-nodist__appindicator_la_SOURCES = appindicator.c
|
|
44
|
+
-
|
|
45
|
+
-CLEANFILES = appindicator.c
|
|
46
|
+
-EXTRA_DIST = appindicator.override.in appindicator-arg-types.py $(defs_DATA)
|
|
47
|
+
-appindicator.c: $(defs_DATA) appindicator.override
|
|
48
|
+
-
|
|
49
|
+
-%.c: %.defs
|
|
50
|
+
- ($(PYGTK_CODEGEN) \
|
|
51
|
+
- --register $(PYGTK_DEFSDIR)/gtk-types.defs \
|
|
52
|
+
- --register $(PYGTK_DEFSDIR)/gdk-types.defs \
|
|
53
|
+
- --load-types $(srcdir)/appindicator-arg-types.py \
|
|
54
|
+
- --override $*.override \
|
|
55
|
+
- --prefix py$* $(srcdir)/$*.defs) > gen-$*.c \
|
|
56
|
+
- && cp gen-$*.c $*.c \
|
|
57
|
+
- && rm -f gen-$*.c
|
|
58
|
+
diff --git a/bindings/python/__init__.py b/bindings/python/__init__.py
|
|
59
|
+
deleted file mode 100644
|
|
60
|
+
index 20e2140..0000000
|
|
61
|
+
--- a/bindings/python/__init__.py
|
|
62
|
+
+++ /dev/null
|
|
63
|
+
@@ -1,27 +0,0 @@
|
|
64
|
+
-# Python bindings for libappindicator.
|
|
65
|
+
-#
|
|
66
|
+
-# Copyright 2009 Canonical Ltd.
|
|
67
|
+
-#
|
|
68
|
+
-# Authors:
|
|
69
|
+
-# Eitan Isaacson <eitan@ascender.com>
|
|
70
|
+
-# Neil Jagdish Patel <neil.patel@canonical.com>
|
|
71
|
+
-#
|
|
72
|
+
-# This program is free software: you can redistribute it and/or modify it
|
|
73
|
+
-# under the terms of either or both of the following licenses:
|
|
74
|
+
-#
|
|
75
|
+
-# 1) the GNU Lesser General Public License version 3, as published by the
|
|
76
|
+
-# Free Software Foundation; and/or
|
|
77
|
+
-# 2) the GNU Lesser General Public License version 2.1, as published by
|
|
78
|
+
-# the Free Software Foundation.
|
|
79
|
+
-#
|
|
80
|
+
-# This program is distributed in the hope that it will be useful, but
|
|
81
|
+
-# WITHOUT ANY WARRANTY; without even the implied warranties of
|
|
82
|
+
-# MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR
|
|
83
|
+
-# PURPOSE. See the applicable version of the GNU Lesser General Public
|
|
84
|
+
-# License for more details.
|
|
85
|
+
-#
|
|
86
|
+
-# You should have received a copy of both the GNU Lesser General Public
|
|
87
|
+
-# License version 3 and version 2.1 along with this program. If not, see
|
|
88
|
+
-# <http://www.gnu.org/licenses/>
|
|
89
|
+
-
|
|
90
|
+
-from _appindicator import *
|
|
91
|
+
diff --git a/bindings/python/appindicator-arg-types.py b/bindings/python/appindicator-arg-types.py
|
|
92
|
+
deleted file mode 100644
|
|
93
|
+
index 9d74aa0..0000000
|
|
94
|
+
--- a/bindings/python/appindicator-arg-types.py
|
|
95
|
+
+++ /dev/null
|
|
96
|
+
@@ -1,27 +0,0 @@
|
|
97
|
+
-# Python bindings for libappindicator.
|
|
98
|
+
-#
|
|
99
|
+
-# Copyright 2009 Canonical Ltd.
|
|
100
|
+
-#
|
|
101
|
+
-# Authors:
|
|
102
|
+
-# Eitan Isaacson <eitan@ascender.com>
|
|
103
|
+
-#
|
|
104
|
+
-# This program is free software: you can redistribute it and/or modify it
|
|
105
|
+
-# under the terms of either or both of the following licenses:
|
|
106
|
+
-#
|
|
107
|
+
-# 1) the GNU Lesser General Public License version 3, as published by the
|
|
108
|
+
-# Free Software Foundation; and/or
|
|
109
|
+
-# 2) the GNU Lesser General Public License version 2.1, as published by
|
|
110
|
+
-# the Free Software Foundation.
|
|
111
|
+
-#
|
|
112
|
+
-# This program is distributed in the hope that it will be useful, but
|
|
113
|
+
-# WITHOUT ANY WARRANTY; without even the implied warranties of
|
|
114
|
+
-# MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR
|
|
115
|
+
-# PURPOSE. See the applicable version of the GNU Lesser General Public
|
|
116
|
+
-# License for more details.
|
|
117
|
+
-#
|
|
118
|
+
-# You should have received a copy of both the GNU Lesser General Public
|
|
119
|
+
-# License version 3 and version 2.1 along with this program. If not, see
|
|
120
|
+
-# <http://www.gnu.org/licenses/>
|
|
121
|
+
-
|
|
122
|
+
-import argtypes
|
|
123
|
+
-
|
|
124
|
+
diff --git a/bindings/python/appindicator.defs b/bindings/python/appindicator.defs
|
|
125
|
+
deleted file mode 100644
|
|
126
|
+
index 4fcc2d5..0000000
|
|
127
|
+
--- a/bindings/python/appindicator.defs
|
|
128
|
+
+++ /dev/null
|
|
129
|
+
@@ -1,200 +0,0 @@
|
|
130
|
+
-;; -*- scheme -*-
|
|
131
|
+
-; object definitions ...
|
|
132
|
+
-(define-object Indicator
|
|
133
|
+
- (in-module "App")
|
|
134
|
+
- (parent "GObject")
|
|
135
|
+
- (c-name "AppIndicator")
|
|
136
|
+
- (gtype-id "APP_TYPE_INDICATOR")
|
|
137
|
+
-)
|
|
138
|
+
-
|
|
139
|
+
-;; Enumerations and flags ...
|
|
140
|
+
-
|
|
141
|
+
-(define-enum IndicatorCategory
|
|
142
|
+
- (in-module "App")
|
|
143
|
+
- (c-name "AppIndicatorCategory")
|
|
144
|
+
- (gtype-id "APP_INDICATOR_TYPE_INDICATOR_CATEGORY")
|
|
145
|
+
- (values
|
|
146
|
+
- '("ApplicationStatus" "APP_INDICATOR_CATEGORY_APPLICATION_STATUS")
|
|
147
|
+
- '("Communications" "APP_INDICATOR_CATEGORY_COMMUNICATIONS")
|
|
148
|
+
- '("SystemServices" "APP_INDICATOR_CATEGORY_SYSTEM_SERVICES")
|
|
149
|
+
- '("Hardware" "APP_INDICATOR_CATEGORY_HARDWARE")
|
|
150
|
+
- '("Other" "APP_INDICATOR_CATEGORY_OTHER")
|
|
151
|
+
- )
|
|
152
|
+
-)
|
|
153
|
+
-
|
|
154
|
+
-(define-enum IndicatorStatus
|
|
155
|
+
- (in-module "App")
|
|
156
|
+
- (c-name "AppIndicatorStatus")
|
|
157
|
+
- (gtype-id "APP_INDICATOR_TYPE_INDICATOR_STATUS")
|
|
158
|
+
- (values
|
|
159
|
+
- '("Passive" "APP_INDICATOR_STATUS_PASSIVE")
|
|
160
|
+
- '("Active" "APP_INDICATOR_STATUS_ACTIVE")
|
|
161
|
+
- '("NeedsAttention" "APP_INDICATOR_STATUS_ATTENTION")
|
|
162
|
+
- )
|
|
163
|
+
-)
|
|
164
|
+
-
|
|
165
|
+
-;; From app-indicator.h
|
|
166
|
+
-
|
|
167
|
+
-(define-function app_indicator_get_type
|
|
168
|
+
- (c-name "app_indicator_get_type")
|
|
169
|
+
- (return-type "GType")
|
|
170
|
+
-)
|
|
171
|
+
-
|
|
172
|
+
-(define-function app_indicator_new_with_path
|
|
173
|
+
- (c-name "app_indicator_new_with_path")
|
|
174
|
+
- (is-constructor-of "AppIndicator")
|
|
175
|
+
- (return-type "AppIndicator*")
|
|
176
|
+
- (parameters
|
|
177
|
+
- '("const-gchar*" "id")
|
|
178
|
+
- '("const-gchar*" "icon_name")
|
|
179
|
+
- '("AppIndicatorCategory" "category")
|
|
180
|
+
- '("const-gchar*" "icon_theme_path" (null-ok) (default "NULL"))
|
|
181
|
+
- )
|
|
182
|
+
-)
|
|
183
|
+
-
|
|
184
|
+
-(define-method set_status
|
|
185
|
+
- (of-object "AppIndicator")
|
|
186
|
+
- (c-name "app_indicator_set_status")
|
|
187
|
+
- (return-type "none")
|
|
188
|
+
- (parameters
|
|
189
|
+
- '("AppIndicatorStatus" "status")
|
|
190
|
+
- )
|
|
191
|
+
-)
|
|
192
|
+
-
|
|
193
|
+
-(define-method set_attention_icon
|
|
194
|
+
- (of-object "AppIndicator")
|
|
195
|
+
- (c-name "app_indicator_set_attention_icon_full")
|
|
196
|
+
- (return-type "none")
|
|
197
|
+
- (parameters
|
|
198
|
+
- '("const-gchar*" "icon_name")
|
|
199
|
+
- '("const-gchar*" "icon_desc" (null-ok) (default "NULL"))
|
|
200
|
+
- )
|
|
201
|
+
-)
|
|
202
|
+
-
|
|
203
|
+
-(define-method set_menu
|
|
204
|
+
- (of-object "AppIndicator")
|
|
205
|
+
- (c-name "app_indicator_set_menu")
|
|
206
|
+
- (return-type "none")
|
|
207
|
+
- (parameters
|
|
208
|
+
- '("GtkMenu*" "menu")
|
|
209
|
+
- )
|
|
210
|
+
-)
|
|
211
|
+
-
|
|
212
|
+
-(define-method set_icon
|
|
213
|
+
- (of-object "AppIndicator")
|
|
214
|
+
- (c-name "app_indicator_set_icon_full")
|
|
215
|
+
- (return-type "none")
|
|
216
|
+
- (parameters
|
|
217
|
+
- '("const-gchar*" "icon_name")
|
|
218
|
+
- '("const-gchar*" "icon_desc" (null-ok) (default "NULL"))
|
|
219
|
+
- )
|
|
220
|
+
-)
|
|
221
|
+
-
|
|
222
|
+
-(define-method set_label
|
|
223
|
+
- (of-object "AppIndicator")
|
|
224
|
+
- (c-name "app_indicator_set_label")
|
|
225
|
+
- (return-type "none")
|
|
226
|
+
- (parameters
|
|
227
|
+
- '("const-gchar*" "label" (null-ok))
|
|
228
|
+
- '("const-gchar*" "guide" (null-ok) (default "NULL"))
|
|
229
|
+
- )
|
|
230
|
+
-)
|
|
231
|
+
-
|
|
232
|
+
-(define-method set_ordering_index
|
|
233
|
+
- (of-object "AppIndicator")
|
|
234
|
+
- (c-name "app_indicator_set_ordering_index")
|
|
235
|
+
- (parameters
|
|
236
|
+
- '("guint32" "ordering_index")
|
|
237
|
+
- )
|
|
238
|
+
-)
|
|
239
|
+
-
|
|
240
|
+
-(define-method set_icon_theme_path
|
|
241
|
+
- (of-object "AppIndicator")
|
|
242
|
+
- (c-name "app_indicator_set_icon_theme_path")
|
|
243
|
+
- (return-type "none")
|
|
244
|
+
- (parameters
|
|
245
|
+
- '("const-gchar*" "icon_theme_path" (null-ok))
|
|
246
|
+
- )
|
|
247
|
+
-)
|
|
248
|
+
-
|
|
249
|
+
-(define-method get_id
|
|
250
|
+
- (of-object "AppIndicator")
|
|
251
|
+
- (c-name "app_indicator_get_id")
|
|
252
|
+
- (return-type "const-gchar*")
|
|
253
|
+
-)
|
|
254
|
+
-
|
|
255
|
+
-(define-method get_category
|
|
256
|
+
- (of-object "AppIndicator")
|
|
257
|
+
- (c-name "app_indicator_get_category")
|
|
258
|
+
- (return-type "AppIndicatorCategory")
|
|
259
|
+
-)
|
|
260
|
+
-
|
|
261
|
+
-(define-method get_status
|
|
262
|
+
- (of-object "AppIndicator")
|
|
263
|
+
- (c-name "app_indicator_get_status")
|
|
264
|
+
- (return-type "AppIndicatorStatus")
|
|
265
|
+
-)
|
|
266
|
+
-
|
|
267
|
+
-(define-method get_icon
|
|
268
|
+
- (of-object "AppIndicator")
|
|
269
|
+
- (c-name "app_indicator_get_icon")
|
|
270
|
+
- (return-type "const-gchar*")
|
|
271
|
+
-)
|
|
272
|
+
-
|
|
273
|
+
-(define-method get_icon_desc
|
|
274
|
+
- (of-object "AppIndicator")
|
|
275
|
+
- (c-name "app_indicator_get_icon_desc")
|
|
276
|
+
- (return-type "const-gchar*")
|
|
277
|
+
-)
|
|
278
|
+
-
|
|
279
|
+
-(define-method get_icon_theme_path
|
|
280
|
+
- (of-object "AppIndicator")
|
|
281
|
+
- (c-name "app_indicator_get_icon_theme_path")
|
|
282
|
+
- (return-type "const-gchar*")
|
|
283
|
+
-)
|
|
284
|
+
-
|
|
285
|
+
-(define-method get_attention_icon
|
|
286
|
+
- (of-object "AppIndicator")
|
|
287
|
+
- (c-name "app_indicator_get_attention_icon")
|
|
288
|
+
- (return-type "const-gchar*")
|
|
289
|
+
-)
|
|
290
|
+
-
|
|
291
|
+
-(define-method get_attention_icon_desc
|
|
292
|
+
- (of-object "AppIndicator")
|
|
293
|
+
- (c-name "app_indicator_get_attention_icon_desc")
|
|
294
|
+
- (return-type "const-gchar*")
|
|
295
|
+
-)
|
|
296
|
+
-
|
|
297
|
+
-(define-method get_menu
|
|
298
|
+
- (of-object "AppIndicator")
|
|
299
|
+
- (c-name "app_indicator_get_menu")
|
|
300
|
+
- (return-type "GtkMenu*")
|
|
301
|
+
-)
|
|
302
|
+
-
|
|
303
|
+
-(define-method get_label
|
|
304
|
+
- (of-object "AppIndicator")
|
|
305
|
+
- (c-name "app_indicator_get_label")
|
|
306
|
+
- (return-type "const-gchar*")
|
|
307
|
+
-)
|
|
308
|
+
-
|
|
309
|
+
-(define-method get_label_guide
|
|
310
|
+
- (of-object "AppIndicator")
|
|
311
|
+
- (c-name "app_indicator_get_label_guide")
|
|
312
|
+
- (return-type "const-gchar*")
|
|
313
|
+
-)
|
|
314
|
+
-
|
|
315
|
+
-(define-method get_ordering_index
|
|
316
|
+
- (of-object "AppIndicator")
|
|
317
|
+
- (c-name "app_indicator_get_ordering_index")
|
|
318
|
+
- (return-type "guint32")
|
|
319
|
+
-)
|
|
320
|
+
-
|
|
321
|
+
-(define-method build_menu_from_desktop
|
|
322
|
+
- (of-object "AppIndicator")
|
|
323
|
+
- (c-name "app_indicator_build_menu_from_desktop")
|
|
324
|
+
- (return-type "none")
|
|
325
|
+
- (parameters
|
|
326
|
+
- '("const-gchar*" "desktop_file")
|
|
327
|
+
- '("const-gchar*" "desktop_profile")
|
|
328
|
+
- )
|
|
329
|
+
-)
|
|
330
|
+
diff --git a/bindings/python/appindicator.override.in b/bindings/python/appindicator.override.in
|
|
331
|
+
deleted file mode 100644
|
|
332
|
+
index 84d3159..0000000
|
|
333
|
+
--- a/bindings/python/appindicator.override.in
|
|
334
|
+
+++ /dev/null
|
|
335
|
+
@@ -1,65 +0,0 @@
|
|
336
|
+
-/*
|
|
337
|
+
-Python bindings for libappindicator.
|
|
338
|
+
-
|
|
339
|
+
-Copyright 2009 Canonical Ltd.
|
|
340
|
+
-
|
|
341
|
+
-Authors:
|
|
342
|
+
- Eitan Isaacson <eitan@ascender.com> (original)
|
|
343
|
+
- Neil Jagdish Patel <neil.patel@canonical.com>
|
|
344
|
+
-
|
|
345
|
+
-This program is free software: you can redistribute it and/or modify it
|
|
346
|
+
-under the terms of either or both of the following licenses:
|
|
347
|
+
-
|
|
348
|
+
-1) the GNU Lesser General Public License version 3, as published by the
|
|
349
|
+
-Free Software Foundation; and/or
|
|
350
|
+
-2) the GNU Lesser General Public License version 2.1, as published by
|
|
351
|
+
-the Free Software Foundation.
|
|
352
|
+
-
|
|
353
|
+
-This program is distributed in the hope that it will be useful, but
|
|
354
|
+
-WITHOUT ANY WARRANTY; without even the implied warranties of
|
|
355
|
+
-MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR
|
|
356
|
+
-PURPOSE. See the applicable version of the GNU Lesser General Public
|
|
357
|
+
-License for more details.
|
|
358
|
+
-
|
|
359
|
+
-You should have received a copy of both the GNU Lesser General Public
|
|
360
|
+
-License version 3 and version 2.1 along with this program. If not, see
|
|
361
|
+
-<http://www.gnu.org/licenses/>
|
|
362
|
+
-*/
|
|
363
|
+
-%%
|
|
364
|
+
-headers
|
|
365
|
+
-#include <Python.h>
|
|
366
|
+
-#include "@top_srcdir@/src/app-indicator.h"
|
|
367
|
+
-#include "@top_builddir@/src/app-indicator-enum-types.h"
|
|
368
|
+
-#include <glib.h>
|
|
369
|
+
-#include "pygobject.h"
|
|
370
|
+
-#include "pyglib.h"
|
|
371
|
+
-#include <pygtk/pygtk.h>
|
|
372
|
+
-
|
|
373
|
+
-typedef PyObject* (*to_pyobject_func) (gpointer data);
|
|
374
|
+
-
|
|
375
|
+
-#define APP_TYPE_INDICATOR APP_INDICATOR_TYPE
|
|
376
|
+
-
|
|
377
|
+
-void
|
|
378
|
+
-_appindicator_add_constants(PyObject *module, const gchar *strip_prefix)
|
|
379
|
+
-{
|
|
380
|
+
-#ifdef VERSION
|
|
381
|
+
- PyModule_AddStringConstant(module, "__version__", VERSION);
|
|
382
|
+
-#endif
|
|
383
|
+
- pyg_enum_add(module,
|
|
384
|
+
- "IndicatorCategory",
|
|
385
|
+
- strip_prefix,
|
|
386
|
+
- APP_INDICATOR_TYPE_INDICATOR_CATEGORY);
|
|
387
|
+
-
|
|
388
|
+
- pyg_enum_add(module,
|
|
389
|
+
- "IndicatorStatus",
|
|
390
|
+
- strip_prefix,
|
|
391
|
+
- APP_INDICATOR_TYPE_INDICATOR_STATUS);
|
|
392
|
+
-
|
|
393
|
+
- if (PyErr_Occurred())
|
|
394
|
+
- PyErr_Print();
|
|
395
|
+
-}
|
|
396
|
+
-%%
|
|
397
|
+
-modulename appindicator
|
|
398
|
+
-%%
|
|
399
|
+
-import gobject.GObject as PyGObject_Type
|
|
400
|
+
-import gtk.Menu as PyGtkMenu_Type
|
|
401
|
+
diff --git a/bindings/python/appindicatormodule.c b/bindings/python/appindicatormodule.c
|
|
402
|
+
deleted file mode 100644
|
|
403
|
+
index b66639c..0000000
|
|
404
|
+
--- a/bindings/python/appindicatormodule.c
|
|
405
|
+
+++ /dev/null
|
|
406
|
+
@@ -1,49 +0,0 @@
|
|
407
|
+
-/*
|
|
408
|
+
-Python bindings for libappindicator.
|
|
409
|
+
-
|
|
410
|
+
-Copyright 2009 Canonical Ltd.
|
|
411
|
+
-
|
|
412
|
+
-Authors:
|
|
413
|
+
- Eitan Isaacson <eitan@ascender.com>
|
|
414
|
+
- Neil Jagdish Patel <neil.patel@canonical.com>
|
|
415
|
+
-
|
|
416
|
+
-This program is free software: you can redistribute it and/or modify it
|
|
417
|
+
-under the terms of either or both of the following licenses:
|
|
418
|
+
-
|
|
419
|
+
-1) the GNU Lesser General Public License version 3, as published by the
|
|
420
|
+
-Free Software Foundation; and/or
|
|
421
|
+
-2) the GNU Lesser General Public License version 2.1, as published by
|
|
422
|
+
-the Free Software Foundation.
|
|
423
|
+
-
|
|
424
|
+
-This program is distributed in the hope that it will be useful, but
|
|
425
|
+
-WITHOUT ANY WARRANTY; without even the implied warranties of
|
|
426
|
+
-MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR
|
|
427
|
+
-PURPOSE. See the applicable version of the GNU Lesser General Public
|
|
428
|
+
-License for more details.
|
|
429
|
+
-
|
|
430
|
+
-You should have received a copy of both the GNU Lesser General Public
|
|
431
|
+
-License version 3 and version 2.1 along with this program. If not, see
|
|
432
|
+
-<http://www.gnu.org/licenses/>
|
|
433
|
+
-*/
|
|
434
|
+
-#include <pygobject.h>
|
|
435
|
+
-
|
|
436
|
+
-void pyappindicator_register_classes (PyObject *d);
|
|
437
|
+
-extern PyMethodDef pyappindicator_functions[];
|
|
438
|
+
-
|
|
439
|
+
-DL_EXPORT(void)
|
|
440
|
+
-init_appindicator(void)
|
|
441
|
+
-{
|
|
442
|
+
- PyObject *m, *d;
|
|
443
|
+
-
|
|
444
|
+
- init_pygobject ();
|
|
445
|
+
-
|
|
446
|
+
- m = Py_InitModule ("_appindicator", pyappindicator_functions);
|
|
447
|
+
- d = PyModule_GetDict (m);
|
|
448
|
+
-
|
|
449
|
+
- pyappindicator_register_classes (d);
|
|
450
|
+
-
|
|
451
|
+
- _appindicator_add_constants (m, "APP_INDICATOR_");
|
|
452
|
+
- if (PyErr_Occurred ()) {
|
|
453
|
+
- Py_FatalError ("can't initialise module appindicator");
|
|
454
|
+
- }
|
|
455
|
+
-}
|
|
456
|
+
diff --git a/configure b/configure
|
|
457
|
+
index 5174b3f..8ff732c 100755
|
|
458
|
+
--- a/configure
|
|
459
|
+
+++ b/configure
|
|
460
|
+
@@ -13703,363 +13703,6 @@ else
|
|
461
|
+
fi
|
|
462
|
+
|
|
463
|
+
|
|
464
|
+
-###########################
|
|
465
|
+
-# Python
|
|
466
|
+
-###########################
|
|
467
|
+
-
|
|
468
|
+
-PYGTK_REQUIRED=2.14.0
|
|
469
|
+
-PYGOBJECT_REQUIRED=0.22
|
|
470
|
+
-
|
|
471
|
+
-
|
|
472
|
+
-
|
|
473
|
+
-
|
|
474
|
+
-
|
|
475
|
+
- if test -n "$PYTHON"; then
|
|
476
|
+
- # If the user set $PYTHON, use it and don't search something else.
|
|
477
|
+
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.3.5" >&5
|
|
478
|
+
-$as_echo_n "checking whether $PYTHON version >= 2.3.5... " >&6; }
|
|
479
|
+
- prog="import sys, string
|
|
480
|
+
-# split strings by '.' and convert to numeric. Append some zeros
|
|
481
|
+
-# because we need at least 4 digits for the hex conversion.
|
|
482
|
+
-minver = map(int, string.split('2.3.5', '.')) + [0, 0, 0]
|
|
483
|
+
-minverhex = 0
|
|
484
|
+
-for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
|
|
485
|
+
-sys.exit(sys.hexversion < minverhex)"
|
|
486
|
+
- if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
|
|
487
|
+
- ($PYTHON -c "$prog") >&5 2>&5
|
|
488
|
+
- ac_status=$?
|
|
489
|
+
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
490
|
+
- (exit $ac_status); }; then :
|
|
491
|
+
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
492
|
+
-$as_echo "yes" >&6; }
|
|
493
|
+
-else
|
|
494
|
+
- as_fn_error $? "too old" "$LINENO" 5
|
|
495
|
+
-fi
|
|
496
|
+
- am_display_PYTHON=$PYTHON
|
|
497
|
+
- else
|
|
498
|
+
- # Otherwise, try each interpreter until we find one that satisfies
|
|
499
|
+
- # VERSION.
|
|
500
|
+
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.3.5" >&5
|
|
501
|
+
-$as_echo_n "checking for a Python interpreter with version >= 2.3.5... " >&6; }
|
|
502
|
+
-if ${am_cv_pathless_PYTHON+:} false; then :
|
|
503
|
+
- $as_echo_n "(cached) " >&6
|
|
504
|
+
-else
|
|
505
|
+
-
|
|
506
|
+
- for am_cv_pathless_PYTHON in python python2 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 none; do
|
|
507
|
+
- test "$am_cv_pathless_PYTHON" = none && break
|
|
508
|
+
- prog="import sys, string
|
|
509
|
+
-# split strings by '.' and convert to numeric. Append some zeros
|
|
510
|
+
-# because we need at least 4 digits for the hex conversion.
|
|
511
|
+
-minver = map(int, string.split('2.3.5', '.')) + [0, 0, 0]
|
|
512
|
+
-minverhex = 0
|
|
513
|
+
-for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
|
|
514
|
+
-sys.exit(sys.hexversion < minverhex)"
|
|
515
|
+
- if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
|
|
516
|
+
- ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
|
|
517
|
+
- ac_status=$?
|
|
518
|
+
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
519
|
+
- (exit $ac_status); }; then :
|
|
520
|
+
- break
|
|
521
|
+
-fi
|
|
522
|
+
- done
|
|
523
|
+
-fi
|
|
524
|
+
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
|
|
525
|
+
-$as_echo "$am_cv_pathless_PYTHON" >&6; }
|
|
526
|
+
- # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
|
|
527
|
+
- if test "$am_cv_pathless_PYTHON" = none; then
|
|
528
|
+
- PYTHON=:
|
|
529
|
+
- else
|
|
530
|
+
- # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
|
|
531
|
+
-set dummy $am_cv_pathless_PYTHON; ac_word=$2
|
|
532
|
+
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
533
|
+
-$as_echo_n "checking for $ac_word... " >&6; }
|
|
534
|
+
-if ${ac_cv_path_PYTHON+:} false; then :
|
|
535
|
+
- $as_echo_n "(cached) " >&6
|
|
536
|
+
-else
|
|
537
|
+
- case $PYTHON in
|
|
538
|
+
- [\\/]* | ?:[\\/]*)
|
|
539
|
+
- ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
|
|
540
|
+
- ;;
|
|
541
|
+
- *)
|
|
542
|
+
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
543
|
+
-for as_dir in $PATH
|
|
544
|
+
-do
|
|
545
|
+
- IFS=$as_save_IFS
|
|
546
|
+
- test -z "$as_dir" && as_dir=.
|
|
547
|
+
- for ac_exec_ext in '' $ac_executable_extensions; do
|
|
548
|
+
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
549
|
+
- ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
|
|
550
|
+
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
551
|
+
- break 2
|
|
552
|
+
- fi
|
|
553
|
+
-done
|
|
554
|
+
- done
|
|
555
|
+
-IFS=$as_save_IFS
|
|
556
|
+
-
|
|
557
|
+
- ;;
|
|
558
|
+
-esac
|
|
559
|
+
-fi
|
|
560
|
+
-PYTHON=$ac_cv_path_PYTHON
|
|
561
|
+
-if test -n "$PYTHON"; then
|
|
562
|
+
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
|
|
563
|
+
-$as_echo "$PYTHON" >&6; }
|
|
564
|
+
-else
|
|
565
|
+
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
566
|
+
-$as_echo "no" >&6; }
|
|
567
|
+
-fi
|
|
568
|
+
-
|
|
569
|
+
-
|
|
570
|
+
- fi
|
|
571
|
+
- am_display_PYTHON=$am_cv_pathless_PYTHON
|
|
572
|
+
- fi
|
|
573
|
+
-
|
|
574
|
+
-
|
|
575
|
+
- if test "$PYTHON" = :; then
|
|
576
|
+
- as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
|
|
577
|
+
- else
|
|
578
|
+
-
|
|
579
|
+
-
|
|
580
|
+
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
|
|
581
|
+
-$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
|
|
582
|
+
-if ${am_cv_python_version+:} false; then :
|
|
583
|
+
- $as_echo_n "(cached) " >&6
|
|
584
|
+
-else
|
|
585
|
+
- am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
|
|
586
|
+
-fi
|
|
587
|
+
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
|
|
588
|
+
-$as_echo "$am_cv_python_version" >&6; }
|
|
589
|
+
- PYTHON_VERSION=$am_cv_python_version
|
|
590
|
+
-
|
|
591
|
+
-
|
|
592
|
+
-
|
|
593
|
+
- PYTHON_PREFIX='${prefix}'
|
|
594
|
+
-
|
|
595
|
+
- PYTHON_EXEC_PREFIX='${exec_prefix}'
|
|
596
|
+
-
|
|
597
|
+
-
|
|
598
|
+
-
|
|
599
|
+
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
|
|
600
|
+
-$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
|
|
601
|
+
-if ${am_cv_python_platform+:} false; then :
|
|
602
|
+
- $as_echo_n "(cached) " >&6
|
|
603
|
+
-else
|
|
604
|
+
- am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
|
|
605
|
+
-fi
|
|
606
|
+
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
|
|
607
|
+
-$as_echo "$am_cv_python_platform" >&6; }
|
|
608
|
+
- PYTHON_PLATFORM=$am_cv_python_platform
|
|
609
|
+
-
|
|
610
|
+
-
|
|
611
|
+
-
|
|
612
|
+
-
|
|
613
|
+
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
|
|
614
|
+
-$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
|
|
615
|
+
-if ${am_cv_python_pythondir+:} false; then :
|
|
616
|
+
- $as_echo_n "(cached) " >&6
|
|
617
|
+
-else
|
|
618
|
+
- am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
|
|
619
|
+
- echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
|
|
620
|
+
-fi
|
|
621
|
+
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
|
|
622
|
+
-$as_echo "$am_cv_python_pythondir" >&6; }
|
|
623
|
+
- pythondir=$am_cv_python_pythondir
|
|
624
|
+
-
|
|
625
|
+
-
|
|
626
|
+
-
|
|
627
|
+
- pkgpythondir=\${pythondir}/$PACKAGE
|
|
628
|
+
-
|
|
629
|
+
-
|
|
630
|
+
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
|
|
631
|
+
-$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
|
|
632
|
+
-if ${am_cv_python_pyexecdir+:} false; then :
|
|
633
|
+
- $as_echo_n "(cached) " >&6
|
|
634
|
+
-else
|
|
635
|
+
- am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
|
|
636
|
+
- echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
|
|
637
|
+
-fi
|
|
638
|
+
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
|
|
639
|
+
-$as_echo "$am_cv_python_pyexecdir" >&6; }
|
|
640
|
+
- pyexecdir=$am_cv_python_pyexecdir
|
|
641
|
+
-
|
|
642
|
+
-
|
|
643
|
+
-
|
|
644
|
+
- pkgpyexecdir=\${pyexecdir}/$PACKAGE
|
|
645
|
+
-
|
|
646
|
+
-
|
|
647
|
+
-
|
|
648
|
+
- fi
|
|
649
|
+
-
|
|
650
|
+
-
|
|
651
|
+
-
|
|
652
|
+
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for headers required to compile python extensions" >&5
|
|
653
|
+
-$as_echo_n "checking for headers required to compile python extensions... " >&6; }
|
|
654
|
+
-py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
|
|
655
|
+
-py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
|
|
656
|
+
-PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
|
|
657
|
+
-if test "$py_prefix" != "$py_exec_prefix"; then
|
|
658
|
+
- PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
|
|
659
|
+
-fi
|
|
660
|
+
-
|
|
661
|
+
-save_CPPFLAGS="$CPPFLAGS"
|
|
662
|
+
-CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
|
|
663
|
+
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
664
|
+
-/* end confdefs.h. */
|
|
665
|
+
-#include <Python.h>
|
|
666
|
+
-_ACEOF
|
|
667
|
+
-if ac_fn_c_try_cpp "$LINENO"; then :
|
|
668
|
+
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
|
|
669
|
+
-$as_echo "found" >&6; }
|
|
670
|
+
-
|
|
671
|
+
-else
|
|
672
|
+
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
|
|
673
|
+
-$as_echo "not found" >&6; }
|
|
674
|
+
-as_fn_error $? "could not find Python headers" "$LINENO" 5
|
|
675
|
+
-fi
|
|
676
|
+
-rm -f conftest.err conftest.i conftest.$ac_ext
|
|
677
|
+
-CPPFLAGS="$save_CPPFLAGS"
|
|
678
|
+
-
|
|
679
|
+
-
|
|
680
|
+
-
|
|
681
|
+
-pkg_failed=no
|
|
682
|
+
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPINDICATOR_PYTHON" >&5
|
|
683
|
+
-$as_echo_n "checking for APPINDICATOR_PYTHON... " >&6; }
|
|
684
|
+
-
|
|
685
|
+
-if test -n "$APPINDICATOR_PYTHON_CFLAGS"; then
|
|
686
|
+
- pkg_cv_APPINDICATOR_PYTHON_CFLAGS="$APPINDICATOR_PYTHON_CFLAGS"
|
|
687
|
+
- elif test -n "$PKG_CONFIG"; then
|
|
688
|
+
- if test -n "$PKG_CONFIG" && \
|
|
689
|
+
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
|
|
690
|
+
- pygtk-2.0 >= \$PYGTK_REQUIRED
|
|
691
|
+
- gtk+-2.0 >= \$GTK_REQUIRED_VERSION
|
|
692
|
+
- pygobject-2.0 >= \$PYGOBJECT_REQUIRED
|
|
693
|
+
- \""; } >&5
|
|
694
|
+
- ($PKG_CONFIG --exists --print-errors "
|
|
695
|
+
- pygtk-2.0 >= $PYGTK_REQUIRED
|
|
696
|
+
- gtk+-2.0 >= $GTK_REQUIRED_VERSION
|
|
697
|
+
- pygobject-2.0 >= $PYGOBJECT_REQUIRED
|
|
698
|
+
- ") 2>&5
|
|
699
|
+
- ac_status=$?
|
|
700
|
+
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
701
|
+
- test $ac_status = 0; }; then
|
|
702
|
+
- pkg_cv_APPINDICATOR_PYTHON_CFLAGS=`$PKG_CONFIG --cflags "
|
|
703
|
+
- pygtk-2.0 >= $PYGTK_REQUIRED
|
|
704
|
+
- gtk+-2.0 >= $GTK_REQUIRED_VERSION
|
|
705
|
+
- pygobject-2.0 >= $PYGOBJECT_REQUIRED
|
|
706
|
+
- " 2>/dev/null`
|
|
707
|
+
- test "x$?" != "x0" && pkg_failed=yes
|
|
708
|
+
-else
|
|
709
|
+
- pkg_failed=yes
|
|
710
|
+
-fi
|
|
711
|
+
- else
|
|
712
|
+
- pkg_failed=untried
|
|
713
|
+
-fi
|
|
714
|
+
-if test -n "$APPINDICATOR_PYTHON_LIBS"; then
|
|
715
|
+
- pkg_cv_APPINDICATOR_PYTHON_LIBS="$APPINDICATOR_PYTHON_LIBS"
|
|
716
|
+
- elif test -n "$PKG_CONFIG"; then
|
|
717
|
+
- if test -n "$PKG_CONFIG" && \
|
|
718
|
+
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
|
|
719
|
+
- pygtk-2.0 >= \$PYGTK_REQUIRED
|
|
720
|
+
- gtk+-2.0 >= \$GTK_REQUIRED_VERSION
|
|
721
|
+
- pygobject-2.0 >= \$PYGOBJECT_REQUIRED
|
|
722
|
+
- \""; } >&5
|
|
723
|
+
- ($PKG_CONFIG --exists --print-errors "
|
|
724
|
+
- pygtk-2.0 >= $PYGTK_REQUIRED
|
|
725
|
+
- gtk+-2.0 >= $GTK_REQUIRED_VERSION
|
|
726
|
+
- pygobject-2.0 >= $PYGOBJECT_REQUIRED
|
|
727
|
+
- ") 2>&5
|
|
728
|
+
- ac_status=$?
|
|
729
|
+
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
730
|
+
- test $ac_status = 0; }; then
|
|
731
|
+
- pkg_cv_APPINDICATOR_PYTHON_LIBS=`$PKG_CONFIG --libs "
|
|
732
|
+
- pygtk-2.0 >= $PYGTK_REQUIRED
|
|
733
|
+
- gtk+-2.0 >= $GTK_REQUIRED_VERSION
|
|
734
|
+
- pygobject-2.0 >= $PYGOBJECT_REQUIRED
|
|
735
|
+
- " 2>/dev/null`
|
|
736
|
+
- test "x$?" != "x0" && pkg_failed=yes
|
|
737
|
+
-else
|
|
738
|
+
- pkg_failed=yes
|
|
739
|
+
-fi
|
|
740
|
+
- else
|
|
741
|
+
- pkg_failed=untried
|
|
742
|
+
-fi
|
|
743
|
+
-
|
|
744
|
+
-
|
|
745
|
+
-
|
|
746
|
+
-if test $pkg_failed = yes; then
|
|
747
|
+
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
748
|
+
-$as_echo "no" >&6; }
|
|
749
|
+
-
|
|
750
|
+
-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
|
|
751
|
+
- _pkg_short_errors_supported=yes
|
|
752
|
+
-else
|
|
753
|
+
- _pkg_short_errors_supported=no
|
|
754
|
+
-fi
|
|
755
|
+
- if test $_pkg_short_errors_supported = yes; then
|
|
756
|
+
- APPINDICATOR_PYTHON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
|
|
757
|
+
- pygtk-2.0 >= $PYGTK_REQUIRED
|
|
758
|
+
- gtk+-2.0 >= $GTK_REQUIRED_VERSION
|
|
759
|
+
- pygobject-2.0 >= $PYGOBJECT_REQUIRED
|
|
760
|
+
- " 2>&1`
|
|
761
|
+
- else
|
|
762
|
+
- APPINDICATOR_PYTHON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
|
|
763
|
+
- pygtk-2.0 >= $PYGTK_REQUIRED
|
|
764
|
+
- gtk+-2.0 >= $GTK_REQUIRED_VERSION
|
|
765
|
+
- pygobject-2.0 >= $PYGOBJECT_REQUIRED
|
|
766
|
+
- " 2>&1`
|
|
767
|
+
- fi
|
|
768
|
+
- # Put the nasty error message in config.log where it belongs
|
|
769
|
+
- echo "$APPINDICATOR_PYTHON_PKG_ERRORS" >&5
|
|
770
|
+
-
|
|
771
|
+
- as_fn_error $? "Package requirements (
|
|
772
|
+
- pygtk-2.0 >= $PYGTK_REQUIRED
|
|
773
|
+
- gtk+-2.0 >= $GTK_REQUIRED_VERSION
|
|
774
|
+
- pygobject-2.0 >= $PYGOBJECT_REQUIRED
|
|
775
|
+
- ) were not met:
|
|
776
|
+
-
|
|
777
|
+
-$APPINDICATOR_PYTHON_PKG_ERRORS
|
|
778
|
+
-
|
|
779
|
+
-Consider adjusting the PKG_CONFIG_PATH environment variable if you
|
|
780
|
+
-installed software in a non-standard prefix.
|
|
781
|
+
-
|
|
782
|
+
-Alternatively, you may set the environment variables APPINDICATOR_PYTHON_CFLAGS
|
|
783
|
+
-and APPINDICATOR_PYTHON_LIBS to avoid the need to call pkg-config.
|
|
784
|
+
-See the pkg-config man page for more details." "$LINENO" 5
|
|
785
|
+
-elif test $pkg_failed = untried; then
|
|
786
|
+
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
787
|
+
-$as_echo "no" >&6; }
|
|
788
|
+
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
|
789
|
+
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
790
|
+
-as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
|
|
791
|
+
-is in your PATH or set the PKG_CONFIG environment variable to the full
|
|
792
|
+
-path to pkg-config.
|
|
793
|
+
-
|
|
794
|
+
-Alternatively, you may set the environment variables APPINDICATOR_PYTHON_CFLAGS
|
|
795
|
+
-and APPINDICATOR_PYTHON_LIBS to avoid the need to call pkg-config.
|
|
796
|
+
-See the pkg-config man page for more details.
|
|
797
|
+
-
|
|
798
|
+
-To get pkg-config, see <http://pkg-config.freedesktop.org/>.
|
|
799
|
+
-See \`config.log' for more details" "$LINENO" 5; }
|
|
800
|
+
-else
|
|
801
|
+
- APPINDICATOR_PYTHON_CFLAGS=$pkg_cv_APPINDICATOR_PYTHON_CFLAGS
|
|
802
|
+
- APPINDICATOR_PYTHON_LIBS=$pkg_cv_APPINDICATOR_PYTHON_LIBS
|
|
803
|
+
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
804
|
+
-$as_echo "yes" >&6; }
|
|
805
|
+
-
|
|
806
|
+
-fi
|
|
807
|
+
-
|
|
808
|
+
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pygtk defs" >&5
|
|
809
|
+
-$as_echo_n "checking for pygtk defs... " >&6; }
|
|
810
|
+
-PYGTK_DEFSDIR=`$PKG_CONFIG --variable=defsdir pygtk-2.0`
|
|
811
|
+
-
|
|
812
|
+
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYGTK_DEFSDIR" >&5
|
|
813
|
+
-$as_echo "$PYGTK_DEFSDIR" >&6; }
|
|
814
|
+
-
|
|
815
|
+
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pygtk codegen" >&5
|
|
816
|
+
-$as_echo_n "checking for pygtk codegen... " >&6; }
|
|
817
|
+
-PYGTK_CODEGEN="$PYTHON `$PKG_CONFIG --variable=codegendir pygtk-2.0`/codegen.py"
|
|
818
|
+
-
|
|
819
|
+
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYGTK_CODEGEN" >&5
|
|
820
|
+
-$as_echo "$PYGTK_CODEGEN" >&6; }
|
|
821
|
+
|
|
822
|
+
#########################
|
|
823
|
+
# Check if build tests
|
|
824
|
+
@@ -14358,7 +14001,7 @@ fi
|
|
825
|
+
# Files
|
|
826
|
+
###########################
|
|
827
|
+
|
|
828
|
+
-ac_config_files="$ac_config_files Makefile src/Makefile src/appindicator-0.1.pc src/appindicator3-0.1.pc bindings/Makefile bindings/python/Makefile bindings/python/appindicator.override bindings/vala/Makefile bindings/vala/examples/Makefile tests/Makefile example/Makefile docs/Makefile docs/reference/Makefile docs/reference/version.xml docs/reference/libappindicator-docs.sgml"
|
|
829
|
+
+ac_config_files="$ac_config_files Makefile src/Makefile src/appindicator-0.1.pc src/appindicator3-0.1.pc bindings/Makefile bindings/vala/Makefile bindings/vala/examples/Makefile tests/Makefile example/Makefile docs/Makefile docs/reference/Makefile docs/reference/version.xml docs/reference/libappindicator-docs.sgml"
|
|
830
|
+
|
|
831
|
+
|
|
832
|
+
if test "x$has_mono" = "xtrue" ; then
|
|
833
|
+
@@ -15437,8 +15080,6 @@ do
|
|
834
|
+
"src/appindicator-0.1.pc") CONFIG_FILES="$CONFIG_FILES src/appindicator-0.1.pc" ;;
|
|
835
|
+
"src/appindicator3-0.1.pc") CONFIG_FILES="$CONFIG_FILES src/appindicator3-0.1.pc" ;;
|
|
836
|
+
"bindings/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/Makefile" ;;
|
|
837
|
+
- "bindings/python/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/python/Makefile" ;;
|
|
838
|
+
- "bindings/python/appindicator.override") CONFIG_FILES="$CONFIG_FILES bindings/python/appindicator.override" ;;
|
|
839
|
+
"bindings/vala/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/vala/Makefile" ;;
|
|
840
|
+
"bindings/vala/examples/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/vala/examples/Makefile" ;;
|
|
841
|
+
"tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
|
|
842
|
+
diff --git a/configure.ac b/configure.ac
|
|
843
|
+
index ee03390..4713b22 100644
|
|
844
|
+
--- a/configure.ac
|
|
845
|
+
+++ b/configure.ac
|
|
846
|
+
@@ -181,33 +181,6 @@ AM_CONDITIONAL(BUILD_MONO_TEST, test x${have_nunit} = xyes)
|
|
847
|
+
with_localinstall="no"
|
|
848
|
+
AC_ARG_ENABLE(localinstall, AS_HELP_STRING([--enable-localinstall], [install all of the files localy instead of system directories (for distcheck)]), with_localinstall=$enableval, with_localinstall=no)
|
|
849
|
+
|
|
850
|
+
-###########################
|
|
851
|
+
-# Python
|
|
852
|
+
-###########################
|
|
853
|
+
-
|
|
854
|
+
-PYGTK_REQUIRED=2.14.0
|
|
855
|
+
-PYGOBJECT_REQUIRED=0.22
|
|
856
|
+
-
|
|
857
|
+
-AM_PATH_PYTHON(2.3.5)
|
|
858
|
+
-AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(could not find Python headers)])
|
|
859
|
+
-
|
|
860
|
+
-PKG_CHECK_MODULES(APPINDICATOR_PYTHON,
|
|
861
|
+
- [
|
|
862
|
+
- pygtk-2.0 >= $PYGTK_REQUIRED
|
|
863
|
+
- gtk+-2.0 >= $GTK_REQUIRED_VERSION
|
|
864
|
+
- pygobject-2.0 >= $PYGOBJECT_REQUIRED
|
|
865
|
+
- ])
|
|
866
|
+
-
|
|
867
|
+
-AC_MSG_CHECKING(for pygtk defs)
|
|
868
|
+
-PYGTK_DEFSDIR=`$PKG_CONFIG --variable=defsdir pygtk-2.0`
|
|
869
|
+
-AC_SUBST(PYGTK_DEFSDIR)
|
|
870
|
+
-AC_MSG_RESULT($PYGTK_DEFSDIR)
|
|
871
|
+
-
|
|
872
|
+
-AC_MSG_CHECKING(for pygtk codegen)
|
|
873
|
+
-PYGTK_CODEGEN="$PYTHON `$PKG_CONFIG --variable=codegendir pygtk-2.0`/codegen.py"
|
|
874
|
+
-AC_SUBST(PYGTK_CODEGEN)
|
|
875
|
+
-AC_MSG_RESULT($PYGTK_CODEGEN)
|
|
876
|
+
-
|
|
877
|
+
#########################
|
|
878
|
+
# Check if build tests
|
|
879
|
+
#########################
|
|
880
|
+
@@ -239,8 +212,6 @@ src/Makefile
|
|
881
|
+
src/appindicator-0.1.pc
|
|
882
|
+
src/appindicator3-0.1.pc
|
|
883
|
+
bindings/Makefile
|
|
884
|
+
-bindings/python/Makefile
|
|
885
|
+
-bindings/python/appindicator.override
|
|
886
|
+
bindings/vala/Makefile
|
|
887
|
+
bindings/vala/examples/Makefile
|
|
888
|
+
tests/Makefile
|