Complete previous commit
[debian/pino.git] / debian / patches / 005_allow-current-user-info.diff
1 Description: Allows current user to display her own information & timeline
2 Author: Julien Valroff <julien@kirya.net>
3 Bug: http://code.google.com/p/pino-twitter/issues/detail?id=268
4 Forwarded: yes
5
6 Index: pino/src/user_info_list.vala
7 ===================================================================
8 --- pino.orig/src/user_info_list.vala   2010-05-23 22:21:55.000000000 +0200
9 +++ pino/src/user_info_list.vala        2010-05-23 22:31:21.000000000 +0200
10 @@ -167,9 +167,6 @@
11         
12         /* get user full info and his timeline */
13         public void show_user(string screen_name) {
14 -               if(accounts.get_current_account().login == screen_name)
15 -                       return;
16 -               
17                 act.activate();
18                 
19                 if(full_status != null && full_status.user_screen_name == screen_name)
20 Index: pino/templates/status_me.tpl
21 ===================================================================
22 --- pino.orig/templates/status_me.tpl   2010-05-23 22:21:55.000000000 +0200
23 +++ pino/templates/status_me.tpl        2010-05-23 22:31:21.000000000 +0200
24 @@ -1,5 +1,5 @@
25  <div class="status">
26 -       <div class="avatar_me" style="background-image:url('{{avatar}}');"></div>
27 +       <a href="userinfo://{{screen_name}}"><div class="avatar_me" style="background-image:url('{{avatar}}');"></div></a>
28         <div class="content_{{me}}" id="{{id}}">
29                 <div class="header">
30                         <span class="date">{{time}}</span>
31 Index: pino/src/template.vala
32 ===================================================================
33 --- pino.orig/src/template.vala 2010-05-23 22:31:26.000000000 +0200
34 +++ pino/src/template.vala      2010-05-23 22:31:50.000000000 +0200
35 @@ -281,6 +281,7 @@
36                                 map["id"] = i.id;
37                                 map["time"] = time;
38                                 map["by_who"] = by_who;
39 +                               map["screen_name"] = screen_name;
40                                 
41                                 if(prefs.fullNames)
42                                         map["name"] = i.user_name;