Send commitlog mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.openmoko.org/mailman/listinfo/commitlog
or, via email, send a message with subject or body 'help' to
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of commitlog digest..."
Today's Topics:

   1. r3761 -
      trunk/src/target/OM-2007.2/applications/openmoko-terminal2/src
      ([EMAIL PROTECTED])
   2. r3762 -
      trunk/src/target/OM-2007.2/applications/openmoko-terminal2/src
      ([EMAIL PROTECTED])
   3. r3763 -
      trunk/src/target/OM-2007.2/applications/openmoko-terminal2/src
      ([EMAIL PROTECTED])
   4. r3764 -
      trunk/src/target/OM-2007.2/applications/openmoko-terminal2/src
      ([EMAIL PROTECTED])
   5. r3765 - in trunk/src/target/OM-2007.2/libraries/libmokoui2: .
      bindings bindings/vala ([EMAIL PROTECTED])
--- Begin Message ---
Author: mickey
Date: 2008-01-03 18:17:01 +0100 (Thu, 03 Jan 2008)
New Revision: 3761

Modified:
   
trunk/src/target/OM-2007.2/applications/openmoko-terminal2/src/mokoterminal.vala
Log:
openmoko-terminal2: set colors properly (found 'ref' keyword ;) and more compact


Modified: 
trunk/src/target/OM-2007.2/applications/openmoko-terminal2/src/mokoterminal.vala
===================================================================
--- 
trunk/src/target/OM-2007.2/applications/openmoko-terminal2/src/mokoterminal.vala
    2008-01-03 09:13:39 UTC (rev 3760)
+++ 
trunk/src/target/OM-2007.2/applications/openmoko-terminal2/src/mokoterminal.vala
    2008-01-03 17:17:01 UTC (rev 3761)
@@ -48,19 +48,20 @@
         _scrollbar = new VScrollbar( _terminal.adjustment );
         pack_start( _scrollbar, false, false, 0 );
 
-        Gdk.Color fore = new Gdk.Color() { pixel = 0, red = (ushort)0x0000, 
green = (ushort)0x0000, blue = (ushort)0x0000 };
-        Gdk.Color back = new Gdk.Color() { pixel = 0, red = (ushort)0xffff, 
green = (ushort)0xffff, blue = (ushort)0xffff };
-        Gdk.Color[] colors = new Gdk.Color[8];
-        colors[0] = new Gdk.Color() { pixel = 0, red = (ushort)0x0000, green = 
(ushort)0x0000, blue = (ushort)0x0000 };
-        colors[1] = new Gdk.Color() { pixel = 0, red = (ushort)0x8000, green = 
(ushort)0x0000, blue = (ushort)0x0000 };
-        colors[2] = new Gdk.Color() { pixel = 0, red = (ushort)0x0000, green = 
(ushort)0x8000, blue = (ushort)0x0000 };
-        colors[3] = new Gdk.Color() { pixel = 0, red = (ushort)0x8000, green = 
(ushort)0x8000, blue = (ushort)0x0000 };
-        colors[4] = new Gdk.Color() { pixel = 0, red = (ushort)0x0000, green = 
(ushort)0x0000, blue = (ushort)0x8000 };
-        colors[5] = new Gdk.Color() { pixel = 0, red = (ushort)0x8000, green = 
(ushort)0x0000, blue = (ushort)0x8000 };
-        colors[6] = new Gdk.Color() { pixel = 0, red = (ushort)0x0000, green = 
(ushort)0x8000, blue = (ushort)0x8000 };
-        colors[7] = new Gdk.Color() { pixel = 0, red = (ushort)0x8000, green = 
(ushort)0x8000, blue = (ushort)0x8000 };
+        var fore = new Gdk.Color() { pixel = 0, red = (ushort)0x0000, green = 
(ushort)0x0000, blue = (ushort)0x0000 };
+        var back = new Gdk.Color() { pixel = 0, red = (ushort)0xffff, green = 
(ushort)0xffff, blue = (ushort)0xffff };
+        var colors = new Gdk.Color[] {
+            new Gdk.Color() { pixel = 0, red = (ushort)0x0000, green = 
(ushort)0x0000, blue = (ushort)0x0000 },
+            new Gdk.Color() { pixel = 0, red = (ushort)0x8000, green = 
(ushort)0x0000, blue = (ushort)0x0000 },
+            new Gdk.Color() { pixel = 0, red = (ushort)0x0000, green = 
(ushort)0x8000, blue = (ushort)0x0000 },
+            new Gdk.Color() { pixel = 0, red = (ushort)0x8000, green = 
(ushort)0x8000, blue = (ushort)0x0000 },
+            new Gdk.Color() { pixel = 0, red = (ushort)0x0000, green = 
(ushort)0x0000, blue = (ushort)0x8000 },
+            new Gdk.Color() { pixel = 0, red = (ushort)0x8000, green = 
(ushort)0x0000, blue = (ushort)0x8000 },
+            new Gdk.Color() { pixel = 0, red = (ushort)0x0000, green = 
(ushort)0x8000, blue = (ushort)0x8000 },
+            new Gdk.Color() { pixel = 0, red = (ushort)0x8000, green = 
(ushort)0x8000, blue = (ushort)0x8000 }
+        };
 
