> builder.connect_signals({
> 'on_pref_autostart_toggled':
> self.on_autostart_toggled,
> @@ -148,8 +155,10 @@
> return True
>
> @classmethod
> - def on_help(cls, widget):
> - """ In future, this will open help for preferences """
> + # We define dummy variable for when on_help is called from a callback
> + def on_help(self, window=None, a=None, b=None, c=None):
> + """ Open help for preferences """
> + openurl(info.HELP_URI)
> return True
>
> @classmethod
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~gtg
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~gtg
> More help : https://help.launchpad.net/ListHelp
>
> Also, Please run make lint=python3 and make sure that there are no errors
in the code that you have modified.
Hi Sara,
You need to make some small fixes:
=== modified file 'CHANGELOG'
> --- CHANGELOG 2014-03-05 19:25:18 +0000 backends_ dialog. ui' backends_ dialog. ui 2013-09-04 17:48:19 +0000 backends_ dialog. ui 2014-03-09 03:03:28 +0000 focus"> False</ property> style"> edge</property> >gtk-help< /property> >True</ property> focus"> True</property> backends_ dialog/ __init_ _.py' backends_ dialog/ __init_ _.py 2013-11-25 02:37:46 +0000 backends_ dialog/ __init_ _.py 2014-03-09 03:03:28 +0000 widgets_ from_builder( builder) set_title( _("Synchronizat ion Services - %s" %
> +++ CHANGELOG 2014-03-09 03:03:28 +0000
> @@ -19,6 +19,7 @@
> * Fix for bug #1286493 : GTG cannot connect to RTM, by Pawan Hegde
> * Fix for bug #1288011 : More intuitive title label for tasks, by
> Sara Ribeiro
> * Fix for bug #316922 : Have a link to the parent(s) in the task
> editor, by Parth Panchal
> + * Fix for bug #1027604: Deeper integeration of userdoc, by Sara
> Ribeiro
>
> 2013-11-24 Getting Things GNOME! 0.3.1
> * Fix for bug #1024473: Have 'Show Main Window' in notification area,
> by Antonio Roquentin
>
> === modified file 'GTG/gtk/
> --- GTG/gtk/
> +++ GTG/gtk/
> @@ -151,7 +151,7 @@
> <property name="can_
> <property name="layout_
> <child>
> - <object class="GtkButton" id="button1">
> + <object class="GtkButton" id="sync_help">
> <property name="label"
> <property name="visible"
> <property name="can_
>
> === modified file 'GTG/gtk/
> --- GTG/gtk/
> +++ GTG/gtk/
> @@ -72,6 +72,7 @@
> self._load_
> # Load and setup other widgets
> self.dialog.
> info.NAME))
> +
>
Remove this extra line
> self._create_ widgets_ for_add_ panel() widgets_ for_conf_ panel() signal_ connections( builder) connect_ signals( signals) add_accel_ group(agr) get_object( "sync_help" ) _parse( 'F1') add_accelerator ("activate" , agr, key, modifier, VISIBLE) icon_theme( self): editor/ editor. py' editor/ editor. py 2014-03-05 19:25:18 +0000 editor/ editor. py 2014-03-09 03:03:28 +0000 editor. taskview import TaskView plugins. engine import PluginEngine _parse( '<Control> w') VISIBLE, self.close) _parse( 'F1') VISIBLE, self.show_help) _parse( '<Control> n') VISIBLE, self.new_task) set(tid, "position", self.get_ position( )) set(tid, "size", self.window. get_size( )) info.HELP_ URI) plugins. py'
> self._create_
> self._setup_
> @@ -199,6 +200,13 @@
> }
> builder.
>
> + # adding F1 as a shortcut for Help
> + agr = Gtk.AccelGroup()
> + self.dialog.
> + widget = builder.
> + key, modifier = Gtk.accelerator
> + widget.
> Gtk.AccelFlags.
> +
> def _configure_
> '''
> Inform gtk on the location of the backends icons (which is in
>
> === modified file 'GTG/gtk/
> --- GTG/gtk/
> +++ GTG/gtk/
> @@ -24,10 +24,12 @@
> The rest is the logic of the widget: date changing widgets, buttons, ...
> """
> import time
> +from webbrowser import open as openurl
>
> from gi.repository import Gtk, Gdk, Pango
>
> from GTG import _, ngettext
> +from GTG import info
> from GTG.gtk.editor import GnomeConfig
> from GTG.gtk.
> from GTG.core.
> @@ -201,6 +203,10 @@
> key, modifier = Gtk.accelerator
> agr.connect(key, modifier, Gtk.AccelFlags.
>
> + # F1 shows help
> + key, modifier = Gtk.accelerator
> + agr.connect(key, modifier, Gtk.AccelFlags.
> +
> # Ctrl-N creates a new task
> key, modifier = Gtk.accelerator
> agr.connect(key, modifier, Gtk.AccelFlags.
> @@ -573,6 +579,12 @@
> self.config.
> self.config.
>
> + # We define dummy variable for when show_help is called from a
> callback
> + def show_help(self, window=None, a=None, b=None, c=None):
> + """ Open help """
> + openurl(
> + return True
> +
> # We define dummy variable for when close is called from a callback
> def close(self, window=None, a=None, b=None, c=None):
>
>
> === modified file 'GTG/gtk/
> --- GTG/gtk/plugins.py 2013-11-25 02:37:46 +0000
> +++ GTG/gtk/plugins.py 2014-03-09 03:03:28 +0000
> @@ -19,6 +19,8 @@
>
> """ Dialog for loading plugins """
>
> +from webbrowser import open as openurl
> +
>
Remove this extra line
> from gi.repository import Gtk, Pango plugin_ about_close, add_accel_ group(agr) get_object( "plugins_ help") _parse( "F1") add_accelerator ("activate" , agr, key, mod, VISIBLE) tree(self) : "help:gtg/ gtg-plugins" ) toggle( self, widget, path): plugins. ui' GtkButtonBox" id="dialog- action_ area5"> >True</ property> focus"> False</ property> style"> end</property> style"> edge</property> >gtk-help< /property> focus"> True</property> default" >True</ property> show_all" >True</ property> >True</ property> action_ appearance" >False< /property> stock"> True</property> "on_plugins_ help" "on_plugins_ help" >False< /property> preferences. py' preferences. py 2014-01-14 16:36:35 +0000 preferences. py 2014-03-09 03:03:28 +0000 .set_font_ name(editor_ font) add_accel_ group(agr) _parse( 'F1') VISIBLE, self.on_help)
>
> from GTG import _
> @@ -172,6 +174,14 @@
> self.on_
> })
>
> + # adding F1 as a shortcut for Help
> + agr = Gtk.AccelGroup()
> + self.dialog.
> + widget = builder.
> + key, mod = Gtk.accelerator
> + widget.
> + Gtk.AccelFlags.
> +
> def _init_plugin_
> """ Initialize the PluginTree Gtk.TreeView.
>
> @@ -237,7 +247,8 @@
>
> @classmethod
> def on_help(cls, widget):
> - """ In future, this will open help for plugins """
> + """ Open help for plugins """
> + openurl(
> return True
>
> def on_plugin_
>
> === modified file 'GTG/gtk/
> --- GTG/gtk/plugins.ui 2013-09-04 17:48:19 +0000
> +++ GTG/gtk/plugins.ui 2014-03-09 03:03:28 +0000
> @@ -83,16 +83,16 @@
> <object class="
> <property name="visible"
> <property name="can_
> - <property name="layout_
> + <property name="layout_
> <child>
> <object class="GtkButton" id="plugins_help">
> <property name="label"
> <property name="can_
> <property name="receives_
> - <property name="no_
> + <property name="visible"
> <property name="use_
> <property name="use_
> - <signal name="released" handler=
> swapped="no"/>
> + <signal name="clicked" handler=
> swapped="no"/>
> </object>
> <packing>
> <property name="expand"
>
> === modified file 'GTG/gtk/
> --- GTG/gtk/
> +++ GTG/gtk/
> @@ -21,6 +21,7 @@
>
> import os
> import shutil
> +from webbrowser import open as openurl
>
> from gi.repository import Gtk
> from xdg.BaseDirectory import xdg_config_home
> @@ -100,6 +101,12 @@
> editor_font = font.to_string()
> self.fontbutton
>
> + # F1 shows help
> + agr = Gtk.AccelGroup()
> + self.dialog.
> + key, modifier = Gtk.accelerator
> + agr.connect(key, modifier, Gtk.AccelFlags.
> +
>
Remove this empty line
> builder. connect_ signals( { autostart_ toggled' : autostart_ toggled, info.HELP_ URI) _______ _______ _______ _______ _______ _____ /launchpad. net/~gtg /launchpad. net/~gtg /help.launchpad .net/ListHelp
> 'on_pref_
> self.on_
> @@ -148,8 +155,10 @@
> return True
>
> @classmethod
> - def on_help(cls, widget):
> - """ In future, this will open help for preferences """
> + # We define dummy variable for when on_help is called from a callback
> + def on_help(self, window=None, a=None, b=None, c=None):
> + """ Open help for preferences """
> + openurl(
> return True
>
> @classmethod
>
>
> _______
> Mailing list: https:/
> Post to : <email address hidden>
> Unsubscribe : https:/
> More help : https:/
>
> Also, Please run make lint=python3 and make sure that there are no errors
in the code that you have modified.