public
Description: A Clutter-based Twitter client
Homepage: http://live.gnome.org/Tweet
Clone URL: git://github.com/ebassi/tweet.git
Search Repo:
Tweet main application singleton

A singleton class, holding the application data (configuration,
window, etc.).

Should use libunique to prevent multiple copies of itself.
Emmanuele Bassi (author)
Thu Apr 17 21:45:48 -0700 2008
commit  5eace09ef4f7bdbdde82eae3fc09c618225ab5bb
tree    06b7243880e9e823453c72fb810cddaa129ea439
parent  9a22165ae7c824a7c7948d0869c54a826ac2d526
...
8
9
10
11
 
12
13
 
 
14
15
16
...
24
25
26
 
 
27
28
29
...
33
34
35
 
36
37
38
...
54
55
56
57
 
58
59
60
...
8
9
10
 
11
12
13
14
15
16
17
18
...
26
27
28
29
30
31
32
33
...
37
38
39
40
41
42
43
...
59
60
61
 
62
63
64
65
0
@@ -8,9 +8,11 @@
0
 #include <glib.h>
0
 
0
 #include <clutter/clutter.h>
0
-#include <clutter-gtk/clutter-gtk.h>
0
+#include <clutter-gtk/gtk-clutter-embed.h>
0
 
0
 #include "tweet-app.h"
0
+#include "tweet-config.h"
0
+#include "tweet-window.h"
0
 
0
 static TweetApp *default_app = NULL;
0
 
0
@@ -24,6 +26,8 @@
0
 static void
0
 tweet_app_init (TweetApp *app)
0
 {
0
+ app->config = tweet_config_get_default ();
0
+ app->main_window = tweet_window_new ();
0
 }
0
 
0
 TweetApp *
0
@@ -33,6 +37,7 @@
0
 {
0
   if (!default_app)
0
     {
0
+ g_thread_init (NULL);
0
       gtk_init (argc, argv);
0
       clutter_init (argc, argv);
0
 
0
@@ -54,7 +59,7 @@
0
 tweet_app_run (TweetApp *app)
0
 {
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
+ g_return_val_if_fail (!tweet_app_is_running (app), EXIT_SUCCESS);
0
 
0
   gtk_main ();
0
 
...
4
5
6
 
 
7
8
9
...
19
20
21
 
 
22
23
24
...
4
5
6
7
8
9
10
11
...
21
22
23
24
25
26
27
28
0
@@ -4,6 +4,8 @@
0
 #include <glib-object.h>
0
 #include <gtk/gtk.h>
0
 
0
+#include "tweet-config.h"
0
+
0
 G_BEGIN_DECLS
0
 
0
 #define TWEET_TYPE_APP (tweet_app_get_type ())
0
@@ -19,6 +21,8 @@
0
 struct _TweetApp
0
 {
0
   GObject parent_instance;
0
+
0
+ TweetConfig *config;
0
 
0
   GtkWidget *main_window;
0
 

Comments

    No one has commented yet.