Parent Directory | Revision Log
Speaking names in status bar
1 | harbaum | 1 | /* |
2 | * Copyright (C) 2008 Till Harbaum <till@harbaum.org>. | ||
3 | * | ||
4 | * This file is part of OSM2Go. | ||
5 | * | ||
6 | * OSM2Go is free software: you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation, either version 3 of the License, or | ||
9 | * (at your option) any later version. | ||
10 | * | ||
11 | * OSM2Go is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | * GNU General Public License for more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License | ||
17 | * along with OSM2Go. If not, see <http://www.gnu.org/licenses/>. | ||
18 | */ | ||
19 | |||
20 | #ifndef STATUSBAR_H | ||
21 | #define STATUSBAR_H | ||
22 | |||
23 | achadwick | 28 | #define STATUSBAR_DEFAULT_BRIEF_TIME 3000 |
24 | |||
25 | harbaum | 1 | typedef struct statusbar_s { |
26 | harbaum | 195 | GtkWidget *widget; |
27 | #if !defined(USE_HILDON) || (MAEMO_VERSION_MAJOR < 5) | ||
28 | GtkWidget *eventbox; | ||
29 | achadwick | 28 | guint cid; |
30 | guint mid; | ||
31 | harbaum | 195 | #endif |
32 | #ifndef USE_HILDON | ||
33 | guint brief_handler_id; | ||
34 | achadwick | 28 | guint brief_mid; |
35 | harbaum | 195 | #endif |
36 | harbaum | 1 | } statusbar_t; |
37 | |||
38 | void statusbar_set(appdata_t *appdata, const char *msg, gboolean highlight); | ||
39 | GtkWidget *statusbar_new(appdata_t *appdata); | ||
40 | void statusbar_highlight(appdata_t *appdata, gboolean highlight); | ||
41 | void statusbar_free(statusbar_t *statusbar); | ||
42 | |||
43 | harbaum | 195 | #ifndef USE_HILDON |
44 | void statusbar_brief(appdata_t *appdata, const char *msg, gint timeout); | ||
45 | #endif | ||
46 | |||
47 | harbaum | 1 | #endif // STATUSBAR_H |