Send commitlog mailing list submissions to
        commitlog@lists.openmoko.org

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. r4766 - developers/werner/wlan-perf ([EMAIL PROTECTED])
   2. Openmoko's OpenEmbedded repository. This is used to build the
      Openmoko distribution: Changes to 'org.openmoko.dev'
      ([EMAIL PROTECTED])
   3. Openmoko's OpenEmbedded repository. This is used to build the
      Openmoko distribution: Changes to 'org.openmoko.dev'
      ([EMAIL PROTECTED])
   4. Openmoko's OpenEmbedded repository. This is used to build the
      Openmoko distribution: Changes to 'org.openmoko.dev'
      ([EMAIL PROTECTED])
   5. r4767 - developers/werner/wlan-perf ([EMAIL PROTECTED])
   6. r4768 - in
      trunk/src/target/OM-2007.2/applications/openmoko-today2:  po src
      ([EMAIL PROTECTED])
   7. r4769 - in developers/charlie: . Tests Tests/Evas
      ([EMAIL PROTECTED])
--- Begin Message ---
Author: werner
Date: 2008-11-07 05:07:19 +0100 (Fri, 07 Nov 2008)
New Revision: 4766

Modified:
   developers/werner/wlan-perf/pingh
Log:
- for better readability, output filled areas, not just lines
- added option  -o file.png  to output the plot to a file



Modified: developers/werner/wlan-perf/pingh
===================================================================
--- developers/werner/wlan-perf/pingh   2008-11-07 03:50:29 UTC (rev 4765)
+++ developers/werner/wlan-perf/pingh   2008-11-07 04:07:19 UTC (rev 4766)
@@ -24,36 +24,61 @@
 }
 
 
-die "usage: $0 ping_file" unless defined $ARGV[0];
+$name = shift @ARGV;
 
[EMAIL PROTECTED] = &extract_ping($ARGV[0]);
+if ($name eq "-o") {
+    $out = shift @ARGV;
+    $name = shift @ARGV;
+}
 
+die "usage: $0 [-o out.png] ping_file" unless defined $name;
+
[EMAIL PROTECTED] = &extract_ping($name);
+$n = @t;
+
 $max = 0;
 for (@t) {
+    $min = $_ if $min > $_ || !defined $min;
     $max = $_ if $max < $_;
 }
+for ($low = 1; $low*10 <= $min; $low *= 10) {}
 
