Skip to content

Commit

Permalink
fixed custom label not updating when only deleting text
Browse files Browse the repository at this point in the history
  • Loading branch information
Timo Loewe committed Aug 7, 2012
1 parent 8e56136 commit 43a410f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions JumpToPlaying/JumpToPlaying.py
Expand Up @@ -20,8 +20,6 @@
from gi.repository import PeasGtk
from gi.repository import Gtk

toolbar_button_key = 'toolbar_button'
context_menu_key = 'context_menu'

ui_toolbar_button = """
<ui>
Expand Down Expand Up @@ -106,7 +104,7 @@ def do_activate(self):
if (is_small):
tb_widget.hide()
except:
print "No SmallDisplayMode anymore (since Rhythmbox 2.97)"
#print "No SmallDisplayMode anymore (since Rhythmbox 2.97)"
pass


Expand Down Expand Up @@ -185,6 +183,7 @@ def do_create_configure_widget(self):
entry_buffer = Gtk.EntryBuffer()
entry_buffer.set_text(self.settings["label-text"], len(self.settings["label-text"]))
entry_buffer.connect("inserted-text", self.label_edited)
entry_buffer.connect("deleted-text", self.label_edited)
entry.set_buffer(entry_buffer)


Expand All @@ -204,7 +203,7 @@ def switch_toggled(self, switch, active):
self.settings["use-custom-label"] = switch.get_active()


def label_edited(self, entry_buffer, position, chars, n_chars):
def label_edited(self, entry_buffer, *args):
self.settings["label-text"] = entry_buffer.get_text()


Expand Down

0 comments on commit 43a410f

Please sign in to comment.