projects
/
app.Builder.js
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests/enum.vala
[app.Builder.js]
/
tests
/
menu.vala
diff --git
a/tests/menu.vala
b/tests/menu.vala
index
f10dafa
..
8423e05
100644
(file)
--- a/
tests/menu.vala
+++ b/
tests/menu.vala
@@
-39,10
+39,7
@@
public class Xcls_Window : Object {
if (ev.type != Gdk.EventType.BUTTON_PRESS || ev.button != 3) {
return false;
}
if (ev.type != Gdk.EventType.BUTTON_PRESS || ev.button != 3) {
return false;
}
-
-
- //leftmenu.el.set_screen(Gdk.Screen.get_default());
-
+
leftmenu.popup(null, null, null, ev.button, ev.time);
return true;
leftmenu.popup(null, null, null, ev.button, ev.time);
return true;
@@
-50,6
+47,7
@@
public class Xcls_Window : Object {
var child_0 = new Xcls_MenuItem7();
var child_0 = new Xcls_MenuItem7();
+ child_0.ref();
child_0.init(this);
leftmenu.append ( child_0.el );
leftmenu.show_all();
child_0.init(this);
leftmenu.append ( child_0.el );
leftmenu.show_all();
@@
-62,9
+60,9
@@
public class Xcls_Window : Object {
public Xcls_Window _this;
public void init(Xcls_Window _owner ) {
public Xcls_Window _this;
public void init(Xcls_Window _owner ) {
- _this = _owner;
-
var
el = new Gtk.MenuItem.with_label("Delete Element");
- this.el
= el
;
+
//
_this = _owner;
+
this.
el = new Gtk.MenuItem.with_label("Delete Element");
+ this.el
.ref()
;
print("add activate\n");
this.el.activate.connect( ( ) => {
print("add activate\n");
this.el.activate.connect( ( ) => {