~ubuntu-core-dev/update-notifier/ubuntu

« back to all changes in this revision

Viewing changes to src/trayappletui.h

  • Committer: Balint Reczey
  • Date: 2020-06-11 18:46:02 UTC
  • Revision ID: balint.reczey@canonical.com-20200611184602-2rv1zan3xu723x2u
Moved to git at https://git.launchpad.net/update-notifier

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#include "update-notifier.h"
2
 
 
3
 
// ensure indicator/icon exists
4
 
void tray_applet_ui_ensure(TrayApplet *ta);
5
 
 
6
 
// icon
7
 
void tray_applet_ui_set_icon(TrayApplet *ta, const char *icon_name);
8
 
 
9
 
// visible
10
 
gboolean tray_applet_ui_get_visible(TrayApplet *ta);
11
 
void tray_applet_ui_set_visible(TrayApplet *ta, gboolean visible);
12
 
 
13
 
// tooltips are only support for GtkStatusIcon, so with the indicator
14
 
// we need to simulate this with a menu
15
 
void tray_applet_ui_set_tooltip_text(TrayApplet *ta, const char *text);
16
 
 
17
 
// add a menu to the applet, on the indicators this is left-click,
18
 
// on the GtkStatusBar its right click
19
 
void tray_applet_ui_set_menu(TrayApplet *ta, GtkWidget *menu);
20
 
 
21
 
 
22
 
// this will result in a single menu item for the indicator or
23
 
// in a menu with a single action in the status icon
24
 
void tray_applet_ui_set_single_action(TrayApplet *ta, 
25
 
                                      const char *label,
26
 
                                      GCallback callback,
27
 
                                      void *data);
28
 
 
29
 
// set/get data
30
 
void tray_applet_ui_set_data(TrayApplet *ta, const char *key, void *data);
31
 
void* tray_applet_ui_get_data(TrayApplet *ta, const char *key);
32
 
 
33
 
// destroy indicator/icon
34
 
void tray_applet_ui_destroy(TrayApplet *ta);