-        //_terminal.set_colors( fore, back, colors[0], 8 );
+        _terminal.set_colors( ref fore, ref back, ref colors[0], 8 );
 
         update_font();
         _terminal.set_scrollback_lines( 1000 );




--- End Message ---
--- Begin Message ---
Author: mickey
Date: 2008-01-04 06:23:45 +0100 (Fri, 04 Jan 2008)
New Revision: 3762

Modified:
   
trunk/src/target/OM-2007.2/applications/openmoko-terminal2/src/mainwindow.vala
   
trunk/src/target/OM-2007.2/applications/openmoko-terminal2/src/mokoterminal.vala
Log:
openmoko-terminal2: add clipboard toolitem, limit maximum and minimum fontsize


Modified: 
trunk/src/target/OM-2007.2/applications/openmoko-terminal2/src/mainwindow.vala
===================================================================
--- 
trunk/src/target/OM-2007.2/applications/openmoko-terminal2/src/mainwindow.vala  
    2008-01-03 17:17:01 UTC (rev 3761)
+++ 
trunk/src/target/OM-2007.2/applications/openmoko-terminal2/src/mainwindow.vala  
    2008-01-04 05:23:45 UTC (rev 3762)
@@ -23,18 +23,17 @@
 using GLib;
 using Gtk;
 
