2014-06-06 4 views
0

J'ai travaillé avec le paquet Gtk chez Julia. Hier tout allait bien. Aujourd'hui, les fenêtres Gtk n'apparaissent pas sur mon écran.Julia: Les fenêtres Gtk ne s'affichent pas

Dans le REPL:

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

Les lignes sont exécutées très bien, mais rien ne montre. Appeler "showall (win)" ne fait rien. Voici l'impression:

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

J'ai remarqué ce problème ce matin. La seule mise à jour qui pourrait avoir quelque chose à voir avec ça est julia (0.3.0-1079 ~ ubuntu12.04.1, 0.3.0-1088 ~ ubuntu12.04.1).

Merci

+0

Essayez de mettre à jour Gtk.jl ('Pkg.update()'). Cela peut être dû à https://github.com/JuliaLang/Gtk.jl/issues/81 –

+0

Bon point. Ça a marché! Je remarque aussi qu'il faut maintenant utiliser win = @GtkWindow() – Mageek

Répondre

0

Le problème a été résolu par:

  1. mise à jour du paquet avec Pkg.update()
  2. importation Gadfly cause aux côtés du Caire la fonction de tirage au sort pour obtenir foiré. N'importent tout simplement pas Gadfly
Questions connexes