2014-06-06 54 views
0

我一直在使用Julia的Gtk包。昨天一切都很好。今天,Gtk窗口不显示在我的屏幕上。Julia:Gtk窗口不显示

在REPL:

using Gtk 
win = Window("I am a window") 

该行执行得很好,但没有显示出来。调用“showall(win)”不会做任何事情。这里是打印输出:

GtkWindow(name="", parent, width-request=-1, height-request=-1, visible=TRUE, sensitive=TRUE, app-paintable=FALSE, can-focus=FALSE, has-focus=FALSE, is-focus=FALSE, can-default=FALSE, has-default=FALSE, receives-default=FALSE, composite-child=FALSE, style, events=0, no-show-all=FALSE, has-tooltip=FALSE, tooltip-markup=NULL, tooltip-text=NULL, window, double-buffered=TRUE, halign=GTK_ALIGN_FILL, valign=GTK_ALIGN_FILL, margin-left=0, margin-right=0, margin-top=0, margin-bottom=0, margin=0, hexpand=FALSE, vexpand=FALSE, hexpand-set=FALSE, vexpand-set=FALSE, expand=FALSE, border-width=0, resize-mode=GTK_RESIZE_QUEUE, child, type=GTK_WINDOW_TOPLEVEL, title="I am a window", role=NULL, resizable=TRUE, modal=FALSE, window-position=GTK_WIN_POS_NONE, default-width=-1, default-height=-1, destroy-with-parent=FALSE, hide-titlebar-when-maximized=FALSE, icon, icon-name=NULL, screen, type-hint=GDK_WINDOW_TYPE_HINT_NORMAL, skip-taskbar-hint=FALSE, skip-pager-hint=FALSE, urgency-hint=FALSE, accept-focus=TRUE, focus-on-map=TRUE, decorated=TRUE, deletable=TRUE, gravity=GDK_GRAVITY_NORTH_WEST, transient-for, attached-to, opacity=1.000000, has-resize-grip=TRUE, resize-grip-visible=TRUE, application, ubuntu-no-proxy=FALSE, is-active=FALSE, has-toplevel-focus=FALSE, startup-id, mnemonics-visible=FALSE, focus-visible=TRUE,) 

今天早上我注意到了这个问题。唯一可能与它有关的更新是julia(0.3.0-1079〜ubuntu12.04.1,0.3.0-1088〜ubuntu12.04.1)。

谢谢

+0

尝试更新Gtk.jl('Pkg.update()')。这可能是由于https://github.com/JuliaLang/Gtk.jl/issues/81 –

+0

好点。有效!我还注意到,现在必须使用win = @GtkWindow() – Mageek

回答

0

的问题要解决:

  1. 与Pkg​​.update更新包()
  2. 进口牛虻旁边开罗导致平局功能搞的一团糟。只是不要进口牛ly