aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-08-15 14:12:01 +0000
committerChristian Grothoff <christian@grothoff.org>2011-08-15 14:12:01 +0000
commitfb9d1f34844655a8ac65b325561ddb0430653a47 (patch)
treeac8e40abe77a55a4dc1c445affc896479d93a077 /src/include
parentb32c41fda944780a18bc886a3171cb5cde46d77f (diff)
downloadgnunet-gtk-fb9d1f34844655a8ac65b325561ddb0430653a47.tar.gz
gnunet-gtk-fb9d1f34844655a8ac65b325561ddb0430653a47.zip
trayicon
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_gtk.h35
1 files changed, 34 insertions, 1 deletions
diff --git a/src/include/gnunet_gtk.h b/src/include/gnunet_gtk.h
index 4403ab4b..7857538d 100644
--- a/src/include/gnunet_gtk.h
+++ b/src/include/gnunet_gtk.h
@@ -40,6 +40,7 @@
40#include <gladeui/glade.h> 40#include <gladeui/glade.h>
41#include <gtk/gtk.h> 41#include <gtk/gtk.h>
42 42
43/* ****************** Initialization *************** */
43 44
44/** 45/**
45 * Initialize natural language support. 46 * Initialize natural language support.
@@ -49,6 +50,13 @@ GNUNET_GTK_setup_nls (void);
49 50
50 51
51/** 52/**
53 * Initialize GTK search path for icons.
54 */
55void
56GNUNET_GTK_set_icon_search_path ();
57
58
59/**
52 * Get the name of the directory where all of our package 60 * Get the name of the directory where all of our package
53 * data is stored ($PREFIX/share/) 61 * data is stored ($PREFIX/share/)
54 * 62 *
@@ -68,6 +76,8 @@ char *
68GNUNET_GTK_installation_get_path (enum GNUNET_OS_InstallationPathKind dirkind); 76GNUNET_GTK_installation_get_path (enum GNUNET_OS_InstallationPathKind dirkind);
69 77
70 78
79/* **************** Glade/Gtk helpers *************** */
80
71/** 81/**
72 * Create an initialize a new builder based on the GNUnet-GTK glade 82 * Create an initialize a new builder based on the GNUnet-GTK glade
73 * file. 83 * file.
@@ -90,6 +100,29 @@ GNUNET_GTK_display_about (const char *dialogfile,
90 const char *dialogname); 100 const char *dialogname);
91 101
92 102
103
104/**
105 * Create our tray icon.
106 *
107 * @param main handle to the main window (show or hide)
108 * @param icon_name name of the tray icon file
109 * @param tooltip tooltip for the tray icon
110 */
111void
112GNUNET_GTK_tray_icon_create (GtkWindow *main,
113 const char *icon_name,
114 const char *tooltip);
115
116
117/**
118 * Destroy the tray icon.
119 */
120void
121GNUNET_GTK_tray_icon_destroy (void);
122
123
124/* ******************* main loop ***************** */
125
93/** 126/**
94 * Handle for our main loop. 127 * Handle for our main loop.
95 */ 128 */
@@ -117,7 +150,6 @@ GNUNET_GTK_main_loop_start (const char *binary_name,
117 const char *main_window_file, 150 const char *main_window_file,
118 GNUNET_SCHEDULER_Task main_task); 151 GNUNET_SCHEDULER_Task main_task);
119 152
120
121/** 153/**
122 * Get an object from the main window. 154 * Get an object from the main window.
123 * 155 *
@@ -130,6 +162,7 @@ GNUNET_GTK_main_loop_get_object (struct GNUNET_GTK_MainLoop *ml,
130 const char *name); 162 const char *name);
131 163
132 164
165
133/** 166/**
134 * Get the configuration. 167 * Get the configuration.
135 * 168 *