Skip to content

Commit

Permalink
Fix palette creation for all frame
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Francis <[email protected]>
  • Loading branch information
Daniel Francis committed Dec 9, 2014
1 parent a8f8f4f commit ebe9e0a
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 8 deletions.
1 change: 0 additions & 1 deletion extensions/deviceicon/audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ def create_palette(self):
palette = AudioPalette(device_label, output_label, input_label,
output_model=self._audio_output_model,
input_model=self._audio_input_model)
self.set_palette(palette)
palette.set_group_id('frame')
return palette

Expand Down
1 change: 0 additions & 1 deletion extensions/deviceicon/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,6 @@ def create_palette(self):
palette.connect('gsm-connect', self.__gsm_connect_cb)
palette.connect('gsm-disconnect', self.__gsm_disconnect_cb)

self.set_palette(palette)
self._palette = palette

props = dbus.Interface(self._device, dbus.PROPERTIES_IFACE)
Expand Down
1 change: 0 additions & 1 deletion extensions/deviceicon/speech.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ def create_palette(self):
label = GLib.markup_escape_text(_('Speech'))
palette = SpeechPalette(label, manager=self._manager)
palette.set_group_id('frame')
self.set_palette(palette)
return palette


Expand Down
3 changes: 2 additions & 1 deletion src/jarabe/frame/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,8 @@ def notify_right_press(self):

def notify_left_press(self):
if self.visible:
logging.debug("Frame: %d %d" % (self.nav_action, self.navigation_position))
logging.debug("Frame: %d %d" %
(self.nav_action, self.navigation_position))
if self.nav_action == -1 or self.nav_action == 2 \
or self.nav_action == -2:
self.navigation_position -= 1
Expand Down
1 change: 0 additions & 1 deletion src/jarabe/frame/friendstray.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ def create_palette(self):
palette = BuddyMenu(self._buddy)
palette.props.icon_visible = False
palette.set_group_id('frame')
self.set_palette(palette)
return palette


Expand Down
7 changes: 4 additions & 3 deletions src/jarabe/frame/navigable.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ def navigate(self):
if size == -1:
return -2
button = self.nav_queue[self.nav_pos]
if button.get_palette() is None:
button.create_palette()
button.get_palette().popup()
# if button.get_palette() is None:
# button.create_palette()
button.palette_invoker.notify_mouse_enter()
# button.get_palette().popup()
if size == 0:
return 2
if self.nav_pos == 0:
Expand Down

0 comments on commit ebe9e0a

Please sign in to comment.