1999-09-09 04:25:49 +00:00
|
|
|
/* print_prefs.h
|
|
|
|
* Definitions for print preferences window
|
|
|
|
*
|
2004-07-18 00:24:25 +00:00
|
|
|
* $Id$
|
1999-09-09 04:25:49 +00:00
|
|
|
*
|
2006-05-21 05:12:17 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
2008-01-08 22:54:51 +00:00
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
1999-09-09 04:25:49 +00:00
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
2002-08-28 21:04:11 +00:00
|
|
|
*
|
1999-09-09 04:25:49 +00:00
|
|
|
* 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.
|
2002-08-28 21:04:11 +00:00
|
|
|
*
|
1999-09-09 04:25:49 +00:00
|
|
|
* 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.
|
2002-08-28 21:04:11 +00:00
|
|
|
*
|
1999-09-09 04:25:49 +00:00
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
2000-08-11 13:37:21 +00:00
|
|
|
#ifndef __PRINT_PREFS_H__
|
|
|
|
#define __PRINT_PREFS_H__
|
1999-09-01 03:04:24 +00:00
|
|
|
|
2004-06-02 18:44:10 +00:00
|
|
|
/** @file
|
2004-06-02 20:14:51 +00:00
|
|
|
* "Print" preferences page.
|
2004-06-04 20:05:31 +00:00
|
|
|
* @ingroup prefs_group
|
2004-06-02 18:44:10 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/** Build a Print preferences page.
|
|
|
|
*
|
|
|
|
* @return the new preferences page
|
|
|
|
*/
|
We need to catch a "window delete" event for the preferences dialog box
- that event happens if, say, you nuke the dialog box from a window
manager - and call "delete" routines for each of the preferences tabs,
so that, for preferences tabs that include list widgets, we can set a
flag on the preferences tab widget telling the selection callback for
the list widget that the buttons it would normally set the sensitivity
of, based on whether any row in the list is selected or not, have Joined
the Choir Invisible, and therefore that we shouldn't change their
sensitivity because GTK+ will whine at us if we do, just as is the case
if we press the "OK" or "Cancel" button (which also cause the window to
go away).
Can we just do this in the "window delete" handler? I.e., does that get
called if we explicitly destroy the widget? Or should we catch a
"destroy" event instead?
(There must be a better way to do this....)
svn path=/trunk/; revision=647
1999-09-10 06:53:32 +00:00
|
|
|
GtkWidget *printer_prefs_show(void);
|
2004-06-02 18:44:10 +00:00
|
|
|
|
|
|
|
/** Fetch preference values from page.
|
|
|
|
*
|
|
|
|
* @param widget widget from printer_prefs_show()
|
|
|
|
*/
|
|
|
|
void printer_prefs_fetch(GtkWidget *widget);
|
|
|
|
|
|
|
|
/** Apply preference values from page.
|
|
|
|
*
|
|
|
|
* @param widget widget from printer_prefs_show()
|
|
|
|
*/
|
|
|
|
void printer_prefs_apply(GtkWidget *widget);
|
|
|
|
|
|
|
|
/** Destroy preference values from page.
|
|
|
|
*
|
|
|
|
* @param widget widget from printer_prefs_show()
|
|
|
|
*/
|
|
|
|
void printer_prefs_destroy(GtkWidget *widget);
|
2000-08-11 13:37:21 +00:00
|
|
|
|
|
|
|
#endif
|