Guest User

Untitled

a guest
Jan 5th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Vala 1.81 KB | None | 0 0
  1. var pop = new Granite.Widgets.PopOver (null);
  2. pop.hbox.add(new HintedEntry("This is an HIntedEntry"));
  3. pop.hbox.add(new Gtk.Label("Another label"));
  4. add_button.clicked.connect( () => { pop.move_to(add_button); pop.show_all(); });
  5.  
  6.  
  7.            
  8.            
  9. /home/karlis/Projects/ergo/Ergo/Widgets/ErgoToolbar.vala:53.18-53.40: error: The name `PopOver' does not exist in the context of `Granite.Widgets'
  10.             var pop = new Granite.Widgets.PopOver (null);
  11.                           ^^^^^^^^^^^^^^^^^^^^^^^
  12. /home/karlis/Projects/ergo/Ergo/Widgets/ErgoToolbar.vala:53.8-53.47: error: var declaration not allowed with non-typed initializer
  13.             var pop = new Granite.Widgets.PopOver (null);
  14.                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  15. /home/karlis/Projects/ergo/Ergo/Widgets/ErgoToolbar.vala:54.13-54.15: error: The name `pop' does not exist in the context of `Ergo.Widgets.ErgoToolbar.new'
  16.             pop.hbox.add(new HintedEntry("This is an HIntedEntry"));
  17.             ^^^
  18. /home/karlis/Projects/ergo/Ergo/Widgets/ErgoToolbar.vala:55.13-55.15: error: The name `pop' does not exist in the context of `Ergo.Widgets.ErgoToolbar.new'
  19.             pop.hbox.add(new Gtk.Label("Another label"));
  20.             ^^^
  21. /home/karlis/Projects/ergo/Ergo/Widgets/ErgoToolbar.vala:56.49-56.51: error: The name `pop' does not exist in the context of `Ergo.Widgets.ErgoToolbar.new._lambda0_'
  22.             add_button.clicked.connect( () => { pop.move_to(add_button); pop.show_all(); });
  23.                                                 ^^^
  24. /home/karlis/Projects/ergo/Ergo/Widgets/ErgoToolbar.vala:56.74-56.76: error: The name `pop' does not exist in the context of `Ergo.Widgets.ErgoToolbar.new._lambda0_'
  25.             add_button.clicked.connect( () => { pop.move_to(add_button); pop.show_all(); });
  26.                                                                          ^^^
Add Comment
Please, Sign In to add comment