Code

added "Ask Us a Question" to the Help menu linking to http://answers.launchpad.net...
authorjucablues <jucablues@users.sourceforge.net>
Fri, 18 Jan 2008 00:53:42 +0000 (00:53 +0000)
committerjucablues <jucablues@users.sourceforge.net>
Fri, 18 Jan 2008 00:53:42 +0000 (00:53 +0000)
share/extensions/Makefile.am
share/extensions/inkscape_help_askaquestion.inx [new file with mode: 0644]
share/extensions/webbrowser_askaquestion.py [new file with mode: 0644]
src/menus-skeleton.h

index acf4f2f91597959a6c46f173f28242e453bbd9a7..b728b0e59ab485a91ed59def7b9e7c9240c8fdc0 100644 (file)
@@ -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 (file)
index 0000000..df1194d
--- /dev/null
@@ -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 (file)
index 0000000..7af6b12
--- /dev/null
@@ -0,0 +1,3 @@
+#!/usr/bin/env python 
+import webbrowser
+webbrowser.open("http://answers.launchpad.net/inkscape/+addquestion")
index b96ee230269c550cf7407e9b9ec76ad0f9ad9fb7..ac420970302c53caee67f5a4b5c1a431b5838852 100644 (file)
@@ -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"