Advertisement
krax

kupfer toggle text mode

Nov 28th, 2011
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 1.10 KB | None | 0 0
  1. <dnschneid> amin`: if you add a line to the later part of WindowController.on_present in kupfer/ui/browser.py (around line 2190), you might be able to make it enable text mode whenever you pop open kupfer
  2. <dnschneid> sec
  3. <amin`> dnschneid, whaww! thanks
  4. <amin`> waiting!
  5. <dnschneid> try adding
  6. <dnschneid> self.interface.toggle_text_mode(True)
  7. <dnschneid> but no guarantees :)
  8. <dnschneid> okay, you'll want to put it at the very end of the function
  9. <dnschneid> note that it does make you lose your place (normally you can show and hide kupfer without changing the pane selections
  10. <dnschneid> )
  11. <amin`> dnschneid, thanks i'll check it now
  12. <dnschneid> don't forget to quit and reopen kupfer once you've made the change :)
  13. <amin`> okie dokie
  14.  
  15. LINE : 2143
  16.  
  17.     display = gtk.gdk.display_get_default().get_name()
  18.         if (self._should_recenter_window() or
  19.             not self.is_current_display(display)):
  20.             self._center_window(display)
  21.         self.window.stick()
  22.         self.window.present_with_time(timestamp)
  23.         self.window.window.focus(timestamp=timestamp)
  24.         self.interface.toggle_text_mode(True)
  25.         self.interface.focus()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement