aboutsummaryrefslogtreecommitdiffstats
path: root/main_statusbar.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2010-11-27 21:50:49 +0000
committerGuy Harris <guy@alum.mit.edu>2010-11-27 21:50:49 +0000
commita4cc25f84d04835a8283176ba4a058b5ac2966e2 (patch)
tree7ffed53d8b537c9a207f28b5438525b428cc21d5 /main_statusbar.h
parent52b99dc1918626e758f4c3ef2566dfb49958db1b (diff)
Move main_statusbar.h to the top-level directory; none of its routines
use GTK+ data types, so, at least in theory, it could be implemented atop another toolkit. Make statusbar_push_temporary_msg() take a format string and format arguments. Use it instead of simple_status(), and change one call to just take a format string and arguments rather than to take the result of using that format string and arguments with g_strdup_printf() and passing the result to statusbar_push_temporary_msg(). svn path=/trunk/; revision=35041
Diffstat (limited to 'main_statusbar.h')
-rw-r--r--main_statusbar.h59
1 files changed, 59 insertions, 0 deletions
diff --git a/main_statusbar.h b/main_statusbar.h
new file mode 100644
index 0000000000..6bf4d7ba7e
--- /dev/null
+++ b/main_statusbar.h
@@ -0,0 +1,59 @@
+/* main_statusbar.h
+ *
+ * $Id$
+ *
+ * Wireshark - Network traffic analyzer
+ * By Gerald Combs <gerald@wireshark.org>
+ * Copyright 1998 Gerald Combs
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __MAIN_STATUSBAR_H__
+#define __MAIN_STATUSBAR_H__
+
+
+void profile_bar_update(void);
+void packets_bar_update(void);
+void status_expert_update(void);
+
+/** Push a message referring to the currently-selected field onto the statusbar.
+ *
+ * @param msg The message
+ */
+void statusbar_push_field_msg(const gchar *msg);
+
+/** Pop a message referring to the currently-selected field off the statusbar.
+ */
+void statusbar_pop_field_msg(void);
+
+/** Push a message referring to the current filter onto the statusbar.
+ *
+ * @param msg The message
+ */
+void statusbar_push_filter_msg(const gchar *msg);
+
+/** Pop a message referring to the current filter off the statusbar.
+ */
+void statusbar_pop_filter_msg(void);
+
+/** Push a formatted temporary message onto the statusbar. The message
+ * is automatically removed at a later interval.
+ *
+ * @param msg_format The format string for the message
+ */
+void statusbar_push_temporary_msg(const gchar *msg_format, ...);
+
+#endif /* __MAIN_STATUSBAR_H__ */