Ticket #3: bug3

File bug3, 1.5 KB (added by info@…, 4 years ago)

patch for ticket 3

Line 
1=== modified file 'src/zhone'
2--- src/zhone   2008-08-15 10:34:04 +0000
3+++ src/zhone   2008-08-15 11:02:30 +0000
4@@ -1410,6 +1410,18 @@
5         id = int( source.split( "_" )[-1] )
6         if( id == 5 ):
7           os.system("halt")
8+        if( id == 0 ):
9+          fp = os.popen("sleep 5 && \
10+                         n=/tmp/scap$$.png && \
11+                         fbgrab $n && \
12+                         curl \
13+                          -F file=@$n \
14+                          -F key=secret \
15+                          -F model=`uname -n` \
16+                          -F submit=Upload \
17+                          -F text=no\ comment \
18+                          http://scap.linuxtogo.org/tickle.php && \
19+                         rm $n &")
20 
21     @edje.decorators.signal_callback( "mouse,clicked,1", "target_cancel" )
22     def on_edje_signal_button_bottom_middle_pressed( self, emission, source ):
23@@ -1418,9 +1430,12 @@
24     def activate( self, group ):
25         self.group = group
26         self.signal_emit( "visible", "" )
27-        for i in range( 0, 5 ):
28+        for i in range( 1, 5 ):
29           self.part_text_set( "label_main_list_%i" % i, u"" )
30           self.part_text_set( "label_sub_list_%i" % i, u"" )
31+       
32+        self.part_text_set( "label_main_list_0", u"Take screenshot" )
33+        self.part_text_set( "label_sub_list_0", u"and upload to http://scap.linuxtogo.org" )
34         self.part_text_set( "label_main_list_5", u"Exit" )
35         self.part_text_set( "label_sub_list_5", u"Stop and exit Zhone" )
36 
37