diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-11-10 20:07:04 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-11-10 20:07:04 +0000 |
commit | c4bae3e43ccea8c3e13aae6aa4ec99eb795a19c2 (patch) | |
tree | 2c4c16d84b6376326cbf92011546c25cc418ccd8 /src/include | |
parent | ee15f03a4e6c354c307ebc7d8314b90a1af4f548 (diff) | |
download | gnunet-gtk-c4bae3e43ccea8c3e13aae6aa4ec99eb795a19c2.tar.gz gnunet-gtk-c4bae3e43ccea8c3e13aae6aa4ec99eb795a19c2.zip |
fix #2626 -- existing and window hiding via tray icon
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_gtk.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/include/gnunet_gtk.h b/src/include/gnunet_gtk.h index 67caaf1b..ae49aefa 100644 --- a/src/include/gnunet_gtk.h +++ b/src/include/gnunet_gtk.h | |||
@@ -47,6 +47,13 @@ | |||
47 | #define GDK_KEY_Delete GDK_Delete | 47 | #define GDK_KEY_Delete GDK_Delete |
48 | #endif | 48 | #endif |
49 | 49 | ||
50 | /** | ||
51 | * Handle for our main loop. | ||
52 | */ | ||
53 | struct GNUNET_GTK_MainLoop; | ||
54 | |||
55 | |||
56 | |||
50 | /* ****************** Initialization *************** */ | 57 | /* ****************** Initialization *************** */ |
51 | 58 | ||
52 | /** | 59 | /** |
@@ -122,15 +129,18 @@ GNUNET_GTK_get_tree_string (GtkTreeView *treeview, | |||
122 | GtkTreePath *treepath, | 129 | GtkTreePath *treepath, |
123 | guint column, gchar ** value); | 130 | guint column, gchar ** value); |
124 | 131 | ||
132 | |||
125 | /** | 133 | /** |
126 | * Create our tray icon. | 134 | * Create our tray icon. |
127 | * | 135 | * |
136 | * @param ml main loop | ||
128 | * @param main handle to the main window (show or hide) | 137 | * @param main handle to the main window (show or hide) |
129 | * @param icon_name name of the tray icon file | 138 | * @param icon_name name of the tray icon file |
130 | * @param tooltip tooltip for the tray icon | 139 | * @param tooltip tooltip for the tray icon |
131 | */ | 140 | */ |
132 | void | 141 | void |
133 | GNUNET_GTK_tray_icon_create (GtkWindow * main, const char *icon_name, | 142 | GNUNET_GTK_tray_icon_create (struct GNUNET_GTK_MainLoop *ml, |
143 | GtkWindow * main, const char *icon_name, | ||
134 | const char *tooltip); | 144 | const char *tooltip); |
135 | 145 | ||
136 | 146 | ||
@@ -174,11 +184,6 @@ GNUNET_FS_GTK_remove_treestore_subtree (GtkTreeStore * ts, | |||
174 | 184 | ||
175 | /* ******************* main loop ***************** */ | 185 | /* ******************* main loop ***************** */ |
176 | 186 | ||
177 | /** | ||
178 | * Handle for our main loop. | ||
179 | */ | ||
180 | struct GNUNET_GTK_MainLoop; | ||
181 | |||
182 | 187 | ||
183 | /** | 188 | /** |
184 | * Initialize the main loop. | 189 | * Initialize the main loop. |