public
Description: A Clutter-based Twitter client
Homepage: http://live.gnome.org/Tweet
Clone URL: git://github.com/ebassi/tweet.git
Search Repo:
Emmanuele Bassi (author)
Fri Apr 11 06:32:03 -0700 2008
commit  9966e1eda420cd0ba4dc854650fc0919156d4250
tree    1356e7572d307a6ce6a82374775de937ba3c7ebd
parent  e2490767c32668b0d93846e31bd6932cd6d83e9e
tweet / src / main.c
100644 34 lines (27 sloc) 0.546 kb
1
2
3
4
5
6
7
8
9
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
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
 
#include <glib.h>
#include "tweet-app.h"
 
int
main (int argc,
      char *argv[])
{
  TweetApp *app;
  GError *error;
  int res = EXIT_FAILURE;
 
  error = NULL;
  app = tweet_app_get_default (&argc, &argv, &error);
  if (error)
    {
      g_warning ("Unable to launch %s: %s", PACKAGE, error->message);
      g_error_free (error);
      return res;
    }
 
  if (tweet_app_is_running (app))
    res = EXIT_SUCCESS;
  else
    res = tweet_app_run (app);
 
  g_object_unref (app);
 
  return res;
}