[conduit] show more appropriate hints when adding preconfigured conduits
- From: John Stowers <jstowers src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [conduit] show more appropriate hints when adding preconfigured conduits
- Date: Thu, 7 Jan 2010 15:52:15 +0000 (UTC)
commit 35befb14b15eb56419a9e386e3fd704bebe85fb9
Author: John Stowers <john stowers gmail com>
Date: Thu Jan 7 16:48:24 2010 +0100
show more appropriate hints when adding preconfigured conduits
conduit/gtkui/Canvas.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/conduit/gtkui/Canvas.py b/conduit/gtkui/Canvas.py
index 9ab6ba3..6f94e7e 100644
--- a/conduit/gtkui/Canvas.py
+++ b/conduit/gtkui/Canvas.py
@@ -234,7 +234,10 @@ class Canvas(goocanvas.Canvas, _StyleMixin):
return
if newItem == conduitCanvasItem:
- self._make_hint(Knowledge.HINT_ADD_DATAPROVIDER)
+ if conduitCanvasItem.model.can_sync():
+ self._make_hint(Knowledge.HINT_RIGHT_CLICK_CONFIGURE)
+ else:
+ self._make_hint(Knowledge.HINT_ADD_DATAPROVIDER)
elif newItem == dataproviderCanvasItem:
#check if we have a source and a sink
if conduitCanvasItem.model.can_sync():
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]