~bcurtiswx/ubuntu/precise/empathy/3.4.2.1-0ubuntu1

« back to all changes in this revision

Viewing changes to src/empathy-accounts-main.c

  • Committer: Bazaar Package Importer
  • Author(s): Sjoerd Simons
  • Date: 2007-05-20 15:31:42 UTC
  • Revision ID: james.westby@ubuntu.com-20070520153142-r3auwguxdgxhktqb
Tags: upstream-0.4
ImportĀ upstreamĀ versionĀ 0.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 
2
/*
 
3
 * Copyright (C) 2007 Collabora Ltd.
 
4
 *
 
5
 * This program is free software; you can redistribute it and/or
 
6
 * modify it under the terms of the GNU General Public License as
 
7
 * published by the Free Software Foundation; either version 2 of the
 
8
 * License, or (at your option) any later version.
 
9
 *
 
10
 * This program is distributed in the hope that it will be useful,
 
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
13
 * General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU General Public
 
16
 * License along with this program; if not, write to the
 
17
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 
18
 * Boston, MA 02111-1307, USA.
 
19
 * 
 
20
 * Authors: Xavier Claessens <xclaesse@gmail.com>
 
21
 */
 
22
 
 
23
#include <config.h>
 
24
 
 
25
#include <string.h>
 
26
#include <stdlib.h>
 
27
 
 
28
#include <glib.h>
 
29
#include <gtk/gtk.h>
 
30
 
 
31
#include <libempathy-gtk/gossip-accounts-dialog.h>
 
32
 
 
33
static void
 
34
destroy_cb (GtkWidget *dialog,
 
35
            gpointer   user_data)
 
36
{
 
37
        gtk_main_quit ();
 
38
}
 
39
 
 
40
int
 
41
main (int argc, char *argv[])
 
42
{
 
43
        GtkWidget *dialog;
 
44
 
 
45
        gtk_init (&argc, &argv);
 
46
 
 
47
        dialog = gossip_accounts_dialog_show ();
 
48
 
 
49
        g_signal_connect (dialog, "destroy",
 
50
                          G_CALLBACK (destroy_cb),
 
51
                          NULL);
 
52
 
 
53
        gtk_main ();
 
54
 
 
55
        return EXIT_SUCCESS;
 
56
}
 
57