summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelipe Corr??a da Silva Sanches <juca@members.fsf.org>2008-01-18 00:53:42 +0000
committerjucablues <jucablues@users.sourceforge.net>2008-01-18 00:53:42 +0000
commit168d3f7585a64acbb3232deb3a1bd1ac2c60b031 (patch)
treeaf0ca8f8a7a0eea40a1a47125414753c3160bf1a
parentFixed crash in the filter effects dialog on loading files with the unimplemen... (diff)
downloadinkscape-168d3f7585a64acbb3232deb3a1bd1ac2c60b031.tar.gz
inkscape-168d3f7585a64acbb3232deb3a1bd1ac2c60b031.zip
added "Ask Us a Question" to the Help menu linking to http://answers.launchpad.net/inkscape/+addquestion
(bzr r4546)
-rw-r--r--share/extensions/Makefile.am2
-rw-r--r--share/extensions/inkscape_help_askaquestion.inx12
-rw-r--r--share/extensions/webbrowser_askaquestion.py3
-rw-r--r--src/menus-skeleton.h1
4 files changed, 18 insertions, 0 deletions
diff --git a/share/extensions/Makefile.am b/share/extensions/Makefile.am
index acf4f2f91..b728b0e59 100644
--- a/share/extensions/Makefile.am
+++ b/share/extensions/Makefile.am
@@ -96,6 +96,7 @@ extensions = \
text_randomcase.py \
text_replace.py \
txt2svg.pl \
+ webbrowser_askaquestion.py \
webbrowser_commandline.py \
webbrowser_faq.py\
webbrowser_manual.py \
@@ -154,6 +155,7 @@ modules = \
gears.inx\
gimp_xcf.inx \
handles.inx \
+ inkscape_help_askaquestion.inx \
inkscape_help_commandline.inx \
inkscape_help_faq.inx\
inkscape_help_manual.inx \
diff --git a/share/extensions/inkscape_help_askaquestion.inx b/share/extensions/inkscape_help_askaquestion.inx
new file mode 100644
index 000000000..df1194dcc
--- /dev/null
+++ b/share/extensions/inkscape_help_askaquestion.inx
@@ -0,0 +1,12 @@
+<inkscape-extension>
+ <_name>Ask Us a Question</_name>
+ <id>org.inkscape.help.askaquestion</id>
+ <dependency type="executable" location="extensions">webbrowser_askaquestion.py</dependency>
+ <effect needs-document="no">
+ <object-type>all</object-type>
+ <effects-menu hidden="yes"/>
+ </effect>
+ <script>
+ <command reldir="extensions" interpreter="python">webbrowser_askaquestion.py</command>
+ </script>
+</inkscape-extension>
diff --git a/share/extensions/webbrowser_askaquestion.py b/share/extensions/webbrowser_askaquestion.py
new file mode 100644
index 000000000..7af6b125f
--- /dev/null
+++ b/share/extensions/webbrowser_askaquestion.py
@@ -0,0 +1,3 @@
+#!/usr/bin/env python
+import webbrowser
+webbrowser.open("http://answers.launchpad.net/inkscape/+addquestion")
diff --git a/src/menus-skeleton.h b/src/menus-skeleton.h
index b96ee2302..ac4209703 100644
--- a/src/menus-skeleton.h
+++ b/src/menus-skeleton.h
@@ -241,6 +241,7 @@ static char const menus_skeleton[] =
" <submenu name=\"" N_("_Help") "\">\n"
" <verb verb-id=\"org.inkscape.help.manual\" />\n"
" <verb verb-id=\"org.inkscape.help.keys\" />\n"
+" <verb verb-id=\"org.inkscape.help.askaquestion\" />\n"
" <submenu name=\"" N_("Tutorials") "\">\n"
" <verb verb-id=\"TutorialsBasic\" />\n"
" <verb verb-id=\"TutorialsShapes\" />\n"