~fmos/zim/features

« back to all changes in this revision

Viewing changes to zim/plugins/insertsymbol.py

  • Committer: Fabian Moser
  • Date: 2011-01-08 18:26:21 UTC
  • mfrom: (297.1.32 pyzim-trunk)
  • Revision ID: e-mail@fabianmoser.at-20110108182621-5k8ymh4s9b7lnfkf
Merged main branch and updated sidepane registration for the tag tree plugin

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
import logging
7
7
 
8
8
from zim.plugins import PluginClass
9
 
from zim.gui.widgets import Dialog, Button
 
9
from zim.gui.widgets import Dialog, Button, InputEntry
10
10
from zim.config import config_file
11
11
 
12
12
 
111
111
                        defaultwindowsize=(350, 400) )
112
112
                self.plugin = plugin
113
113
 
114
 
                self.textentry = gtk.Entry()
 
114
                self.textentry = InputEntry()
115
115
                self.vbox.pack_start(self.textentry, False)
116
116
 
117
117
                # TODO make this iconview single-click
180
180
 
181
181
        def do_response_ok(self):
182
182
                text = self.textentry.get_text()
183
 
                text = text.decode('utf-8')
184
183
                textview = self.plugin.pageview.view
185
184
                buffer = textview.get_buffer()
186
185
                buffer.insert_at_cursor(text)