Builder3/Main.js
authorAlan Knowles <alan@akbkhome.com>
Mon, 2 Jul 2012 13:39:03 +0000 (21:39 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 2 Jul 2012 13:39:03 +0000 (21:39 +0800)
Builder3/Main.js

index c68eeb4..b87327a 100644 (file)
@@ -1,5 +1,23 @@
+Gtk = imports.gi.Gtk;
+Gdk = imports.gi.Gdk;
+
 Window = imports.Builder3.Window.Window;
+
+
+atoms = {
+               "STRING" : Gdk.atom_intern("STRING")
+       };
+targetList = new Gtk.TargetList();
+targetList.add(  atoms["STRING"], 0, 0);
+
+
+
+Gtk.rc_parse_string(
+            "style \"gtkcombobox-style\" {\n" + 
+            "    GtkComboBox::appears-as-list = 1\n" +
+            "}\n"+
+            "class \"GtkComboBox\" style \"gtkcombobox-style\"\n");
+
 
 Window.el.show_all();
  
\ No newline at end of file