Make sure that the Capture/Start menue item will always use the
[obnox/wireshark/wip.git] / gtk / main_welcome.h
1 /* main_welcome.h
2  * Welcome "page"
3  *
4  * $Id$
5  *
6  * Wireshark - Network traffic analyzer
7  * By Gerald Combs <gerald@wireshark.org>
8  * Copyright 1998 Gerald Combs
9  *
10  * This program is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU General Public License
12  * as published by the Free Software Foundation; either version 2
13  * of the License, or (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software
22  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
23  */
24
25 #ifndef __MAIN_WELCOME_H__
26 #define __MAIN_WELCOME_H__
27
28 enum
29 {
30   ICON = 0,
31   IFACE_DESCR,
32   IFACE_NAME,
33   NUMCOLUMNS
34 };
35
36 GtkWidget *welcome_new(void);
37
38 /* reset the list of recently used files */
39 void main_welcome_reset_recent_capture_files(void);
40
41 /* add a new file to the list of recently used files */
42 void main_welcome_add_recent_capture_file(const char *widget_cf_name, GObject *menu_item);
43
44 /* reload the list of interfaces */
45 void welcome_if_panel_reload(void);
46
47 /** Push a status message into the welcome screen header similar to
48  *  statusbar_push_*_msg(). This hides everything under the header.
49  *  If msg is dynamically allocated, it is up to the caller to free
50  *  it. If msg is NULL, the default message will be shown.
51  *
52  * @param msg The message
53  */
54 void welcome_header_push_msg(const gchar *msg);
55
56 void welcome_header_set_message(gchar *msg);
57
58 /** Pop a status message from the welcome screen. If there are no
59  *  messages on the stack, the default message and the main columns
60  *  will be shown.
61  */
62 void welcome_header_pop_msg(void);
63
64 void select_ifaces(void);
65
66 #endif /* __MAIN_WELCOME_H__ */