blob: 25b1a3e372a5a06c5d9da03f9a04bc9928ecdd92 [file] [log] [blame]
Stepan Salenikoviche3500cb2015-02-13 15:55:46 -05001/*
Guillaume Roguez77c579d2018-01-30 15:54:02 -05002 * Copyright (C) 2015-2018 Savoir-faire Linux Inc.
Stepan Salenikoviche3500cb2015-02-13 15:55:46 -05003 * Author: Stepan Salenikovich <stepan.salenikovich@savoirfairelinux.com>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 3 of the License, or
8 * (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
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Stepan Salenikoviche3500cb2015-02-13 15:55:46 -050018 */
19
20#include <gtk/gtk.h>
Stepan Salenikoviche88f6692015-09-10 18:09:38 -040021#include <glib/gi18n.h>
philippegorley6377f8a2017-06-30 12:20:56 -040022#include <cstdlib>
Stepan Salenikoviche88f6692015-09-10 18:09:38 -040023#include "config.h"
Stepan Salenikovichd81ef292015-02-17 18:47:37 -050024#include "ring_client.h"
Stepan Salenikoviche3500cb2015-02-13 15:55:46 -050025
26int
27main(int argc, char *argv[])
28{
philippegorley6377f8a2017-06-30 12:20:56 -040029 setenv("GDK_BACKEND", "x11", true); // workaround for Wayland
30
Stepan Salenikoviche88f6692015-09-10 18:09:38 -040031 /* Internationalization; localization is done automatically by gtk during init */
32 bindtextdomain(PACKAGE_NAME, LOCALEDIR);
33 bind_textdomain_codeset(PACKAGE_NAME, "UTF-8");
34 textdomain(PACKAGE_NAME);
35
Stepan Salenikovich0d515e52015-05-19 16:31:05 -040036 RingClient *client = ring_client_new(argc, argv);
37 return g_application_run(G_APPLICATION(client), argc, argv);
Stepan Salenikoviche3500cb2015-02-13 15:55:46 -050038}