-// how to define a const here?
-
 public class OpenMokoTerminal2.MainWindow : Window
 {
-    private VBox _vbox;
-    private Toolbar _toolbar;
-    private Notebook _notebook;
+    private VBox vbox;
+    private Toolbar toolbar;
+    private Notebook notebook;
 
-    private ToolButton _btn_new;
-    private ToolButton _btn_delete;
-    private ToolButton _btn_zoom_in;
-    private ToolButton _btn_zoom_out;
+    private ToolButton btn_new;
+    private ToolButton btn_delete;
+    private ToolButton btn_zoom_in;
+    private ToolButton btn_zoom_out;
+    private ToolButton btn_paste;
 
     public MainWindow()
     {
@@ -44,62 +43,80 @@
     construct
     {
         destroy += Gtk.main_quit;
-        _vbox = new Gtk.VBox( false, 0 );
-        add( _vbox );
+        vbox = new Gtk.VBox( false, 0 );
+        add( vbox );
         setup_toolbar();
         setup_notebook();
         update_toolbar();
+        idle_add( on_idle, this );
     }
 
     public void setup_toolbar()
     {
-        _toolbar = new Gtk.Toolbar();
-        _vbox.add( _toolbar );
+        toolbar = new Gtk.Toolbar();
+        vbox.add( toolbar );
 
-        _btn_new = new Gtk.ToolButton.from_stock( STOCK_NEW );
-        _btn_new.clicked += on_new_clicked;
-        _toolbar.insert( _btn_new, 0 );
+        btn_new = new Gtk.ToolButton.from_stock( STOCK_NEW );
+        btn_new.clicked += on_new_clicked;
+        toolbar.insert( btn_new, 0 );
 
-        _btn_delete = new Gtk.ToolButton.from_stock( STOCK_DELETE );
-        _btn_delete.clicked += on_delete_clicked;
-        _toolbar.insert( _btn_delete, 1 );
+        btn_delete = new Gtk.ToolButton.from_stock( STOCK_DELETE );
+        btn_delete.clicked += on_delete_clicked;
+        toolbar.insert( btn_delete, 1 );
 
-        _toolbar.insert( new Gtk.SeparatorToolItem(), 2 );
+        toolbar.insert( new Gtk.SeparatorToolItem(), 2 );
 
-        _btn_zoom_in = new Gtk.ToolButton.from_stock( STOCK_ZOOM_IN );
-        _btn_zoom_in.clicked += on_zoom_in_clicked;
-        _toolbar.insert( _btn_zoom_in, 3 );
+        btn_zoom_in = new Gtk.ToolButton.from_stock( STOCK_ZOOM_IN );
+        btn_zoom_in.clicked += on_zoom_in_clicked;
+        toolbar.insert( btn_zoom_in, 3 );
 
-        _btn_zoom_out = new Gtk.ToolButton.from_stock( STOCK_ZOOM_OUT );
-        _btn_zoom_out.clicked += on_zoom_out_clicked;
-        _toolbar.insert( _btn_zoom_out, 4 );
+        btn_zoom_out = new Gtk.ToolButton.from_stock( STOCK_ZOOM_OUT );
+        btn_zoom_out.clicked += on_zoom_out_clicked;
+        toolbar.insert( btn_zoom_out, 4 );
+
+        toolbar.insert( new Gtk.SeparatorToolItem(), 5 );
+
+        btn_paste = new Gtk.ToolButton.from_stock( STOCK_PASTE );
+        btn_paste.clicked += on_paste_clicked;
+        toolbar.insert( btn_paste, 6 );
     }
 
     public void setup_notebook()
     {
-        _notebook = new Gtk.Notebook();
-        _notebook.set_tab_pos( PositionType.BOTTOM );
-        _vbox.add( _notebook );
+        notebook = new Gtk.Notebook();
+        notebook.set_tab_pos( PositionType.BOTTOM );
+        vbox.add( notebook );
 
         var terminal = new OpenMokoTerminal2.MokoTerminal();
-        _notebook.append_page( terminal, Image.from_stock( STOCK_INDEX, 
IconSize.LARGE_TOOLBAR ) );
-        _notebook.child_set (terminal, "tab-expand", true, null );
+        notebook.append_page( terminal, Image.from_stock( STOCK_INDEX, 
IconSize.LARGE_TOOLBAR ) );
+        notebook.child_set (terminal, "tab-expand", true, null );
     }
 
+    private bool on_idle()
+    {
+        stdout.printf( "on_idle\n" );
+        notebook.switch_page += (o, page, num) => {
+            btn_delete.set_sensitive( notebook.get_n_pages() > 1 );
+            OpenMokoTerminal2.MokoTerminal terminal = notebook.get_nth_page( 
(int)num ); btn_zoom_in.set_sensitive( terminal.get_font_size() < 10 );
+            btn_zoom_out.set_sensitive( terminal.get_font_size() > 1 );
+        };
+        return false;
+    }
+
     private void on_new_clicked( Gtk.ToolButton b )
     {
         stdout.printf( "on_new_clicked\n" );
         var terminal = new OpenMokoTerminal2.MokoTerminal();
-        _notebook.append_page( terminal, Image.from_stock( STOCK_INDEX, 
IconSize.LARGE_TOOLBAR ) );
-        _notebook.child_set (terminal, "tab-expand", true, null );
-        _notebook.show_all();
+        notebook.append_page( terminal, Image.from_stock( STOCK_INDEX, 
IconSize.LARGE_TOOLBAR ) );
+        notebook.child_set (terminal, "tab-expand", true, null );
+        notebook.show_all();
         update_toolbar();
     }
 
     private void on_delete_clicked( Gtk.ToolButton b )
     {
         stdout.printf( "on_delete_clicked\n" );
-        var page = _notebook.get_nth_page( _notebook.get_current_page() );
+        var page = notebook.get_nth_page( notebook.get_current_page() );
         page.destroy();
         update_toolbar();
     }
@@ -107,20 +124,35 @@
     private void on_zoom_in_clicked( Gtk.ToolButton b )
     {
         stdout.printf( "on_zoom_in_clicked\n" );
-        OpenMokoTerminal2.MokoTerminal terminal = _notebook.get_nth_page( 
_notebook.get_current_page() );
+        OpenMokoTerminal2.MokoTerminal terminal = notebook.get_nth_page( 
notebook.get_current_page() );
         terminal.zoom_in();
+        update_toolbar();
     }
 
     private void on_zoom_out_clicked( Gtk.ToolButton b )
     {
         stdout.printf( "on_zoom_out_clicked\n" );
-        OpenMokoTerminal2.MokoTerminal terminal = _notebook.get_nth_page( 
_notebook.get_current_page() );
+        OpenMokoTerminal2.MokoTerminal terminal = notebook.get_nth_page( 
notebook.get_current_page() );
         terminal.zoom_out();
+        update_toolbar();
     }
 
+    private void on_paste_clicked( Gtk.ToolButton b )
+    {
+        stdout.printf( "on_paste_clicked\n" );
+        OpenMokoTerminal2.MokoTerminal terminal = notebook.get_nth_page( 
notebook.get_current_page() );
+        terminal.paste();
+        update_toolbar();
+    }
+
     public void update_toolbar()
     {
-        _btn_delete.set_sensitive( _notebook.get_n_pages() > 1 );
+        stdout.printf( "update_toolbar\n" );
+        btn_delete.set_sensitive( notebook.get_n_pages() > 1 );
+        OpenMokoTerminal2.MokoTerminal terminal = notebook.get_nth_page( 
notebook.get_current_page() );
+        stdout.printf( "current font size for terminal is %d\n", 
terminal.get_font_size() );
+        btn_zoom_in.set_sensitive( terminal.get_font_size() < 10 );
+        btn_zoom_out.set_sensitive( terminal.get_font_size() > 1 );
     }
 
     public void run()

Modified: 
trunk/src/target/OM-2007.2/applications/openmoko-terminal2/src/mokoterminal.vala
===================================================================
--- 
trunk/src/target/OM-2007.2/applications/openmoko-terminal2/src/mokoterminal.vala
    2008-01-03 17:17:01 UTC (rev 3761)
+++ 
trunk/src/target/OM-2007.2/applications/openmoko-terminal2/src/mokoterminal.vala
    2008-01-04 05:23:45 UTC (rev 3762)
@@ -27,27 +27,28 @@
 
 public class OpenMokoTerminal2.MokoTerminal : HBox
 {
-    private string _fontname;
-    private uint _fontsize;
-    private Scrollbar _scrollbar;
-    private Terminal _terminal;
+    private string fontname;
+    private uint fontsize;
+    private Scrollbar scrollbar;
+    private Terminal terminal;
 
     construct {
         stdout.printf( "moko-terminal constructed\n" );
 
         // may read from gconf at some point?
-        _fontname = "LiberationMono";
-        _fontsize = 5;
+        fontname = "LiberationMono";
+        fontsize = 5;
 
-        _terminal = new Vte.Terminal();
-        _terminal.child_exited += term => { stdout.printf( "unhandled eof\n" 
); };
-        _terminal.eof += term => { stdout.printf( "unhandled eof\n" ); };
-        _terminal.window_title_changed += term => { Gtk.Window toplevel = 
get_toplevel(); toplevel.set_title( term.window_title ); };
-        pack_start( _terminal, true, true, 0 );
+        terminal = new Vte.Terminal();
+        terminal.child_exited += term => { stdout.printf( "unhandled eof\n" ); 
};
+        terminal.eof += term => { stdout.printf( "unhandled eof\n" ); };
+        terminal.window_title_changed += term => { Gtk.Window toplevel = 
get_toplevel(); toplevel.set_title( term.window_title ); };
+        pack_start( terminal, true, true, 0 );
 
-        _scrollbar = new VScrollbar( _terminal.adjustment );
-        pack_start( _scrollbar, false, false, 0 );
+        scrollbar = new VScrollbar( terminal.adjustment );
+        pack_start( scrollbar, false, false, 0 );
 
+        // yes, (ushort) is ugly. It's a vala bug and will go away soon 
         var fore = new Gdk.Color() { pixel = 0, red = (ushort)0x0000, green = 
(ushort)0x0000, blue = (ushort)0x0000 };
         var back = new Gdk.Color() { pixel = 0, red = (ushort)0xffff, green = 
(ushort)0xffff, blue = (ushort)0xffff };
         var colors = new Gdk.Color[] {
@@ -61,32 +62,42 @@
             new Gdk.Color() { pixel = 0, red = (ushort)0x8000, green = 
(ushort)0x8000, blue = (ushort)0x8000 }
         };
 
-        _terminal.set_colors( ref fore, ref back, ref colors[0], 8 );
+        terminal.set_colors( ref fore, ref back, ref colors[0], 8 );
 
         update_font();
-        _terminal.set_scrollback_lines( 1000 );
-        _terminal.set_mouse_autohide( true );
-        _terminal.set_cursor_blinks( true );
-        _terminal.set_backspace_binding( TerminalEraseBinding.ASCII_DELETE);
-        _terminal.fork_command( null, null, null, Environment.get_variable( 
"HOME" ), true, true, true );
+        terminal.set_scrollback_lines( 1000 );
+        terminal.set_mouse_autohide( true );
+        terminal.set_cursor_blinks( true );
+        terminal.set_backspace_binding( TerminalEraseBinding.ASCII_DELETE);
+        terminal.fork_command( null, null, null, Environment.get_variable( 
"HOME" ), true, true, true );
     }
 
+    public uint get_font_size()
+    {
+        return fontsize;
+    }
+
     public void update_font()
     {
-        string font = "%s %d".printf( _fontname, _fontsize );
-        _terminal.set_font_from_string_full( font, 
TerminalAntiAlias.FORCE_ENABLE );
+        string font = "%s %d".printf( fontname, fontsize );
+        terminal.set_font_from_string_full( font, 
TerminalAntiAlias.FORCE_ENABLE );
     }
 
     public void zoom_in()
     {
-        ++_fontsize;
+        ++fontsize;
         update_font();
     }
 
     public void zoom_out()
     {
-        --_fontsize;
+        --fontsize;
         update_font();
     }
+
+    public void paste()
+    {
+        terminal.paste_primary();
+    }
 }
 




--- End Message ---
--- Begin Message ---
Author: mickey
Date: 2008-01-04 06:52:21 +0100 (Fri, 04 Jan 2008)
New Revision: 3763

Modified:
   
trunk/src/target/OM-2007.2/applications/openmoko-terminal2/src/mainwindow.vala
Log:
openmoko-terminal2: listen for gdk events (prepare to check for fullscreen mode)


Modified: 
trunk/src/target/OM-2007.2/applications/openmoko-terminal2/src/mainwindow.vala
===================================================================
--- 
trunk/src/target/OM-2007.2/applications/openmoko-terminal2/src/mainwindow.vala  
    2008-01-04 05:23:45 UTC (rev 3762)
+++ 
trunk/src/target/OM-2007.2/applications/openmoko-terminal2/src/mainwindow.vala  
    2008-01-04 05:52:21 UTC (rev 3763)
@@ -21,6 +21,7 @@
  */
 
 using GLib;
+//using Gdk;
 using Gtk;
 
 public class OpenMokoTerminal2.MainWindow : Window
@@ -49,6 +50,7 @@
         setup_notebook();
         update_toolbar();
         idle_add( on_idle, this );
+        window.add_filter( on_gdk_filter, this );
     }
 
     public void setup_toolbar()
@@ -92,6 +94,17 @@
         notebook.child_set (terminal, "tab-expand", true, null );
     }
 
