MonoDevelop——GTK Designer 只显示一个空白方块?
我在让 GTK 设计器与 MonoDevelop 一起使用时遇到问题。我在 Arch Linux 上尝试了 2.4,它出现了这个问题。然后我在 OpenBSD 上尝试了 2.2,它给出了完全相同的问题。两台机器都是64位的。
我没有一个窗口来拖动东西,而是有一个空白方块:
alt text http: //img96.imageshack.us/img96/4766/monodevelop.png
我见过的教程 看起来与此类似:
(来源:monodevelop.com)
那么什么给出了呢?对于我的空白方块,我无法将任何东西拖到上面,甚至不能拖拽 VBox 或其他容器。它不会对任何东西做出反应。
我是否缺少某种 GTK# 配置或者什么?我发现我尝试过的两个操作系统的软件包都不太可能被破坏。另外,我为此附加了(巨额)赏金,因为这对我来说是一个相当大的问题。
Mono 启动时的控制台输出,包括我尝试将元素拖到灰色框上 在这里
更新
好的,我终于距离解开这个谜团更近了一步。我通常使用 Fluxbox 作为窗口管理器。好吧,我尝试使用 KDE 和 Gnome-Session,它们都会使 MonoDevelop 正常工作(尽管仍然缺少窗口边框,但您至少可以将组件拖到上面)。现在我的问题是是什么让 Fluxbox 不起作用?
I am having problems getting the GTK designer to work with MonoDevelop. I tried 2.4 on Arch Linux and it gave this problem. Then I tried 2.2 on OpenBSD and it gives the exact same problem. Both machines are 64bit.
Instead of having a window to drag things on I just have a blank square:
alt text http://img96.imageshack.us/img96/4766/monodevelop.png
The tutorials I've seen look similar to this though:
(source: monodevelop.com)
So what gives? With my blank square I can't drag anything onto it, not a VBox or other container even. It will not react to anything.
Am I missing some sort of GTK# configuration or what? I find it highly improbable that both OSs' packages I tried are broken. Also, I've attached a (huge) bounty to this because this is a pretty big issue for me.
The console output from the starting of Mono and including me trying to drag an element onto the gray box is here
Update
Ok, so I've finally gotten a bit closer to solving the mystery. I use Fluxbox as my window manager usually. Well I tried using both KDE and Gnome-Session and both of them cause MonoDevelop to work properly(though still missing the window border, you could at least drag components onto it). Now my question is what makes Fluxbox not work for it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我在使用从 此处
输入 -a monodevelop 返回:
从终端运行 monodevelop 会给出以下 输出
1)
这可以通过在主目录中的 .bashrc 文件中添加环境变量来解决。
要查找您的系统上是否存在该库,请使用:
(来自此错误报告此库包含在Mozilla 的 XUL Runner 包,但在较新的版本中我不知道它是否仍然存在,我不得不使用 Slickedit 安装在 /opt/slickedit/bin/mozilla/)
2)
要解决此问题,请阅读 Inotify Watches Limit
3)
我使用 Monodevelop 2.4 得到了完全相同的错误,我认为这可能是由于 GTK# 安装损坏或 Monodevelop 中的错误造成的,
您的结果与我的相同,请参阅 此处。我建议从 Github 编译 MonoDevelop 和/或使用更新版本的 gtk-sharp/gdk -锐利
这部分
出现在 GTK 和 GDK 崩溃中,
如果这不能解决问题,请提交 错误报告是下一个选项。虽然这有点奇怪,因为几周前我设法使用 Kubuntu 10.04 LTS 64 位完成了相同的教程。
I have the same problem in openSUSE 11.3 x64 KDE using Mono JIT compiler version 2.6.7 (tarball Wed Jul 14 18:00:23 UTC 2010) downloaded from here
type -a monodevelop returns:
Running monodevelop from terminal gives the following output
1)
This can be solved by adding an environment variable in your .bashrc file from your home directory.
To find if that library exists on your systems use:
(from this bug report this library is contain in the Mozilla's XUL Runner package, but in newer versions I don't know if it's still there, I had to use libgtkembedmoz.so provided by Slickedit which was installed in /opt/slickedit/bin/mozilla/)
2)
To resolve this problem read Inotify Watches Limit
3)
I get the exact same error using Monodevelop 2.4, and I think this could be either from a broken GTK# installation or from a bug in Monodevelop,
Your result is the same as mine, see here. I suggest compiling MonoDevelop from Github and/or using a newer version of gtk-sharp/gdk-sharp
This part
appears in GTK and GDK crashes,
If this does not resolve the problem submitting a bug report is the next option. Although this is somehow strange, since I managed to complete the same tutorial using Kubuntu 10.04 LTS 64 bit a few weeks ago.
呃,那是设计师。如果工具箱未显示,请转到“视图”->“板”->“工具箱”将其打开。
请注意,在这个 Gtk 中,您不能只将按钮或文本框放在设计表面上。您必须先放置一个容器控件,然后才能在容器内放置按钮等。
Uh, that is the designer. If the toolbox didn't show up, go to View->Pads->Toolbox to bring it up.
Note that this Gtk, you can't just drop a button or textbox on the design surface. You have to drop a container control first, and then can place buttons and such inside the container.
将全局gtk主题设置为默认
检查所有绑定依赖
尝试从控制台启动monodevelop并在pastebin上发布输出
set global gtk theme to default
check all bindings depends
try start monodevelop from console and post output on pastebin
“现在我的问题是,是什么让 Fluxbox 不适合它?”记住 GTK 保护是为 GNOME 项目制作的,所有库都是为了在该桌面上工作而设计的。所以需要查看所有依赖项才能运行它
"Now my question is what makes Fluxbox not work for it? " remember the GTK protect was made for GNOME project, all the libraries are made to work on that Desktop. so need to see all the dependencies to run it property