MonoDevelop——GTK Designer 只显示一个空白方块?

发布于 2024-09-08 20:48:29 字数 1226 浏览 2 评论 0原文

我在让 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:

alt text
(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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

那支青花 2024-09-15 20:48:29

我在使用从 此处

输入 -a monodevelop 返回:

monodevelop is /usr/bin/monodevelop 
monodevelop is /usr/bin/X11/monodevelop

从终端运行 monodevelop 会给出以下 输出

1)

警告:找不到 Mozilla 目录
包含 libgtkembedmoz.so。一些
插件可能无法运行。
请将 MOZILLA_FIVE_HOME 设置为您的
Mozilla 目录。

这可以通过在主目录中的 .bashrc 文件中添加环境变量来解决。

导出 MOZILLA_FIVE_HOME='/path/to/libgtkembedmoz.so/directory/'

要查找您的系统上是否存在该库,请使用:

sudo find / -name libgtkembedmoz.so
-打印

(来自错误报告此库包含在Mozilla 的 XUL Runner 包,但在较新的版本中我不知道它是否仍然存在,我不得不使用 Slickedit 安装在 /opt/slickedit/bin/mozilla/)

2)

警告 [2010-07-29 20:22:37Z]:Inotify 监视限制太低 (8192)。

要解决此问题,请阅读 Inotify Watches Limit

3)

警告 [2010-07-29 20:22:37Z]:以 SmallToolbar 大小创建组合图标 gtk-execute___asm0__debug-overlay-22.png__SmallToolbar 时出错。图标 __asm0__debug-overlay-22.png__SmallToolbar 为 22x22,预期为 16x16。

我使用 Monodevelop 2.4 得到了完全相同的错误,我认为这可能是由于 GTK# 安装损坏或 Monodevelop 中的错误造成的,

您的结果与我的相同,请参阅 此处。我建议从 Github 编译 MonoDevelop 和/或使用更新版本的 gtk-sharp/gdk -锐利

这部分

错误 [2010-07-29 20:22:37Z]:GdkPixbuf-严重:gdk_pixbuf_composite:断言 `dest_x >= 0 && dest_x + dest_width <= dest->width' 失败

出现在 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:

monodevelop is /usr/bin/monodevelop 
monodevelop is /usr/bin/X11/monodevelop

Running monodevelop from terminal gives the following output

1)

WARNING: Cannot find Mozilla directory
containing libgtkembedmoz.so. Some
Addins may not be able to function.
Please set MOZILLA_FIVE_HOME to your
Mozilla directory.

This can be solved by adding an environment variable in your .bashrc file from your home directory.

export MOZILLA_FIVE_HOME='/path/to/libgtkembedmoz.so/directory/'

To find if that library exists on your systems use:

sudo find / -name libgtkembedmoz.so
-print

(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)

WARNING [2010-07-29 20:22:37Z]: Inotify watch limit is too low (8192).

To resolve this problem read Inotify Watches Limit

3)

WARNING [2010-07-29 20:22:37Z]: Error creating composed icon gtk-execute___asm0__debug-overlay-22.png__SmallToolbar at size SmallToolbar. Icon __asm0__debug-overlay-22.png__SmallToolbar is 22x22, expected 16x16.

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

ERROR [2010-07-29 20:22:37Z]: GdkPixbuf-Critical: gdk_pixbuf_composite: assertion `dest_x >= 0 && dest_x + dest_width <= dest->width' failed

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.

2024-09-15 20:48:29

呃,那是设计师。如果工具箱未显示,请转到“视图”->“板”->“工具箱”将其打开。

请注意,在这个 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.

满栀 2024-09-15 20:48:29
  1. 将全局gtk主题设置为默认

  2. 检查所有绑定依赖

  3. 尝试从控制台启动monodevelop并在pastebin上发布输出

  1. set global gtk theme to default

  2. check all bindings depends

  3. try start monodevelop from console and post output on pastebin

盗心人 2024-09-15 20:48:29

“现在我的问题是,是什么让 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文