public this repo is viewable by everyone
Description: A Clutter-based Twitter client
Clone URL: git://github.com/ebassi/tweet.git
Save the configuration on quit

Let TweetApp save the state of the TweetConfig object when
quitting Tweet.
Emmanuele Bassi (author)
28 days ago
commit  455bcf01d7cb8a5c84630024c693349a9c06dafe
tree    2eca12004870287376467b447dbfefccf872cc47
parent  72ff55611b6b5df82e6d7a270c279644c7ba252b
...
61
62
63
 
 
 
 
 
64
65
 
 
66
67
...
61
62
63
64
65
66
67
68
69
70
71
72
73
74
0
@@ -61,7 +61,14 @@ tweet_app_run (TweetApp *app)
0
   g_return_val_if_fail (TWEET_IS_APP (app), EXIT_FAILURE);
0
   g_return_val_if_fail (!tweet_app_is_running (app), EXIT_SUCCESS);
0
 
0
+ if (!tweet_config_get_username (app->config))
0
+ {
0
+ /* ask the user for the credentials */
0
+ }
0
+
0
   gtk_main ();
0
 
0
+ tweet_config_save (app->config);
0
+
0
   return EXIT_SUCCESS;
0
 }

Comments

    No one has commented yet.