+    [InstanceLast()]
+    private Gdk.FilterReturn on_gdk_filter( Gdk.Event e, pointer xevent )
+    {
+        //stdout.printf( "gdk filter, event %d\n", e.type );
+        if ( e.type == Gdk.EventType.PROPERTY_NOTIFY )
+        {
+            stdout.printf( "gdk filter, property notify event for atom %d, 
state %d\n", ((Gdk.EventProperty)e).atom, ((Gdk.EventProperty)e).state );
+        }
+        return Gdk.FilterReturn.CONTINUE;
+    }
+
     private bool on_idle()
     {
         stdout.printf( "on_idle\n" );




--- End Message ---
--- Begin Message ---
Author: mickey
Date: 2008-01-04 07:09:22 +0100 (Fri, 04 Jan 2008)
New Revision: 3764

Modified:
   
trunk/src/target/OM-2007.2/applications/openmoko-terminal2/src/mainwindow.vala
Log:
openmoko-terminal2: fix packing bug


Modified: 
trunk/src/target/OM-2007.2/applications/openmoko-terminal2/src/mainwindow.vala
===================================================================
--- 
trunk/src/target/OM-2007.2/applications/openmoko-terminal2/src/mainwindow.vala  
    2008-01-04 05:52:21 UTC (rev 3763)
+++ 
trunk/src/target/OM-2007.2/applications/openmoko-terminal2/src/mainwindow.vala  
    2008-01-04 06:09:22 UTC (rev 3764)
@@ -50,13 +50,13 @@
         setup_notebook();
         update_toolbar();
         idle_add( on_idle, this );
-        window.add_filter( on_gdk_filter, this );
+        //window.add_filter( on_gdk_filter, this );
     }
 
     public void setup_toolbar()
     {
         toolbar = new Gtk.Toolbar();
-        vbox.add( toolbar );
+        vbox.pack_start( toolbar, false, false, 0 );
 
         btn_new = new Gtk.ToolButton.from_stock( STOCK_NEW );
         btn_new.clicked += on_new_clicked;
@@ -87,13 +87,14 @@
     {
         notebook = new Gtk.Notebook();
         notebook.set_tab_pos( PositionType.BOTTOM );
-        vbox.add( notebook );
+        vbox.pack_start( notebook, true, true, 0 );
 
         var terminal = new OpenMokoTerminal2.MokoTerminal();
         notebook.append_page( terminal, Image.from_stock( STOCK_INDEX, 
IconSize.LARGE_TOOLBAR ) );
         notebook.child_set (terminal, "tab-expand", true, null );
     }
 
+    /*
     [InstanceLast()]
     private Gdk.FilterReturn on_gdk_filter( Gdk.Event e, pointer xevent )
     {
@@ -104,6 +105,7 @@
         }
         return Gdk.FilterReturn.CONTINUE;
     }
+    */
 
     private bool on_idle()
     {




--- End Message ---
--- Begin Message ---
Author: mickey
Date: 2008-01-04 08:25:04 +0100 (Fri, 04 Jan 2008)
New Revision: 3765

Added:
   trunk/src/target/OM-2007.2/libraries/libmokoui2/bindings/
   trunk/src/target/OM-2007.2/libraries/libmokoui2/bindings/vala/
   trunk/src/target/OM-2007.2/libraries/libmokoui2/bindings/vala/Makefile.am
   trunk/src/target/OM-2007.2/libraries/libmokoui2/bindings/vala/libmokoui2.deps
   trunk/src/target/OM-2007.2/libraries/libmokoui2/bindings/vala/libmokoui2.vapi
Modified:
   trunk/src/target/OM-2007.2/libraries/libmokoui2/ChangeLog
   trunk/src/target/OM-2007.2/libraries/libmokoui2/Makefile.am
   trunk/src/target/OM-2007.2/libraries/libmokoui2/configure.ac
Log:
libmokoui2: add Vala bindings


Modified: trunk/src/target/OM-2007.2/libraries/libmokoui2/ChangeLog
===================================================================
--- trunk/src/target/OM-2007.2/libraries/libmokoui2/ChangeLog   2008-01-04 
06:09:22 UTC (rev 3764)
+++ trunk/src/target/OM-2007.2/libraries/libmokoui2/ChangeLog   2008-01-04 
07:25:04 UTC (rev 3765)
@@ -1,3 +1,12 @@
+2008-01-04     Michael Lauer  <[EMAIL PROTECTED]>
+
+       * bindings/vala/libmokoui2.vapi
+       * bindings/vala/libmokoui2.deps
+       * bindings/vala/Makefile.am
+       * configure.ac
+       * Makefile.am
+       Add Vala Bindings
+
 2007-12-19  Chris Lord  <[EMAIL PROTECTED]>
 
        * libmokoui/moko-finger-scroll.c: (moko_finger_scroll_refresh),

Modified: trunk/src/target/OM-2007.2/libraries/libmokoui2/Makefile.am
===================================================================
--- trunk/src/target/OM-2007.2/libraries/libmokoui2/Makefile.am 2008-01-04 
06:09:22 UTC (rev 3764)
+++ trunk/src/target/OM-2007.2/libraries/libmokoui2/Makefile.am 2008-01-04 
07:25:04 UTC (rev 3765)
@@ -1,4 +1,4 @@
-SUBDIRS = libmokoui doc
+SUBDIRS = libmokoui bindings/vala doc
 
 pcdata_DATA= libmokoui2.pc
 pcdatadir= $(libdir)/pkgconfig

Added: trunk/src/target/OM-2007.2/libraries/libmokoui2/bindings/vala/Makefile.am
===================================================================
--- trunk/src/target/OM-2007.2/libraries/libmokoui2/bindings/vala/Makefile.am   
2008-01-04 06:09:22 UTC (rev 3764)
+++ trunk/src/target/OM-2007.2/libraries/libmokoui2/bindings/vala/Makefile.am   
2008-01-04 07:25:04 UTC (rev 3765)
@@ -0,0 +1,11 @@
+NULL =
+
+vapidir = $(datadir)/vala/vapi
+
+dist_vapi_DATA = \
+       libmokoui2.vapi \
+       libmokoui2.deps \
+       $(NULL)
+
+MAINTAINERCLEANFILES = Makefile.in
+

Added: 
trunk/src/target/OM-2007.2/libraries/libmokoui2/bindings/vala/libmokoui2.deps
===================================================================
--- 
trunk/src/target/OM-2007.2/libraries/libmokoui2/bindings/vala/libmokoui2.deps   
    2008-01-04 06:09:22 UTC (rev 3764)
+++ 
trunk/src/target/OM-2007.2/libraries/libmokoui2/bindings/vala/libmokoui2.deps   
    2008-01-04 07:25:04 UTC (rev 3765)
@@ -0,0 +1,5 @@
+gdk-2.0
+gtk+-2.0
+atk
+pango
+cairo

Added: 
trunk/src/target/OM-2007.2/libraries/libmokoui2/bindings/vala/libmokoui2.vapi
===================================================================
--- 
trunk/src/target/OM-2007.2/libraries/libmokoui2/bindings/vala/libmokoui2.vapi   
    2008-01-04 06:09:22 UTC (rev 3764)
+++ 
trunk/src/target/OM-2007.2/libraries/libmokoui2/bindings/vala/libmokoui2.vapi   
    2008-01-04 07:25:04 UTC (rev 3765)
@@ -0,0 +1,84 @@
+[CCode (cprefix = "Moko", lower_case_cprefix = "moko_")]
+namespace Moko {
+       [CCode (cprefix = "MOKO_FINGER_SCROLL_MODE_", cheader_filename = 
"libmokoui2.h")]
+       public enum FingerScrollMode {
+               PUSH,
+               ACCEL,
+       }
+       [CCode (cheader_filename = "moko-finger-scroll.h")]
+       public class FingerScroll : Gtk.EventBox {
+               public weak Gtk.EventBox parent;
+               public void add_with_viewport (Gtk.Widget child);
+               public FingerScroll ();
+               public FingerScroll.full (int mode, bool enabled, double 
vel_min, double vel_max, double decel, uint sps);
+       }
+       [CCode (cheader_filename = "moko-finger-scroll.h")]
+       public class FingerScrollClass {
+               public pointer parent_class;
+       }
+       [CCode (cheader_filename = "moko-hint-entry.h")]
+       public class HintEntry : Gtk.Entry {
+               public weak Gtk.Entry parent;
+               public bool is_empty ();
+               public HintEntry (string hint);
+               public void set_text (string text);
+       }
+       [CCode (cheader_filename = "moko-hint-entry.h")]
+       public class HintEntryClass {
+               public pointer parent_class;
+       }
+       [CCode (cheader_filename = "moko-search-bar.h")]
+       public class SearchBar : Gtk.HBox {
+               public weak Gtk.HBox parent;
+               public weak Gtk.ComboBox get_combo_box ();
+               public weak Gtk.Entry get_entry ();
+               public SearchBar ();
+               public SearchBar.with_combo (Gtk.ComboBox combo);
+               public bool search_visible ();
+               public void toggle ();
+       }
+       [CCode (cheader_filename = "moko-search-bar.h")]
+       public class SearchBarClass {
+               public pointer parent_class;
+               public GLib.Callback toggled;
+               public GLib.Callback text_changed;
+               public GLib.Callback combo_changed;
+       }
+       public const string STOCK_CALL_ANSWER;
+       public const string STOCK_CALL_DIAL;
+       public const string STOCK_CALL_DIALED;
+       public const string STOCK_CALL_HANGUP;
+       public const string STOCK_CALL_HISTORY;
+       public const string STOCK_CALL_HOLD;
+       public const string STOCK_CALL_IGNORE;
+       public const string STOCK_CALL_IN;
+       public const string STOCK_CALL_MISSED;
+       public const string STOCK_CALL_REDIAL;
+       public const string STOCK_CALL_REJECT;
+       public const string STOCK_CONTACT_ADDRESS;
+       public const string STOCK_CONTACT_DELETE;
+       public const string STOCK_CONTACT_EMAIL;
+       public const string STOCK_CONTACT_GROUPS;
+       public const string STOCK_CONTACT_MODE;
+       public const string STOCK_CONTACT_NEW;
+       public const string STOCK_CONTACT_PHONE;
+       public const string STOCK_FOLDER_DELETE;
+       public const string STOCK_FOLDER_NEW;
+       public const string STOCK_HANDSET;
+       public const string STOCK_HISTORY;
+       public const string STOCK_MAIL_DELETE;
+       public const string STOCK_MAIL_FORWARD;
+       public const string STOCK_MAIL_MARK_READ;
+       public const string STOCK_MAIL_NEW;
+       public const string STOCK_MAIL_READ;
+       public const string STOCK_MAIL_REPLY_ALL;
+       public const string STOCK_MAIL_REPLY_SENDER;
+       public const string STOCK_MAIL_SEND;
+       public const string STOCK_MAIL_SEND_RECEIVE;
+       public const string STOCK_PHONE_BOOK;
+       public const string STOCK_SEARCH;
+       public const string STOCK_SMS_NEW;
+       public const string STOCK_SPEAKER;
+       public const string STOCK_VIEW;
+       public static void stock_register ();
+}

Modified: trunk/src/target/OM-2007.2/libraries/libmokoui2/configure.ac
===================================================================
--- trunk/src/target/OM-2007.2/libraries/libmokoui2/configure.ac        
2008-01-04 06:09:22 UTC (rev 3764)
+++ trunk/src/target/OM-2007.2/libraries/libmokoui2/configure.ac        
2008-01-04 07:25:04 UTC (rev 3765)
@@ -38,6 +38,7 @@
 Makefile
 libmokoui2.pc
 libmokoui/Makefile
+bindings/vala/Makefile
 doc/Makefile
 doc/reference/Makefile
 doc/reference/version.xml




--- End Message ---
_______________________________________________
commitlog mailing list
[email protected]
http://lists.openmoko.org/mailman/listinfo/commitlog

Reply via email to