-$width = $ARGV[1];
+$width = $ARGV[0];
 if (defined $width) {
     for (@t) {
        $bin[int($_/$width)]++;
     }
 
+    print "0 0\n";
     for ($i = 0; $i != @bin; $i++) {
-       print $width*($i+0.5), " ", 0+$bin[$i], "\n";
+       print $width*($i+0.5), " ", $bin[$i]/$n*100, "\n";
     }
 }
 else {
     $mode = (stat(STDOUT))[2];
     if (!S_ISFIFO($mode)) {
-       open(STDOUT, "|gnuplot -persist") || die "gnuplot: $!";
+       open(STDOUT, "|gnuplot".(defined $out ? "" : " -persist")) ||
+         die "gnuplot: $!";
     }
 
+    $style = "lines";
+    $style = "filledcurves x1";
+    if (defined $out) {
+       print "set terminal png\n";
+       print "set output \"$out\"\n";
+    }
+    print "set title '$name'\n";
+    print "set xlabel 'Ping round-trip time (ms)'\n";
+    print "set ylabel '% of samples ($n)'\n";
+    print "set logscale x\n";
+    print "set xrange [$low:$max]\n";
+    print "set yrange [0:100]\n";
+#    print "set fillstyle solid\n";
     print "plot ";
-    for ($w = 1; $w < $max; $w *= 2) {
-       print ", " unless $w == 1;
-       print "\"< $0 $ARGV[0] $w\" with lines title \"$w\"";
+    for ($w = 1/16; $w < $max/2; $w *= 2) {
+       $legend = $w < 1 ? ($w*1000)."us" : "${w}ms";
+       push(@c, "\"< $0 $name $w\" with $style title \"bin = $legend\"");
     }
-    print "\n";
+    print join(",", reverse @c), "\n";
 }
 




--- End Message ---
--- Begin Message ---
 packages/ncurses/ncurses.inc    |    4 +++-
 packages/ncurses/ncurses_5.4.bb |    2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

New commits:
commit 608273b69f736830047013f68b763792af500251
Author: I-Fan, Chen <[EMAIL PROTECTED]>
Date:   Fri Nov 7 12:13:57 2008 +0800

    ncurses: Let ncurses replaces libncurses5
        Adding RPROVIDES and RCONFLICTS




--- End Message ---
--- Begin Message ---
 packages/dbus/dbus.inc |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

New commits:
commit 88fcd320b2f0954b52a90889880db0a29a70373b
Author: I-Fan, Chen <[EMAIL PROTECTED]>
Date:   Fri Nov 7 12:24:16 2008 +0800

    dbus: adding RPROVIDES and let dbus-1 becomes a virtual package




--- End Message ---
--- Begin Message ---
 packages/dbus/dbus_1.2.1.bb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

New commits:
commit 75404caf5c98abe0d34c8759520f56d9ddc65b4e
Author: I-Fan, Chen <[EMAIL PROTECTED]>
Date:   Fri Nov 7 12:31:19 2008 +0800

    dbus: Bump up PR for last RPROVIDES change




--- End Message ---
--- Begin Message ---
Author: werner
Date: 2008-11-07 05:44:41 +0100 (Fri, 07 Nov 2008)
New Revision: 4767

Modified:
   developers/werner/wlan-perf/pingh
Log:
- reduce the initial bin to avoid cluttering the output



Modified: developers/werner/wlan-perf/pingh
===================================================================
--- developers/werner/wlan-perf/pingh   2008-11-07 04:07:19 UTC (rev 4766)
+++ developers/werner/wlan-perf/pingh   2008-11-07 04:44:41 UTC (rev 4767)
@@ -75,7 +75,7 @@
     print "set yrange [0:100]\n";
 #    print "set fillstyle solid\n";
     print "plot ";
-    for ($w = 1/16; $w < $max/2; $w *= 2) {
+    for ($w = 1/16; $w < $max/10; $w *= 2) {
        $legend = $w < 1 ? ($w*1000)."us" : "${w}ms";
        push(@c, "\"< $0 $name $w\" with $style title \"bin = $legend\"");
     }




--- End Message ---
--- Begin Message ---
Author: erin_yueh
Date: 2008-11-07 09:00:36 +0100 (Fri, 07 Nov 2008)
New Revision: 4768

Modified:
   trunk/src/target/OM-2007.2/applications/openmoko-today2/po/POTFILES.in
   
trunk/src/target/OM-2007.2/applications/openmoko-today2/src/today-events-store.c
   trunk/src/target/OM-2007.2/applications/openmoko-today2/src/today-main.c
   
trunk/src/target/OM-2007.2/applications/openmoko-today2/src/today-pim-journal.c
   
trunk/src/target/OM-2007.2/applications/openmoko-today2/src/today-task-manager.c
Log:
applied patch for bug#1109: Translations for openmoko-today are not possible


Modified: trunk/src/target/OM-2007.2/applications/openmoko-today2/po/POTFILES.in
===================================================================
--- trunk/src/target/OM-2007.2/applications/openmoko-today2/po/POTFILES.in      
2008-11-07 04:44:41 UTC (rev 4767)
+++ trunk/src/target/OM-2007.2/applications/openmoko-today2/po/POTFILES.in      
2008-11-07 08:00:36 UTC (rev 4768)
@@ -0,0 +1,22 @@
+src/today-events-store.c
+src/today-main.c
+src/today-pim-journal.c
+src/today-task-manager.c
+src/today-launcher.c
+
+#libkoto
+libkoto/ical-util.c
+libkoto/koto-date-combo.c
+libkoto/koto-task-view.c
+libkoto/koto-all-group.c
+libkoto/koto-entry.c
+libkoto/koto-field-editor-factory.c
+libkoto/koto-meta-group.c
+libkoto/koto-no-category-group.c
+libkoto/koto-priority-combo.c
+libkoto/koto-task-editor-dialog.c
+libkoto/koto-task-editor.c
+libkoto/koto-task-summary.c
+libkoto/koto-task-view.c
+libkoto/koto-undo-action.c
+libkoto/koto-undo-manager.c

Modified: 
trunk/src/target/OM-2007.2/applications/openmoko-today2/src/today-events-store.c
===================================================================
--- 
trunk/src/target/OM-2007.2/applications/openmoko-today2/src/today-events-store.c
    2008-11-07 04:44:41 UTC (rev 4767)
+++ 
trunk/src/target/OM-2007.2/applications/openmoko-today2/src/today-events-store.c
    2008-11-07 08:00:36 UTC (rev 4768)
@@ -96,7 +96,7 @@
        
        /* TODO: Read some setting to decide on 24hr/12hr time */
        if (day_t == start_t)
-               strftime (time_string, sizeof (time_string), "%I:%M%p",
+         strftime (time_string, sizeof (time_string), _("%I:%M%p"),
                        &start_tm);
        else
                strftime (time_string, sizeof (time_string), "%x",

Modified: 
trunk/src/target/OM-2007.2/applications/openmoko-today2/src/today-main.c
===================================================================
--- trunk/src/target/OM-2007.2/applications/openmoko-today2/src/today-main.c    
2008-11-07 04:44:41 UTC (rev 4767)
+++ trunk/src/target/OM-2007.2/applications/openmoko-today2/src/today-main.c    
2008-11-07 08:00:36 UTC (rev 4768)
@@ -130,7 +130,7 @@
        
        time = jana_ecal_utils_time_now (data->location);
        jana_gtk_clock_set_time (JANA_GTK_CLOCK (data->clock), time);
-       date_str = jana_utils_strftime (time, "%A, %d. %B %Y");
+       date_str = jana_utils_strftime (time, _("%A, %d. %B %Y"));
        gtk_label_set_text (GTK_LABEL (data->date_label), date_str);
        g_free (date_str);
        
@@ -413,7 +413,7 @@
 {
        g_object_get (window, "is-active", &active, NULL);
        if (!active)
-               gtk_window_set_title (GTK_WINDOW (data->window), "Home");
+                 gtk_window_set_title (GTK_WINDOW (data->window), _("Home"));
        else
                set_window_title (data);
 }

Modified: 
trunk/src/target/OM-2007.2/applications/openmoko-today2/src/today-pim-journal.c
===================================================================
--- 
trunk/src/target/OM-2007.2/applications/openmoko-today2/src/today-pim-journal.c 
    2008-11-07 04:44:41 UTC (rev 4767)
+++ 
trunk/src/target/OM-2007.2/applications/openmoko-today2/src/today-pim-journal.c 
    2008-11-07 08:00:36 UTC (rev 4768)
@@ -59,7 +59,7 @@
                        JANA_GTK_EVENT_STORE_COL_SUMMARY, &summary,
                        JANA_GTK_EVENT_STORE_COL_START, &start, -1);
                
-               message = g_strdup_printf ("(%02d:%02d) %s",
+               message = g_strdup_printf (_("(%02d:%02d) %s"),
                        jana_time_get_hours (start),
                        jana_time_get_minutes (start),
                        summary);

Modified: 
trunk/src/target/OM-2007.2/applications/openmoko-today2/src/today-task-manager.c
===================================================================
--- 
trunk/src/target/OM-2007.2/applications/openmoko-today2/src/today-task-manager.c
    2008-11-07 04:44:41 UTC (rev 4767)
+++ 
trunk/src/target/OM-2007.2/applications/openmoko-today2/src/today-task-manager.c
    2008-11-07 08:00:36 UTC (rev 4768)
@@ -718,7 +718,7 @@
        /* Confirmation dialog first */
        dialog = gtk_message_dialog_new (GTK_WINDOW (data->window),
                GTK_DIALOG_MODAL, GTK_MESSAGE_QUESTION, GTK_BUTTONS_YES_NO,
-               "Are you sure you want to close all applications?");
+                                        _("Are you sure you want to close all 
applications?"));
        response = gtk_dialog_run (GTK_DIALOG (dialog));
        gtk_widget_destroy (dialog);
        




--- End Message ---
--- Begin Message ---
Author: charlie
Date: 2008-11-07 10:09:18 +0100 (Fri, 07 Nov 2008)
New Revision: 4769

Added:
   developers/charlie/Tests/
   developers/charlie/Tests/Evas/
   developers/charlie/Tests/Evas/DejaVuSans-Bold.ttf
   developers/charlie/Tests/Evas/test.edc
   developers/charlie/Tests/Evas/test.edj
   developers/charlie/Tests/Evas/test.py
Log:
Added Evas test script


Added: developers/charlie/Tests/Evas/DejaVuSans-Bold.ttf
===================================================================
(Binary files differ)


Property changes on: developers/charlie/Tests/Evas/DejaVuSans-Bold.ttf
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: developers/charlie/Tests/Evas/test.edc
===================================================================
--- developers/charlie/Tests/Evas/test.edc                              (rev 0)
+++ developers/charlie/Tests/Evas/test.edc      2008-11-07 09:09:18 UTC (rev 
4769)
@@ -0,0 +1,130 @@
+
+fonts {
+   font: "DejaVuSans-Bold.ttf" "Sans";
+}
+
+styles {
+   style {
+      name: "char_style";
+      base: "font=Sans font_size=36 color=#fff wrap=char outline_color=#000 
style=soft_outline tabstops=60";
+      tag:  "br" "  \n";
+      tag:  "tab" "  \t";
+   }
+}
+
+collections {
+    group {
+        name: "test";
+        parts {
+            part {
+                name: "background";
+                type: RECT;
+                description {
+                    state: "default" 0.0;
+                    color: 0 0 0 255;
+                }
+            }
+        
+        
+            part {
+                name: "main-menu";
+                type: SWALLOW;
+                description {
+                    state: "default" 0.0;
+                    rel1 {
+                        relative: 0.1 0.1;
+                        offset: 0 0;
+                    }
+                    rel2 {
+                        relative: 0.9 0.9;
+                        offset: 0 0;
+                    }
+                }
+            }
+        }
+    }
+    
+    
+    group {
+        name: "label";
+        min: 440 80;
+           max: 440 80;
+        parts {
+            part {
+                name: "label";
+                type: TEXT;
+                description {
+                    fixed: 1 1;
+                    text {
+                                           align: 0.0 0.5;
+                                           min: 1 1;
+                                           size: 48;
+                                           text: "Hello";
+                                           font: "Sans";
+                                   }
+                    rel1 {
+                        relative: 0.1 0.1;
+                        offset: 0 0;
+                    }
+                    rel2 {
+                        relative: 0.9 0.9;
+                        offset: 0 0;
+                    }
+                    state: "default" 0.0;
+                    color: 255 255 255 255;
+                }
+            }
+        }
+    }
+    
+    group {
+        name: "button";
+        min: 440 80;
+           max: 440 80;
+        parts {
+            part {
+                name: "rect";
+                type: RECT;
+                description {
+                    rel1 {
+                        relative: 0.1 0.1;
+                        offset: 0 0;
+                    }
+                    rel2 {
+                        relative: 0.9 0.9;
+                        offset: 0 0;
+                    }
+                    state: "default" 0.0;
+                    color: 255 0 0 128;
+                }
+            }
+        }
+    }
+    
+    
+    group {
+        name: "frame";
+        min: 440 80;
+//         max: 440 80;
+        parts {
+            part {
+                name: "rect";
+                type: RECT;
+                description {
+                    rel1 {
+                        relative: 0.1 0.1;
+                        offset: 0 0;
+                    }
+                    rel2 {
+                        relative: 0.9 0.9;
+                        offset: 0 0;
+                    }
+                    state: "default" 0.0;
+                    color: 255 0 0 255;
+                }
+            }
+        }
+    }
+}
+
+

Added: developers/charlie/Tests/Evas/test.edj
===================================================================
(Binary files differ)


Property changes on: developers/charlie/Tests/Evas/test.edj
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: developers/charlie/Tests/Evas/test.py
===================================================================
--- developers/charlie/Tests/Evas/test.py                               (rev 0)
+++ developers/charlie/Tests/Evas/test.py       2008-11-07 09:09:18 UTC (rev 
4769)
@@ -0,0 +1,138 @@
+
+import e_dbus
+import evas
+import evas.decorators
+import edje
+import edje.decorators
+import ecore
+import ecore.evas
+import etk
+
+class Widget(object):
+    def __init__(self, parent, **kargs):
+        self.parent = parent
+        self.children = []
+        if parent is not None:
+            parent.add(self)
+        self.show()
+    def add(self, child):
+        self.etk_obj.add(child.etk_obj)
+        self.children.append(child)
+    def get_evas(self):
+        return self.parent.get_evas()
+    def show(self):
+        self.etk_obj.show_all()
+
+        
+class Window(Widget):
+    def __init__(self, parent, **kargs):
+        self.etk_obj = etk.VBox()
+        super(Window, self).__init__(parent, **kargs)
+    def add(self, child):
+        self.etk_obj.append(child.etk_obj, etk.VBox.START, etk.VBox.NONE, 0)
+
+        
+class Screen(Widget):
+    def __init__(self):
+        self.etk_window = ecore.evas.SoftwareX11(w=640, h=480)
+        self.edje = edje.Edje(self.etk_window.evas, file='test.edj', 
group="test")
+        self.edje.size = self.etk_window.evas.size
+        self.etk_window.data["edje"] = self.edje
+        self.etk_obj = etk.Embed(self.etk_window.evas)
+        Widget.__init__(self, None)
+        
+    def get_evas(self):
+        return self.etk_window.evas
+    
+    def show(self):
+        self.edje.part_swallow("main-menu", self.etk_obj.object)
+        edje.frametime_set(1.0/30)
+        self.edje.show()
+        self.etk_window.show()
+        super(Screen, self).show()
+        
+class Frame(Widget):
+    def __init__(self, parent, **kargs):
+        self.etk_obj = etk.Canvas()
+        edje_obj = edje.Edje(parent.get_evas(), file='test.edj', group="frame")
+        self.etk_obj.object_add(edje_obj)
+        super(Frame, self).__init__(parent, **kargs)
+        edje_obj.show()
+
+class Box(Widget):
+    def __init__(self, parent, axis=0, **kargs):
+        self.etk_obj = etk.VBox()
+        super(Box, self).__init__(parent, **kargs)
+    def add(self, child):
+        self.etk_obj.append(child.etk_obj, etk.VBox.START, etk.VBox.NONE, 0)
+
+class Scrolled(Widget):
+    def __init__(self, parent, **kargs):
+        self.etk_obj = etk.ScrolledView()
+        super(Scrolled, self).__init__(parent, **kargs)
+    def add(self, child):
+        self.etk_obj.add_with_viewport(child.etk_obj)
+        
+class Button(Widget):
+    def __init__(self, parent, **kargs):
+        self.etk_obj = etk.Canvas()
+        edje_obj = edje.Edje(parent.get_evas(), file='test.edj', 
group="button")
+        self.etk_obj.object_add(edje_obj)
+        super(Button, self).__init__(parent, **kargs)
+        edje_obj.show()
+        
+class Label(Widget):
+    def __init__(self, parent, text, **kargs):
+        self.etk_obj = etk.Canvas()
+        self.edje_obj = edje.Edje(parent.get_evas(), file='test.edj', 
group="label")
+        self.edje_obj.part_text_set("label", text)
+        self.etk_obj.object_add(self.edje_obj)
+        super(Label, self).__init__(parent, **kargs)
+        self.edje_obj.show()
+        
+    def __get_text(self):
+        return self.edje_obj.part_text_get("label")
+    def __set_text(self, value):
+        self.edje_obj.part_text_set("label", value)
+    text = property(__get_text, __set_text)
+    
+class Spring(Widget):
+    def __init__(self, parent, **kargs):
+        self.etk_obj = etk.HSeparator()
+        super(Spring, self).__init__(parent, **kargs)
+    
+    
+
+class Gui(object):
+    def __init__(self):
+        print "init gui"
+
+        screen = Screen()
+        window = Window(screen)
+        
+        frame = Frame(window)
+        
+#        vbox = Box(window)
+#        Label(vbox, "hello")
+#        Spring(vbox)
+#        Label(vbox, "hello")
+        
+        
+#        scrolled = Scrolled(screen)
+#        window.etk_obj.size_request_set(10,10)
+#        
+#        vbox = Box(scrolled)
+#              
+#        for i in range(10):
+#            b = Button(vbox)
+#            l = Label(b, "hello %d" % i)
+        
+        # screen.show()
+        
+        
+    def run(self):
+        ecore.main_loop_begin()
+        
+gui = Gui()
+gui.run()
+




--- End Message ---
_______________________________________________
commitlog mailing list
commitlog@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/commitlog

Reply via email to