草庐IT

GtkSourceView

全部标签

c++ - 为了使用 Glib::wrap,必须 Glib::init()'ed 什么?

所以我正在尝试使用GtkSourceViewmm在C++中使用GtkSourceView,其文档和支持水平给我的印象是很长一段时间没有仔细研究它。但我始终是一个乐观主义者:)我正在尝试添加SourceView使用一些类似于以下的代码:Glib::RefPtrsource_language_manager=gtksourceview::SourceLanguageManager::create();Glib::RefPtrsource_language=Glib::wrap(gtk_source_language_manager_guess_language(source_languag

python - 我必须安装什么来解决 Could not find any typelib for GtkSource, Cannot import : GtkSourceView, cannot import name GtkSource

我正在尝试为来自https://bugzilla.gnome.org/show_bug.cgi?id=680569的meld应用补丁我自己,我遇到了这个问题:$gitclonegit://git.gnome.org/meld$cdmeld$pythonsetup.pybuild$bin/meld2014-01-1116:30:44,736ERRORroot:CouldnotfindanytypelibforGtkSourceCannotimport:GtkSourceViewcannotimportnameGtkSource我对Python知之甚少,例如不知道(还)什么是Python的

python - 在 PyGObject 中使用 GtkSourceView 从 Glade 加载 GUI

我正在尝试在PyGObject中使用具有GtkSourceView小部件的Glade文件。我写了一篇关于如何在Glade中开始使用新的GtkSourceView3.0的小指南:http://cjenkins.wordpress.com/2012/05/08/use-gtksourceview-widget-in-glade/问题是当我想从PyGObject加载Glade时:fromgi.repositoryimportGtk,GtkSourcefromos.pathimportabspath,dirname,joinWHERE_AM_I=abspath(dirname(__file__