src/Builder4/GtkView.bjs
authorAlan Knowles <alan@roojs.com>
Tue, 19 May 2015 07:00:13 +0000 (15:00 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 19 May 2015 07:00:13 +0000 (15:00 +0800)
src/Builder4/GtkView.vala

src/Builder4/GtkView.bjs
src/Builder4/GtkView.vala

index 6ffbc52..abfa3a3 100644 (file)
          "gboolean show_line_marks" : true,
          "id" : "sourceview",
          "* init" : "{\n    this.curfname = \"\";\n       var description =   Pango.FontDescription.from_string(\"monospace\");\n    description.set_size(8000);\n    this.el.override_font(description);\n\n    var attrs = new Gtk.SourceMarkAttributes();\n    var  pink = new Gdk.RGBA();\n    pink.parse ( \"pink\");\n    attrs.set_background ( pink);\n    attrs.set_icon_name ( \"process-stop\");    \n    attrs.query_tooltip_text.connect(( mark) => {\n        //print(\"tooltip query? %s\\n\", mark.name);\n        return mark.name;\n    });\n    \n    this.el.set_mark_attributes (\"error\", attrs, 1);\n    \n    this.main_window.windowstate.left_tree.node_selected.connect((sel) => {\n\tthis.nodeSelected(sel);\n    });\n    \n}\n ",
+         "| void nodeSelected" : "() {\n\n}\n",
          "* pack" : "add",
          "xtype" : "SourceView",
          "$ xns" : "Gtk",
          "gboolean show_line_numbers" : true,
-         "| return_type XXXX" : "() {\n\n}\n",
          "string curfname" : "",
          "gboolean editable" : false
         }
index 2870b80..7a78689 100644 (file)
@@ -358,7 +358,7 @@ public class Xcls_GtkView : Object
         }
 
         // user defined functions
-        public return_type XXXX () {
+        public void nodeSelected () {
         
         }
     }