~ubuntu-branches/ubuntu/karmic/gucharmap/karmic

« back to all changes in this revision

Viewing changes to gucharmap/main.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2009-02-17 00:42:57 UTC
  • mfrom: (1.1.23 upstream)
  • Revision ID: james.westby@ubuntu.com-20090217004257-bc4yzgoe0v0fr942
Tags: 1:2.25.91-0ubuntu1
New upstream version

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
#include <gucharmap/gucharmap.h>
28
28
#include "gucharmap-settings.h"
29
29
#include "gucharmap-window.h"
30
 
 
31
 
gint
32
 
main (gint argc, gchar **argv)
 
30
 
 
31
static gboolean
 
32
option_version_cb (const gchar *option_name,
 
33
                   const gchar *value,
 
34
                   gpointer     data,
 
35
                   GError     **error)
 
36
{
 
37
  g_print ("%s %s\n", _("GNOME Character Map"), VERSION);
 
38
 
 
39
  exit (EXIT_SUCCESS);
 
40
  return FALSE;
 
41
}
 
42
 
 
43
int
 
44
main (int argc, char **argv)
33
45
{
34
46
  GtkWidget *window;
35
47
  GdkScreen *screen;
36
 
  gint monitor;
 
48
  int monitor;
37
49
  GdkRectangle rect;
38
50
  GError *error = NULL;
39
51
  char *font = NULL;
41
53
  {
42
54
    { "font", 0, 0, G_OPTION_ARG_STRING, &font,
43
55
      N_("Font to start with; ex: 'Serif 27'"), N_("FONT") },
 
56
    { "version", 0, G_OPTION_FLAG_HIDDEN | G_OPTION_FLAG_NO_ARG, 
 
57
      G_OPTION_ARG_CALLBACK, option_version_cb, NULL, NULL },
44
58
    { NULL }
45
59
  };
46
60
 
48
62
  bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
49
63
  textdomain (GETTEXT_PACKAGE);
50
64
 
 
65
#ifdef HAVE_GCONF
 
66
  /* GConf uses ORBit2 which need GThread. See bug #565516 */
 
67
  g_thread_init (NULL);
 
68
#endif
 
69
 
51
70
  if (!gtk_init_with_args (&argc, &argv, "", goptions, GETTEXT_PACKAGE, &error))
52
71
    {
53
72
      g_printerr ("%s\n", error->message);