{"id":298,"date":"2011-12-19T18:20:42","date_gmt":"2011-12-19T10:20:42","guid":{"rendered":"https:\/\/www.deepin.org\/?p=298"},"modified":"2011-12-19T18:20:42","modified_gmt":"2011-12-19T10:20:42","slug":"gobject-inspection-method-share","status":"publish","type":"post","link":"https:\/\/www.deepin.org\/zh\/gobject-inspection-method-share\/","title":{"rendered":"GObject Inspection \u7f16\u7a0b\u7ecf\u9a8c\u5206\u4eab"},"content":{"rendered":"<p><strong>\u738b\u52c7<\/strong>\uff1a<a href=\"http:\/\/www.linuxdeepin.com\/forum\/21\/4122\" target=\"_blank\">Linux Deepin \u8bba\u575b<br \/> <\/a><br \/> \u7ed9\u5927\u5bb6\u4e00\u4e2a\u7f16\u7a0b\u7ecf\u9a8c\u54c8\uff0c \u5982\u679c Python \u6ca1\u6709\u7ed1\u5b9a\u67d0\u4e2a\u5e93\uff0c \u6bd4\u5982 soup\uff0c \u4e0d\u8981\u7528 ctypes \u7684\u65b9\u6cd5\uff0c ctypes \u7684\u65b9\u6cd5\u4f1a\u5f97\u5230\u65e0\u6cd5\u6355\u83b7\u7684\u5f02\u5e38\uff0c \u975e\u5e38\u5371\u9669\u3002<\/p>\n<p>\u6211\u5efa\u8bae\u7528 gobject inspection \u7684\u65b9\u6cd5\uff0c \u6bd4\u5982\u6211\u7528 emacs \u626b\u63cf gir1.2 \u5e93\u4f1a\u5f97\u5230\uff1a<\/p>\n<p><!--more--><\/p>\n<blockquote>\n<p>gir1.2-accountsservice-1.0<br \/> gir1.2-anjuta-3.0<br \/> gir1.2-appindicator-0.1<br \/> gir1.2-appindicator3-0.1<br \/> gir1.2-atk-1.0<br \/> gir1.2-atspi-2.0<br \/> gir1.2-caribou-1.0<br \/> gir1.2-champlain-0.10<br \/> gir1.2-champlain-0.8<br \/> gir1.2-cheese-3.0<br \/> gir1.2-clutter-1.0<br \/> gir1.2-clutter-gst-1.0<br \/> gir1.2-clutter-gtk-0.10<br \/> gir1.2-cogl-1.0<br \/> gir1.2-colord-1.0<br \/> gir1.2-couchdb-1.0<br \/> gir1.2-cryptui-0.0<br \/> gir1.2-dbusmenu-glib-0.4<br \/> gir1.2-dbusmenu-gtk-0.4<br \/> gir1.2-dbusmenu-gtk3-0.4<br \/> gir1.2-dee-0.5<br \/> gir1.2-desktopcouch-1.0<br \/> gir1.2-ebook-1.2<br \/> gir1.2-ecalendar-1.2<br \/> gir1.2-edataserver-1.2<br \/> gir1.2-emerillon-0.1<br \/> gir1.2-epiphany-2.31<br \/> gir1.2-evince-3.0<br \/> gir1.2-folks-0.6<br \/> gir1.2-freedesktop<br \/> gir1.2-gconf-2.0<br \/> gir1.2-gda-4.0<br \/> gir1.2-gdata-0.0<br \/> gir1.2-gdkpixbuf-2.0<br \/> gir1.2-gdl-3<br \/> gir1.2-gee-1.0<br \/> gir1.2-geocodeglib-1.0<br \/> gir1.2-ges-0.10<br \/> gir1.2-gkbd-3.0<br \/> gir1.2-gladeui-2.0<br \/> gir1.2-glib-2.0<br \/> gir1.2-gmenu-3.0<br \/> gir1.2-gnomebluetooth-1.0<br \/> gir1.2-gnomedesktop-3.0<br \/> gir1.2-gnomegamessupport-1.0<br \/> gir1.2-goa-1.0<br \/> gir1.2-grip<br \/> gir1.2-gssdp-1.0<br \/> gir1.2-gst-plugins-base-0.10<br \/> gir1.2-gst-rtsp-server-0.10<br \/> gir1.2-gstreamer-0.10<br \/> gir1.2-gtk-2.0<br \/> gir1.2-gtk-3.0<br \/> gir1.2-gtkchamplain-0.10<br \/> gir1.2-gtkchamplain-0.8<br \/> gir1.2-gtkclutter-1.0<br \/> gir1.2-gtksource-3.0<br \/> gir1.2-gtop-2.0<br \/> gir1.2-gucharmap-2.90<br \/> gir1.2-gudev-1.0<br \/> gir1.2-gupnp-1.0<br \/> gir1.2-gupnp-av-1.0<br \/> gir1.2-gupnpigd-1.0<br \/> gir1.2-gweather-3.0<br \/> gir1.2-gwibber-0.2<br \/> gir1.2-gwibber-gtk-0.2<br \/> gir1.2-indicate-0.6<br \/> gir1.2-json-1.0<br \/> gir1.2-launchpad-integration-3.0<br \/> gir1.2-lightdm-1<br \/> gir1.2-memphis-0.2<br \/> gir1.2-midgard2<br \/> gir1.2-mutter-3.0<br \/> gir1.2-mx-1.0<br \/> gir1.2-nautilus-3.0<br \/> gir1.2-networkmanager-1.0<br \/> gir1.2-notify-0.7<br \/> gir1.2-packagekitglib-1.0<br \/> gir1.2-panelapplet-4.0<br \/> gir1.2-pango-1.0<br \/> gir1.2-peas-1.0<br \/> gir1.2-polkit-1.0<br \/> gir1.2-rb-3.0<br \/> gir1.2-rest-0.7<br \/> gir1.2-rest-extras-0.7<br \/> gir1.2-socialweb-client<br \/> gir1.2-soup-2.4<br \/> gir1.2-sushi-1.0<br \/> gir1.2-syncdaemon-1.0<br \/> gir1.2-telepathyglib-0.12<br \/> gir1.2-telepathylogger-0.2<br \/> gir1.2-timezonemap-1.0<br \/> gir1.2-totem-1.0<br \/> gir1.2-totem-plparser-1.0<br \/> gir1.2-tracker-0.10<br \/> gir1.2-ubuntuone-1.0<br \/> gir1.2-unique-3.0<br \/> gir1.2-unity-4.0<br \/> gir1.2-upowerglib-1.0<br \/> gir1.2-urfkill-glib0<br \/> gir1.2-v-sim-1.0<br \/> gir1.2-vte-2.90<br \/> gir1.2-webkit-1.0<br \/> gir1.2-webkit-3.0<br \/> gir1.2-wnck-1.0<br \/> gir1.2-wnck-3.0<\/p>\n<\/blockquote>\n<p>\u6240\u4ee5\u8fd9\u4e9b\u5e93\u90fd\u662f\u53ef\u4ee5\u901a\u8fc7 python \u6765\u76f4\u63a5\u8c03\u7528\u7684\uff0c \u800c\u4e14\u975e\u5e38\u7684\u5b89\u5168\u3002<\/p>\n<p>\u6211\u8bb2\u4e00\u4e0b\u600e\u4e48\u4f7f\u7528 gi \u7684\u8bed\u6cd5\uff1a<\/p>\n<pre>&gt;&gt;&gt; import gi\n&gt;&gt;&gt; gi.require_version('WebKit', '3.0')\n&gt;&gt;&gt; from gi.repository import WebKit\n<\/pre>\n<p>\u8fd9\u6837\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<p>\u6240\u4ee5\u6211\u5efa\u8bae\u4ee5\u540e\u5927\u5bb6\u7528 python \u7f16\u7a0b\u7684\u65f6\u5019\u90fd\u7528 gi \u7684\u65b9\u6cd5\uff0c \u80fd\u8c03\u7528\u6700\u591a\u7684\u5e93\u3001 \u5b89\u5168\u3001\u800c\u4e14API\u7684\u66f4\u65b0\u4e0d\u7528\u4fee\u6539\u4ee3\u7801\u3002\u5982\u679c gi \u90fd\u6ca1\u6709\u7ed1\u5b9a\u7684\u5e93 \uff08\u4e00\u822c\u8fd9\u4e9b\u5e93\u90fd\u4e0d\u662f\u57fa\u4e8e gobject \u5b9e\u73b0\u7684\uff09 \u53ef\u4ee5\u7528 ctypes, \u4f46\u662f\u4e00\u5b9a\u8981\u7528\u591a\u8fdb\u7a0b\u7684\u65b9\u6848\u9694\u79bb ctypes \u7684\u4ee3\u7801\uff0c gtk \u91cc\u9762\u591a\u8fdb\u7a0b\u9694\u79bb\u7684\u65b9\u6cd5\u5c31\u662f GtkSocket\/GtkPlug\u3002<\/p>","protected":false},"excerpt":{"rendered":"<p>\u738b\u52c7\uff1aLinux Deepin \u8bba\u575b \u7ed9\u5927\u5bb6\u4e00\u4e2a\u7f16\u7a0b\u7ecf\u9a8c\u54c8\uff0c \u5982\u679c Python \u6ca1\u6709\u7ed1\u5b9a\u67d0\u4e2a\u5e93\uff0c \u6bd4\u5982 soup\uff0c \u4e0d\u8981\u7528 ctypes \u7684\u65b9\u6cd5\uff0c ctypes \u7684\u65b9\u6cd5\u4f1a\u5f97\u5230\u65e0\u6cd5\u6355\u83b7\u7684\u5f02\u5e38\uff0c \u975e\u5e38\u5371\u9669\u3002 \u6211\u5efa\u8bae\u7528 gobject inspection \u7684\u65b9\u6cd5\uff0c \u6bd4\u5982\u6211\u7528 emacs \u626b\u63cf gir1.2 \u5e93\u4f1a\u5f97\u5230\uff1a<\/p>\n","protected":false},"author":27,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[93],"tags":[],"_links":{"self":[{"href":"https:\/\/www.deepin.org\/zh\/wp-json\/wp\/v2\/posts\/298"}],"collection":[{"href":"https:\/\/www.deepin.org\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.deepin.org\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.deepin.org\/zh\/wp-json\/wp\/v2\/users\/27"}],"replies":[{"embeddable":true,"href":"https:\/\/www.deepin.org\/zh\/wp-json\/wp\/v2\/comments?post=298"}],"version-history":[{"count":0,"href":"https:\/\/www.deepin.org\/zh\/wp-json\/wp\/v2\/posts\/298\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.deepin.org\/zh\/wp-json\/wp\/v2\/media?parent=298"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.deepin.org\/zh\/wp-json\/wp\/v2\/categories?post=298"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.deepin.org\/zh\/wp-json\/wp\/v2\/tags?post=298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}