Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/activities/terminal
diff options
context:
space:
mode:
Diffstat (limited to 'activities/terminal')
-rw-r--r--activities/terminal/Makefile.am6
-rw-r--r--activities/terminal/TerminalActivity.py82
-rw-r--r--activities/terminal/__init__.py0
-rw-r--r--activities/terminal/terminal.activity5
4 files changed, 0 insertions, 93 deletions
diff --git a/activities/terminal/Makefile.am b/activities/terminal/Makefile.am
deleted file mode 100644
index 03f3f61..0000000
--- a/activities/terminal/Makefile.am
+++ /dev/null
@@ -1,6 +0,0 @@
-sugardir = $(pkgdatadir)/activities/terminal
-sugar_PYTHON = \
- __init__.py \
- TerminalActivity.py
-
-EXTRA_DIST = terminal.activity
diff --git a/activities/terminal/TerminalActivity.py b/activities/terminal/TerminalActivity.py
deleted file mode 100644
index 5826b16..0000000
--- a/activities/terminal/TerminalActivity.py
+++ /dev/null
@@ -1,82 +0,0 @@
-# Copyright (C) 2006, Red Hat, Inc.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-import gtk
-import vte
-import pango
-
-from sugar.activity.Activity import Activity
-
-_TERMINAL_ACTIVITY_TYPE = "_terminal._tcp"
-
-class Terminal(gtk.HBox):
- def __init__(self):
- gtk.HBox.__init__(self, False, 4)
-
- self._vte = vte.Terminal()
- self._configure_vte()
- self._vte.set_size(30, 5)
- self._vte.set_size_request(200, 50)
- self._vte.show()
- self.pack_start(self._vte)
-
- self._scrollbar = gtk.VScrollbar(self._vte.get_adjustment())
- self._scrollbar.show()
- self.pack_start(self._scrollbar, False, False, 0)
-
- self._vte.connect("child-exited", lambda term: term.fork_command())
-
- self._vte.fork_command()
-
- def _configure_vte(self):
- self._vte.set_font(pango.FontDescription('Monospace 10'))
- self._vte.set_colors(gtk.gdk.color_parse ('#AAAAAA'),
- gtk.gdk.color_parse ('#000000'),
- [])
- self._vte.set_cursor_blinks(False)
- self._vte.set_audible_bell(False)
- self._vte.set_scrollback_lines(100)
- self._vte.set_allow_bold(True)
- self._vte.set_scroll_on_keystroke(False)
- self._vte.set_scroll_on_output(False)
- self._vte.set_emulation('xterm')
- self._vte.set_visible_bell(False)
-
- def on_gconf_notification(self, client, cnxn_id, entry, what):
- self.reconfigure_vte()
-
- def on_vte_button_press(self, term, event):
- if event.button == 3:
- self.do_popup(event)
- return True
-
- def on_vte_popup_menu(self, term):
- pass
-
- def grab_focus(self):
- self._vte.grab_focus()
-
-class TerminalActivity(Activity):
- def __init__(self):
- Activity.__init__(self)
-
- self.set_title("Terminal")
-
- terminal = Terminal()
- self.add(terminal)
- terminal.show()
-
- terminal.grab_focus()
diff --git a/activities/terminal/__init__.py b/activities/terminal/__init__.py
deleted file mode 100644
index e69de29..0000000
--- a/activities/terminal/__init__.py
+++ /dev/null
diff --git a/activities/terminal/terminal.activity b/activities/terminal/terminal.activity
deleted file mode 100644
index f0e89d4..0000000
--- a/activities/terminal/terminal.activity
+++ /dev/null
@@ -1,5 +0,0 @@
-[Activity]
-name = Terminal
-icon = activity-terminal
-id = org.sugar.Terminal
-python_module = terminal.TerminalActivity.TerminalActivity