Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Jam
diff options
context:
space:
mode:
authorNat <natcl@hotmail.com>2007-09-06 17:04:03 (GMT)
committer Nat <natcl@hotmail.com>2007-09-06 17:04:03 (GMT)
commitda7e224132dcaf19520ae675eb867ce8dc1fcbe3 (patch)
treefca0968c31a85c7c5742f68e90e771c0e150e050 /Jam
parent853ab0577d0dbe06fe2ea675109c57d5999dba07 (diff)
Jam palettes
Diffstat (limited to 'Jam')
-rw-r--r--Jam/Picker.py2
-rw-r--r--Jam/Popup.py5
-rw-r--r--Jam/Toolbars.py2
3 files changed, 3 insertions, 6 deletions
diff --git a/Jam/Picker.py b/Jam/Picker.py
index ad136da..081f923 100644
--- a/Jam/Picker.py
+++ b/Jam/Picker.py
@@ -71,7 +71,7 @@ class Picker( gtk.HBox ):
# tooltip
block._palette = Palette( name )
block._palette.props.invoker = WidgetInvoker(block)
- block._palette.set_property( "position", Palette.AT_CURSOR )
+ block._palette.props.invoker._position_hint = WidgetInvoker.AT_CURSOR
block.add_events( gtk.gdk.BUTTON_PRESS_MASK
| gtk.gdk.BUTTON_RELEASE_MASK
diff --git a/Jam/Popup.py b/Jam/Popup.py
index 587a34d..784087f 100644
--- a/Jam/Popup.py
+++ b/Jam/Popup.py
@@ -14,9 +14,7 @@ class NoneInvoker( Invoker ):
def __init__( self ):
Invoker.__init__( self )
-
- def get_default_position( self ):
- return Palette.AT_CURSOR
+ self._position_hint = Invoker.AT_CURSOR
def get_rect( self ):
return gtk.gdk.Rectangle( 0, 0, 0, 0 )
@@ -32,7 +30,6 @@ class Popup( Palette ):
self.owner = owner
self.props.invoker = NoneInvoker()
- self.set_property( "position", Palette.AT_CURSOR )
self.set_group_id( "TamTamPopup" )
self._set_state( Palette.SECONDARY ) # skip to fully exposed
diff --git a/Jam/Toolbars.py b/Jam/Toolbars.py
index 8c6abe8..74bc41d 100644
--- a/Jam/Toolbars.py
+++ b/Jam/Toolbars.py
@@ -52,7 +52,7 @@ class JamToolbar( gtk.Toolbar ):
def _add_palette( self, widget, palette ):
widget._palette = palette
widget._palette.props.invoker = WidgetInvoker( widget )
- widget._palette.set_property( "position", position )
+ #widget._palette.set_property( "position", position )
def _add_tooltip( self, widget, tooltip ):
#self._add_palette( widget, Palette( tooltip ), Palette.DEFAULT )