Commit 0293a9ae authored by Johan Dahlin's avatar Johan Dahlin

Remove, it shouldn't really be here

	* examples/test.py: Remove, it shouldn't really be here
parent 7877e56a
Makefile
Makefile.in
aclocal.m4
configure
autom4te.cache
config.h
config.h.in
config.log
config.status
libtool
nautilus-python.pc
stamp-h1
2004-06-13 Jürg Billeter <j@bitron.ch>
2004-10-04 Johan Dahlin <johan@gnome.org>
* src/Makefile.am:
* src/nautilus/File.cs:
* src/nautilus/Makefile.am: Update to reflect changes in mono
and Gtk# Beta 2.
* examples/test.py: Remove, it shouldn't really be here
2004-05-28 Dave Camp <dave@ximian.com>
* src/nautilus/Makefile.am:
* src/nautilus/nautilus-sharp.dll.config: Install
2004-05-27 Dave Camp <dave@ximian.com>
* src/nautilus-mono-helpers.c: (invoke_print_exceptions),
(nautilus_mono_invoke_with_values):
* src/nautilus-mono-object.c: (nautilus_mono_object_get_type):
* src/nautilus-mono.c: (nautilus_mono_get_nautilus_assembly):
* src/nautilus/Makefile.am:
2004-05-27 Dave Camp <dave@ximian.com>
* src/nautilus-mono.c: (nautilus_mono_get_glib_assembly),
(nautilus_mono_get_gtk_assembly): Use
mono_assembly_load_with_partial_name().
2004-05-27 Dave Camp <dave@ximian.com>
* Makefile.am:
* configure.in: Build and install nautilus-mono.pc.in
* nautilus-mono.pc.in: New file
* src/nautilus-mono.c: (nautilus_mono_get_glib_assembly),
(nautilus_mono_get_gtk_assembly): Use different path.
2004-03-09 Dave Camp <dave@ximian.com>
* configure.in:
* src/Makefile.am:
* src/nautilus-mono.c: (nautilus_mono_get_glib_assembly),
(nautilus_mono_get_gtk_assembly): (nautilus_module_initialize),
(nautilus_module_shutdown): Don't shutdown mono if it wasn't
initialized.
2004-03-09 Dave Camp <dave@ximian.com>
* src/nautilus-mono.c: (load_dir), (nautilus_module_initialize):
* src/nautilus/Makefile: Don't initialize mono if there are no
plugins.
2004-03-04 Dave Camp <dave@ximian.com>
* Made it all sort work.
2003-12-09 Calvin Gaisford <cgaisford@novell.com>
* Initial project created based on nautilus-vcs project
Imported to GNOME CVS
Makefile
Makefile.in
*.pyc
*.pyo
EXTRA_DIST = documentation.py test.py
EXTRA_DIST = documentation.py
test_PYTHON = \
background-image.py \
......
import gtk
import nautilus
class ColumnExtension(nautilus.ColumnProvider):
def __init__(self):
pass
def get_columns(self):
return nautilus.Column("NautilusPython::python_column",
"python_data",
"Python Data",
"Information from the Python test component"),
class MenuExtension(nautilus.MenuProvider):
def __init__(self):
pass
def menu_activate_cb(self, menu, window, files):
if files:
msg = ', '.join([file.get_name() for file in files])
else:
msg = 'nothing!'
g = gtk.MessageDialog(parent=window,
message_format="You selected " + msg,
buttons=gtk.BUTTONS_OK)
def timeout_cb():
print 'timeout'
return True
def response_cb(*args):
print args
source_id = gtk.timeout_add(100, timeout_cb)
g.run()
gtk.timeout_remove(source_id)
g.destroy()
def menu_background_activate_cb(self, menu, files):
print 'You clicked on the background'
def menu_toolbar_activate_cb(self, menu, files):
print 'You clicked in the toolbar'
def get_file_items(self, window, files):
item = nautilus.MenuItem('NautilusPython::file_item',
'Python!',
'Python File MenuItem')
item.connect('activate', self.menu_activate_cb, window, files)
return item,
def get_background_items(self, window, file):
item = nautilus.MenuItem('NautilusPython::background_item',
'Python!',
'Python Background MenuItem')
item.connect('activate', self.menu_background_activate_cb, file)
return item,
def get_toolbar_items(self, window, file):
item = nautilus.MenuItem('NautilusPython::toolbar_item',
'Python!',
'Python Toolbar MenuItem')
item.connect('activate', self.menu_toolbar_activate_cb, file)
return item,
class PropertyExtension(nautilus.PropertyPageProvider):
def __init__(self):
pass
def get_property_pages(self, files):
d = [file.get_data('python') for file in files]
label = gtk.Label('Python 2')
label.show()
page = gtk.Label('Python property page: %r' % d)
page.show()
return nautilus.PropertyPage("NautilusPython::property_page",
label, page),
class InfoExtension(nautilus.InfoProvider):
def __init__(self):
pass
def update_file_info(self, file):
file.set_data('python', 2j)
Makefile
Makefile.in
*.pyc
*.pyo
nautilus.c
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment