public
Fork of ebassi/tweet
Description: A Clutter-based Twitter client
Clone URL: git://github.com/patoh/tweet.git
Test authentication sequence

Check that the signals for authentications are effectively emitted
and in the right order.
Emmanuele Bassi (author)
Fri Apr 11 09:54:50 -0700 2008
commit  d943e0b3f0fe4d4bacd397fe13f408fad50ee819
tree    e3af48e7de44a4004121b4f534e7a50cefd2479d
parent  b324c40545ef525703d3eaafe7bf8de7f0fcf6f7
...
10
11
12
13
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
15
16
...
10
11
12
 
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
0
@@ -10,7 +10,25 @@ authenticate_cb (TwitterClient *client,
0
                  TwitterAuthState state,
0
                  gpointer user_data)
0
 {
0
- g_print ("Authenticating...\n");
0
+ gchar *user = NULL;
0
+
0
+ twitter_client_get_user (client, &user, NULL);
0
+
0
+ switch (state)
0
+ {
0
+ case TWITTER_AUTH_NEGOTIATING:
0
+ g_print ("*** Authenticating as '%s'\n", user);
0
+ break;
0
+
0
+ case TWITTER_AUTH_SUCCESS:
0
+ g_print ("*** Authentication successful\n");
0
+ break;
0
+
0
+ default:
0
+ break;
0
+ }
0
+
0
+ g_free (user);
0
 
0
   return TRUE;
0
 }

Comments

    No one has commented yet.