Differential D13434 Diff 36441 net-im/telegram-desktop/files/patch-Telegram_SourceFiles_platform_linux_linux__libs.h
Changeset View
Changeset View
Standalone View
Standalone View
net-im/telegram-desktop/files/patch-Telegram_SourceFiles_platform_linux_linux__libs.h
- This file was added.
Property | Old Value | New Value |
---|---|---|
fbsd:nokeywords | null | yes \ No newline at end of property |
svn:eol-style | null | native \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
--- Telegram/SourceFiles/platform/linux/linux_libs.h.orig 2017-09-05 17:38:38 UTC | |||||
+++ Telegram/SourceFiles/platform/linux/linux_libs.h | |||||
@@ -22,14 +22,16 @@ Copyright (c) 2014-2017 John Preston, ht | |||||
extern "C" { | |||||
#undef signals | |||||
+#ifdef HAVE_APPINDICATOR | |||||
#include <libappindicator/app-indicator.h> | |||||
+#endif | |||||
#include <gtk/gtk.h> | |||||
#include <gdk/gdk.h> | |||||
#define signals public | |||||
} // extern "C" | |||||
#ifndef TDESKTOP_DISABLE_UNITY_INTEGRATION | |||||
-#include <unity/unity/unity.h> | |||||
+typedef void UnityLauncherEntry; | |||||
#endif // !TDESKTOP_DISABLE_UNITY_INTEGRATION | |||||
namespace Platform { | |||||
@@ -284,6 +286,7 @@ inline gulong g_signal_connect_swapped_h | |||||
typedef void (*f_g_signal_handler_disconnect)(gpointer instance, gulong handler_id); | |||||
extern f_g_signal_handler_disconnect g_signal_handler_disconnect; | |||||
+#ifdef HAVE_APPINDICATOR | |||||
typedef AppIndicator* (*f_app_indicator_new)(const gchar *id, const gchar *icon_name, AppIndicatorCategory category); | |||||
extern f_app_indicator_new app_indicator_new; | |||||
@@ -295,6 +298,7 @@ extern f_app_indicator_set_menu app_indi | |||||
typedef void (*f_app_indicator_set_icon_full)(AppIndicator *self, const gchar *icon_name, const gchar *icon_desc); | |||||
extern f_app_indicator_set_icon_full app_indicator_set_icon_full; | |||||
+#endif | |||||
typedef gboolean (*f_gdk_init_check)(gint *argc, gchar ***argv); | |||||
extern f_gdk_init_check gdk_init_check; |