Stepan Salenikovich | e3500cb | 2015-02-13 15:55:46 -0500 | [diff] [blame] | 1 | /* |
Guillaume Roguez | 2a6150d | 2017-07-19 18:24:47 -0400 | [diff] [blame] | 2 | * Copyright (C) 2015-2017 Savoir-faire Linux Inc. |
Stepan Salenikovich | e3500cb | 2015-02-13 15:55:46 -0500 | [diff] [blame] | 3 | * 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 Salenikovich | e3500cb | 2015-02-13 15:55:46 -0500 | [diff] [blame] | 18 | */ |
| 19 | |
| 20 | #include <gtk/gtk.h> |
Stepan Salenikovich | e88f669 | 2015-09-10 18:09:38 -0400 | [diff] [blame] | 21 | #include <glib/gi18n.h> |
philippegorley | 6377f8a | 2017-06-30 12:20:56 -0400 | [diff] [blame] | 22 | #include <cstdlib> |
Stepan Salenikovich | e88f669 | 2015-09-10 18:09:38 -0400 | [diff] [blame] | 23 | #include "config.h" |
Stepan Salenikovich | d81ef29 | 2015-02-17 18:47:37 -0500 | [diff] [blame] | 24 | #include "ring_client.h" |
Stepan Salenikovich | e3500cb | 2015-02-13 15:55:46 -0500 | [diff] [blame] | 25 | |
| 26 | int |
| 27 | main(int argc, char *argv[]) |
| 28 | { |
philippegorley | 6377f8a | 2017-06-30 12:20:56 -0400 | [diff] [blame] | 29 | setenv("GDK_BACKEND", "x11", true); // workaround for Wayland |
| 30 | |
Stepan Salenikovich | e88f669 | 2015-09-10 18:09:38 -0400 | [diff] [blame] | 31 | /* 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 Salenikovich | 0d515e5 | 2015-05-19 16:31:05 -0400 | [diff] [blame] | 36 | RingClient *client = ring_client_new(argc, argv); |
| 37 | return g_application_run(G_APPLICATION(client), argc, argv); |
Stepan Salenikovich | e3500cb | 2015-02-13 15:55:46 -0500 | [diff] [blame] | 38 | } |