]> git.0d.be Git - empathy.git/blobdiff - python/update-binding.sh
Merge branch 'master' into tp-tube
[empathy.git] / python / update-binding.sh
index b39341ffcefc389001f4b1644ba98813ab97138e..14a5ddec335882558101e022892b99267a4532be 100755 (executable)
@@ -3,71 +3,83 @@
 
 # Update the list of headers from Makefile.am
 cd ../libempathy
-python /usr/share/pygtk/2.0/codegen/h2def.py   \
-       empathy-avatar.h                        \
-       empathy-time.h                          \
-       empathy-status-presets.h                \
-       empathy-debug.h                         \
-       empathy-utils.h                         \
-       empathy-message.h                       \
-       empathy-chatroom-manager.h              \
+python /usr/share/pygobject/2.0/codegen/h2def.py       \
+        -m empathy                             \
+       empathy-account-manager.h               \
        empathy-chatroom.h                      \
+       empathy-chatroom-manager.h              \
+       empathy-call-factory.h                  \
+       empathy-call-handler.h                  \
        empathy-contact.h                       \
        empathy-contact-groups.h                \
        empathy-contact-list.h                  \
        empathy-contact-manager.h               \
-       empathy-contact-factory.h               \
+       empathy-contact-monitor.h               \
+       empathy-debug.h                         \
+       empathy-dispatcher.h                    \
+       empathy-dispatch-operation.h            \
+       empathy-idle.h                          \
+       empathy-irc-network.h                   \
+       empathy-irc-network-manager.h           \
+       empathy-irc-server.h                    \
+       empathy-log-manager.h                   \
+       empathy-log-store.h                     \
+       empathy-log-store-empathy.h             \
+       empathy-message.h                       \
+       empathy-status-presets.h                \
+       empathy-time.h                          \
+       empathy-tp-call.h                       \
+       empathy-tp-chat.h                       \
        empathy-tp-contact-factory.h            \
-       empathy-tp-group.h                      \
        empathy-tp-contact-list.h               \
-       empathy-tp-chat.h                       \
+       empathy-tp-file.h                       \
        empathy-tp-roomlist.h                   \
-       empathy-tp-call.h                       \
        empathy-tp-tube.h                       \
-       empathy-idle.h                          \
-       empathy-log-manager.h                   \
-       empathy-irc-network-manager.h           \
-       empathy-irc-network.h                   \
-       empathy-irc-server.h                    \
        empathy-tube-handler.h                  \
+       empathy-types.h                         \
+       empathy-utils.h                         \
  > ../python/pyempathy/pyempathy.defs
 
 # Update the list of headers from Makefile.am
 cd ../libempathy-gtk
-python /usr/share/pygtk/2.0/codegen/h2def.py   \
-       empathy-images.h                        \
+python /usr/share/pygobject/2.0/codegen/h2def.py       \
+       -m empathy                              \
        empathy-account-chooser.h               \
-       empathy-chat.h                          \
-       empathy-irc-network-dialog.h            \
-       empathy-spell-dialog.h                  \
-       empathy-accounts-dialog.h               \
-       empathy-chat-view.h                     \
-       empathy-log-window.h                    \
-       empathy-theme-boxes.h                   \
        empathy-account-widget.h                \
-       empathy-conf.h                          \
-       empathy-theme.h                         \
        empathy-account-widget-irc.h            \
        empathy-account-widget-sip.h            \
-       empathy-contact-dialogs.h               \
-       empathy-new-message-dialog.h            \
-       empathy-theme-irc.h                     \
        empathy-avatar-chooser.h                \
-       empathy-contact-list-store.h            \
-       empathy-presence-chooser.h              \
-       empathy-theme-manager.h                 \
        empathy-avatar-image.h                  \
-       empathy-contact-list-view.h             \
-       empathy-ui-utils.h                      \
        empathy-cell-renderer-activatable.h     \
-       empathy-contact-widget.h                \
-       empathy-profile-chooser.h               \
        empathy-cell-renderer-expander.h        \
+       empathy-cell-renderer-text.h            \
+       empathy-chat.h                          \
+       empathy-chat-text-view.h                \
+       empathy-chat-view.h                     \
+       empathy-conf.h                          \
+       empathy-contact-dialogs.h               \
+       empathy-contact-list-store.h            \
+       empathy-contact-list-view.h             \
+       empathy-contact-menu.h                  \
+       empathy-contact-selector.h              \
+       empathy-contact-widget.h                \
        empathy-geometry.h                      \
+       empathy-audio-sink.h                    \
+       empathy-audio-src.h                     \
+       empathy-video-src.h                     \
+       empathy-video-widget.h                  \
+       empathy-images.h                        \
+       empathy-irc-network-dialog.h            \
+       empathy-log-window.h                    \
+       empathy-new-message-dialog.h            \
+       empathy-presence-chooser.h              \
+       empathy-profile-chooser.h               \
        empathy-smiley-manager.h                \
-       empathy-cell-renderer-text.h            \
        empathy-spell.h                         \
-       empathy-contact-menu.h                  \
+       empathy-theme-boxes.h                   \
+       empathy-theme-irc.h                     \
+       empathy-theme-manager.h                 \
+       empathy-ui-utils.h                      \
  > ../python/pyempathygtk/pyempathygtk.defs
 
 # Keep original version
@@ -79,6 +91,12 @@ cp pyempathygtk/pyempathygtk.defs /tmp
 patch -p0 < pyempathy.patch
 patch -p0 < pyempathygtk.patch
 
+# Fix define of interfaces, they are not objects
+sed -e 's/define-object \(ChatView$\)/define-interface \1/' \
+    -i pyempathygtk/pyempathygtk.defs
+sed -e 's/define-object \(ContactList$\)/define-interface \1/' \
+    -i pyempathy/pyempathy.defs
+
 # Make modification then run that:
 #diff -up /tmp/pyempathy.defs pyempathy/pyempathy.defs > pyempathy.patch
 #diff -up /tmp/pyempathygtk.defs pyempathygtk/pyempathygtk.defs > pyempathygtk.patch