~ubuntu-branches/ubuntu/hardy/deskbar-applet/hardy

« back to all changes in this revision

Viewing changes to deskbar/core/CoreImpl.py

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2008-01-15 11:41:08 UTC
  • mfrom: (1.5.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20080115114108-7ai0xs5wpuysvf4i
Tags: 2.21.5-0ubuntu1
* New upstream version:
  - Added tomboy module 
  - Fixed bug #504875: cannot concatenate 'str' and 'NoneType' 
    objects in beagle-live.py
  - Fixed bug #382127: devhelp handler is broken 
  - Fixed bug #350597: "Send a mail" to a contact list adds only the first 
    contact to "To:" 
  - Added button to preference to reload all modules. 
    Fixes bug #356008: a 'reload all scripts' button on the deskbar applet. 
  - Re-added LingeringSelectionWindow for CuemiacTreeView 
    and CuemiacActionsTreeView
  - Catching RuntimeException in OpenFileAction.is_valid and return False 
    if it occurs
  - Fixed bug #508326: The window title is not translatable
  - Catch Exception when loading history to prevent 
    that bugzilla pops up when history file is corrupted 
  - Fixed bug #507414: AttributeError in del.ico.us module
  - Be compatible with older versions of OpenDesktopFileAction.py that had 
    no attribute '_prog' 
  - Fixed bug #509058: list index out of range in tomboy.py
  - Fixed bug #509127: Execute previous search (patch by Andreas Kühntopf). 
    When you cycle through previous searches with up/down keys pressing enter 
    will re-run the search.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
from deskbar.core.ThreadPool import ThreadPool
13
13
import deskbar.interfaces
14
14
 
 
15
LOGGER = logging.getLogger(__name__)
 
16
 
15
17
class CoreImpl(deskbar.interfaces.Core):
16
18
    
17
19
    DEFAULT_KEYBINDING = "<Alt>F3"
157
159
        """
158
160
        self._gconf.set_keybinding(binding)
159
161
        if not self._keybinder.bind(binding):
160
 
            logging.error("Keybinding is already in use")
 
162
            LOGGER.error("Keybinding is already in use")
161
163
        else:
162
 
            logging.info("Successfully binded Deskbar to %s" % binding)
 
164
            LOGGER.info("Successfully binded Deskbar to %s" % binding)
163
165
    
164
166
    def set_min_chars(self, number):
165
167
        self._gconf.set_min_chars(number)
237
239
        else:
238
240
            self._module_loader.initialize_module(module)
239
241
        self._module_list.increase_bottom_enabled_path()
 
242
 
 
243
    def reload_all_modules(self):
 
244
        self._module_list.clear()
 
245
        self._disabled_module_list.clear()
 
246
        LOGGER.info("Reloading all modules")
 
247
        self._module_loader.emit("modules-reloading")
 
248
        self._module_loader.load_all()
240
249
    
241
250
    def stop_queries(self):
242
251
        self._stop_queries = True
337
346
    def forward_query_ready(self, handler, query, matches):
338
347
        if query == self._last_query and matches != None and len(matches) > 0 and not self._stop_queries:
339
348
            self._emit_query_ready(matches)
340
 
        
 
 
b'\\ No newline at end of file'
 
349