mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
Put ifdef around tray.h functions
Only define in case we built with GTK support.
This commit is contained in:
parent
f5afedd171
commit
900426025e
@ -195,6 +195,12 @@ tray_set_timer(int interval)
|
|||||||
timer = g_timeout_add(interval * 1000, _tray_change_icon, NULL);
|
timer = g_timeout_add(interval * 1000, _tray_change_icon, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Create tray icon
|
||||||
|
*
|
||||||
|
* This will initialize the timer that will be called in order to change the icons
|
||||||
|
* and will search the icons in the defaults paths
|
||||||
|
*/
|
||||||
void
|
void
|
||||||
tray_enable(void)
|
tray_enable(void)
|
||||||
{
|
{
|
||||||
|
@ -35,22 +35,15 @@
|
|||||||
#ifndef UI_TRAY_H
|
#ifndef UI_TRAY_H
|
||||||
#define UI_TRAY_H
|
#define UI_TRAY_H
|
||||||
|
|
||||||
|
#ifdef HAVE_GTK
|
||||||
void tray_init(void);
|
void tray_init(void);
|
||||||
void tray_update(void);
|
void tray_update(void);
|
||||||
void tray_shutdown(void);
|
void tray_shutdown(void);
|
||||||
|
|
||||||
/*
|
|
||||||
* Create tray icon
|
|
||||||
*
|
|
||||||
* This will initialize the timer that will be called in order to change the icons
|
|
||||||
* and will search the icons in the defaults paths
|
|
||||||
*/
|
|
||||||
void tray_enable(void);
|
void tray_enable(void);
|
||||||
/*
|
|
||||||
* Destroy tray icon
|
|
||||||
*/
|
|
||||||
void tray_disable(void);
|
void tray_disable(void);
|
||||||
|
|
||||||
void tray_set_timer(int interval);
|
void tray_set_timer(int interval);
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user