[gtk-mac-integration] [Introspection] Change all instances of gtk_osxapplication to gtkosx_application in python bindings
- From: John Ralls <jralls src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-mac-integration] [Introspection] Change all instances of gtk_osxapplication to gtkosx_application in python bindings
- Date: Thu, 29 Dec 2011 23:35:57 +0000 (UTC)
commit 85ef48a98c6ff5befbe024a9a4a42cad5049c1f8
Author: John Ralls <jralls ceridwen us>
Date: Fri Nov 25 15:13:23 2011 -0800
[Introspection] Change all instances of gtk_osxapplication to gtkosx_application in python bindings.
bindings/python/gtk_osxapplication/Makefile.am | 30 ++++++++++----------
bindings/python/gtk_osxapplication/__init__.py | 8 ++--
.../python/gtk_osxapplication/test-integration.py | 2 +-
3 files changed, 20 insertions(+), 20 deletions(-)
---
diff --git a/bindings/python/gtk_osxapplication/Makefile.am b/bindings/python/gtk_osxapplication/Makefile.am
index ea16cba..52d5e45 100644
--- a/bindings/python/gtk_osxapplication/Makefile.am
+++ b/bindings/python/gtk_osxapplication/Makefile.am
@@ -1,28 +1,28 @@
INCLUDES = -I$(top_srcdir)/src $(PYTHON_INCLUDES)
-gtk_osxapplicationdir = $(libdir)/python$(PYTHON_VERSION)/site-packages/gtk_osxapplication
+gtkosx_applicationdir = $(libdir)/python$(PYTHON_VERSION)/site-packages/gtkosx_application
-gtk_osxapplication_PYTHON = __init__.py
-gtk_osxapplication_LTLIBRARIES = _gtk_osxapplication.la
+gtkosx_application_PYTHON = __init__.py
+gtkosx_application_LTLIBRARIES = _gtkosx_application.la
headers = $(top_srcdir)/src/gtkosxapplication.h
-gtk_osxapplication.defs: $(headers)
+gtkosx_application.defs: $(headers)
$(PYTHON) $(datadir)/pygobject/2.0/codegen/h2def.py $(headers) > $@
-gtk_osxapplication.c: gtk_osxapplication.defs gtk_osxapplication.override
+gtkosx_application.c: gtkosx_application.defs gtkosx_application.override
-_gtk_osxapplication_la_CFLAGS = \
+_gtkosx_application_la_CFLAGS = \
$(MAC_CFLAGS) \
$(PYGTK_CFLAGS)
-_gtk_osxapplication_la_LDFLAGS = -module -avoid-version -export-symbols-regex init_gtk_osxapplication
-_gtk_osxapplication_la_LIBADD = \
+_gtkosx_application_la_LDFLAGS = -module -avoid-version -export-symbols-regex init_gtkosx_application
+_gtkosx_application_la_LIBADD = \
$(MAC_LIBS) \
$(PYGTK_LIBS) \
$(top_builddir)/src/libgtkmacintegration.la
-_gtk_osxapplication_la_SOURCES = \
- gtk_osxapplication.c \
- gtk_osxapplication-module.c
+_gtkosx_application_la_SOURCES = \
+ gtkosx_application.c \
+ gtkosx_application-module.c
.defs.c:
($(PYGOBJECT_CODEGEN) \
@@ -34,9 +34,9 @@ _gtk_osxapplication_la_SOURCES = \
&& rm -f gen-$*.c
CLEANFILES = \
- gtk_osxapplication.defs \
- gtk_osxapplication.c
+ gtkosx_application.defs \
+ gtkosx_application.c
EXTRA_DIST = \
- gtk_osxapplication.defs \
- gtk_osxapplication.override
+ gtkosx_application.defs \
+ gtkosx_application.override
diff --git a/bindings/python/gtk_osxapplication/__init__.py b/bindings/python/gtk_osxapplication/__init__.py
index 6c322d3..4022ca2 100644
--- a/bindings/python/gtk_osxapplication/__init__.py
+++ b/bindings/python/gtk_osxapplication/__init__.py
@@ -19,10 +19,10 @@
import sys
-if 'gtk_osxapplication._gtk_osxapplication' in sys.modules:
- _gtk_osxapplication = sys.modules['gtk_osxapplication._gtk_osxapplication']
+if 'gtkosx_application._gtkosx_application' in sys.modules:
+ _gtkosx_application = sys.modules['gtkosx_application._gtkosx_application']
else:
- from gtk_osxapplication import _gtk_osxapplication
+ from gtkosx_application import _gtkosx_application
-from gtk_osxapplication._gtk_osxapplication import *
+from gtkosx_application._gtkosx_application import *
diff --git a/bindings/python/gtk_osxapplication/test-integration.py b/bindings/python/gtk_osxapplication/test-integration.py
index a7e533f..d960dd5 100755
--- a/bindings/python/gtk_osxapplication/test-integration.py
+++ b/bindings/python/gtk_osxapplication/test-integration.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
import gtk
-from gtk_osxapplication import *
+from gtkosx_application import *
class MainWindow(gtk.Window):
def __init__(self, macapp):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]