aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/range_utils.h
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2004-04-22 21:31:09 +0000
committerUlf Lamping <ulf.lamping@web.de>2004-04-22 21:31:09 +0000
commit3b86a98d539adc668771db420b49bacd8c11c205 (patch)
treecd68f711934e423f9fb998b04dfe81392bf65e5e /gtk/range_utils.h
parentaae50cae26c8402e60cfaed09c63b5a2d5247a93 (diff)
seperated common packet range code from the save and the print dialog,
and put it into new range_utils files. This will avoid: a) duplicate code in save and print dialog and b) yet another code duplication for future dialogs (export, ...) svn path=/trunk/; revision=10665
Diffstat (limited to 'gtk/range_utils.h')
-rw-r--r--gtk/range_utils.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/gtk/range_utils.h b/gtk/range_utils.h
new file mode 100644
index 0000000000..75a1e2c6da
--- /dev/null
+++ b/gtk/range_utils.h
@@ -0,0 +1,46 @@
+/* range_utils.h
+ * Declarations of utilities to with range_utils.c (packet range dialog)
+ *
+ * $Id: range_utils.h,v 1.1 2004/04/22 21:29:34 ulfl Exp $
+ *
+ * Ulf Lamping <ulf.lamping@web.de>
+ *
+ * Ethereal - Network traffic analyzer
+ * By Gerald Combs <gerald@ethereal.com>
+ * 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 __RANGE_UTILS_H__
+#define __RANGE_UTILS_H__
+
+/* create a new range "widget" */
+extern GtkWidget *range_new(packet_range_t *range
+#if GTK_MAJOR_VERSION < 2
+, GtkAccelGroup *accel_group
+#endif
+);
+
+/* update all "dynamic" things */
+extern void range_update_dynamics(gpointer data);
+
+/* set the "Process only marked packets" toggle button as appropriate */
+extern void range_set_marked_sensitive(gpointer data, gboolean marked_valid);
+
+/* set the "displayed" button as appropriate */
+extern void range_set_displayed_sensitive(gpointer data, gboolean displayed_valid);
+
+#endif