aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/print_dlg.c
AgeCommit message (Collapse)AuthorFilesLines
2012-01-15Move gtk to ui/gtk.Jörg Mayer1-1139/+0
This looses the last checkin to gtk, will add this manually back. svn path=/trunk/; revision=40518
2011-07-29Remove remaining direct access to GTK structs in Windows.Anders Broman1-6/+6
svn path=/trunk/; revision=38251
2011-07-12Fix more tooltips.Anders Broman1-30/+24
svn path=/trunk/; revision=37988
2011-06-28Replace all strerror() with g_strerror().Stig Bjørlykke1-1/+1
Remove our local strerror implementation. Mark strerror as locale unsafe API. This fixes bug 5715. svn path=/trunk/; revision=37812
2011-01-30Don't compile unused non-Windows code when on Windows.Bill Meier1-28/+51
(Found by msvc level 4 warning "unreachable code"). Also: - suppress an invalid msvc level 4 warning by initializing a variable. - Use #ifdef _WIN32 iso #if _WIN32 svn path=/trunk/; revision=35708
2010-11-26Move native Win32 code to its own directory and out of gtk directory ↵Stephen Fisher1-2/+2
(hopefully without breaking any builds) svn path=/trunk/; revision=35032
2010-08-30Remove some unnecessary includes: a lot of things don't need globals.h and ↵Jeff Morriss1-1/+0
register.h svn path=/trunk/; revision=34017
2009-07-01Updates to create_tempfile:Gerald Combs1-3/+3
- Use g_get_tmp_dir, just like get_tempfile_path. - Don't make the caller worry about the path buffer length. svn path=/trunk/; revision=28915
2009-04-21Turn on -Wshorten-64-to-32 by default, and fix some issues that turnedGuy Harris1-1/+1
up (99 44/100% of which were assignments of double-precision floating-point constants to floats). Hopefully this will catch at least some P64 issues on UN*X. svn path=/trunk/; revision=28108
2009-03-09Fix a (very) minor memory leak; include tempfile.h only if _WIN32Bill Meier1-2/+3
svn path=/trunk/; revision=27686
2009-03-09Use "wshprint" (instead of "ethprint") for prefix of temp file name;Bill Meier1-6/+6
Also: add to comment about non-use of tmpnam svn path=/trunk/; revision=27679
2008-06-29Fix some simple cases of GTK2 deprecated API usage by using a renamed or ↵Bill Meier1-20/+20
equivalent API gtk_container_border_width() ==> gtk_container_set_border_width() gtk_container_children() ==> gtk_container_get_children() gtk_entry_new_with_max_length() ==> gtk_entry_new(); gtk_entry_set_max_length() gtk_menu_append() ==> gtk_menu_shell_append() gtk_menu_prepend() ==> gtk_menu_shell_prepend() gtk_notebook_set_page() ==> gtk_notebook_set_current_page() gtk_paned_gutter_size() ==> gtk_paned_set_gutter_size() gtk_radio_button_group() ==> gtk_radio_button_get_group() gtk_signal_connect() ==> g_signal_connect() gtk_signal_disconnect() ==> g_signal_handler_disconnect() gtk_signal_emit_by_name() ==> g_signal_emit_by_name() gtk_signal_handler_block_by_data() ==> g_signal_handlers_block_matched() gtk_signal_handler_block_by_func() ==> g_signal_handlers_block_by_func() gtk_signal_handler_unblock_by_data() ==> g_signal-handlers_unblock_matched() gtk_signal_handler_unblock_by_func() ==> g_signal-handlers_unblock_by_func() gtk_spin_button_get_value_as_float() ==> gtk_spin_button_get_value() gtk_toggle_button_set_state() ==> gtk_toggle_button_set_active() svn path=/trunk/; revision=25634
2008-06-21Removed the usage of topic_available() as we now have all topics.Stig Bjørlykke1-17/+7
svn path=/trunk/; revision=25505
2008-05-22Move the file utility functions from wiretap to libwsutil so thatJeff Morriss1-4/+4
libwireshark (and the plugins using those functions) do not depend on wiretap on Windows. While doing that, rename the eth_* functions to ws_*. svn path=/trunk/; revision=25354
2008-04-13use the ending "_win32" for every windows specific fileUlf Lamping1-2/+2
svn path=/trunk/; revision=24972
2008-04-13sort #includes by directoriesUlf Lamping1-21/+21
svn path=/trunk/; revision=24969
2008-04-12move stock icon code from toolbar.c into specific stock_icons file(s)Ulf Lamping1-1/+1
svn path=/trunk/; revision=24921
2008-04-11Add a cast to fix compilation on Unix.Stephen Fisher1-1/+1
svn path=/trunk/; revision=24919
2008-04-11last round to replace SIGNAL_CONNECT with g_signal_connectUlf Lamping1-17/+17
svn path=/trunk/; revision=24918
2008-04-11replace RADIO_BUTTON_NEW_WITH_MNEMONIC with ↵Ulf Lamping1-9/+9
gtk_radio_button_new_with_mnemonic_from_widget svn path=/trunk/; revision=24908
2008-04-11replace CHECK_BUTTON_NEW_WITH_MNEMONIC with gtk_check_button_new_with_mnemonicUlf Lamping1-5/+5
svn path=/trunk/; revision=24905
2008-04-11replace all appearances of BUTTON_NEW_FROM_STOCK with GTK2's ↵Ulf Lamping1-1/+1
gtk_button_new_from_stock svn path=/trunk/; revision=24904
2008-04-11OBECT_..._DATA --> g_object_..._dataBill Meier1-62/+62
svn path=/trunk/; revision=24892
2008-04-07remove GTK1 codeUlf Lamping1-25/+9
svn path=/trunk/; revision=24823
2008-03-11From Francesco Fondelli (bug 2349):Stig Bjørlykke1-2/+69
Attached is a patch to export packets data as "C Arrays". I often have the need to [re]send data captured with wireshark using a raw/pf_packet socket. Output format is one char[] per packet, it looks like almost the same as the one produced by "Follow TCP stream". svn path=/trunk/; revision=24604
2006-08-30add some file dialog related help pagesUlf Lamping1-3/+17
use file related instead of print related help pages for the export dialogs svn path=/trunk/; revision=19089
2006-07-01bugfix: open the Win32 print dialog a second time resulted in "funny" behaviour Ulf Lamping1-1/+7
printing on Win32 uses the print to file "option", don't overwrite the internal settings while doing so svn path=/trunk/; revision=18631
2006-05-28Ethereal->WiresharkAnders Broman1-2/+2
svn path=/trunk/; revision=18232
2006-05-22Get rid of a bunch of "Ethereal"s and "ethereal"s in comments, GUIGuy Harris1-7/+7
strings, and function names. svn path=/trunk/; revision=18205
2006-05-21name changeRonnie Sahlberg1-2/+2
svn path=/trunk/; revision=18197
2006-04-30Move the file selection dialog routines to file_dlg.c, and give it aGuy Harris1-0/+1
header file. #if 0 out some includes; if none of the builds have a problem with that, I'll remove them. svn path=/trunk/; revision=18036
2006-04-29Most of the stuff in file_dlg.c is specific to capture files, so renameGuy Harris1-1/+1
it to capture_file_dlg.c, and rename its header file. We might want to move the generic file dialog stuff to a file_dlg.c file (it's currently in dlg_utils.c), and move the non-capture-file dialog stuff in capture_file_dlg.c to another file. svn path=/trunk/; revision=18034
2006-02-13add missing #include "tempfile.h"Ulf Lamping1-0/+1
svn path=/trunk/; revision=17289
2006-02-13Copy over the file open/save code from the Win32 native branch.Gerald Combs1-8/+39
The Windows-native routines were integrated by inserting #if GTK_MAJOR_VERSION >= 2 && _WIN32 win32_native_routine(GDK_WINDOW_HWND(top_level->window)); return; #endif at the beginning of each GTK+ file routine. There's probably a prettier way to do this. Some of the sizes need to be tweaked in win32-file-dlg.rc, but everything seems to work. Fix up whitespace. svn path=/trunk/; revision=17285
2005-11-26fix #358: instead of simply using tpmnam() for the Win32 print function, use ↵Ulf Lamping1-2/+18
the "official" function to create a temporary file Well, we actually only need the filename here, so create a temp file with the "official" create_tempfile function, keep that tempfile name and then delete this file again, leaving only the name. I know that's a bit uncommon, but should work and uses the same mechanisms as with other temporary files. So if there are still problems with the official function, we only have one place to fix :-) svn path=/trunk/; revision=16597
2005-11-06replace *a lot* of file related calls by their GLib counterparts. This is ↵Ulf Lamping1-2/+2
necessary for the switch to GTK 2.6 (at least on WIN32). to do this, I've added file_util.h to wiretap (would file_compat.h be a better name?), and provide compat_macros like eth_open() instead of open(). While at it, move other file related things there, like #include <io.h>, definition of O_BINARY and alike, so it's all in one place. deleted related things from config.h.win32 As of these massive changes, I'm almost certain that this will break the Unix build. I'll keep an eye on the buildbot so hopefully everything is working again soon. svn path=/trunk/; revision=16403
2005-08-20- Declare some functions staticJörg Mayer1-1/+1
- Add plugins_dlg.h - Include .h files in their respective .c files - Include .h and remove extern declarations in .c files - set eol-style and keywords on gui_utils.[hc] svn path=/trunk/; revision=15471
2005-08-20renamed ui_util.c/.h to gui_utils.c/.h to prevent confusion with identical ↵Ulf Lamping1-1/+1
named ui_util.h in / dir svn path=/trunk/; revision=15465
2005-08-05More char -> const char warning fixes.Jörg Mayer1-2/+2
Removed (very few) casts that only change the warning message but don't remove it (with gcc-4). svn path=/trunk/; revision=15227
2005-03-11from Stefano Pettini: add CSV export function, similar to PSML exportUlf Lamping1-2/+62
svn path=/trunk/; revision=13724
2005-02-04Instead of having a single enumerated type for status return values fromGuy Harris1-9/+9
cf_ functions, have separate ones for different classes of routines, and use gboolean when the return value is just "success" or "failure" - that way you don't get compiler warnings if a case statement isn't handling a particular status value if the routine in question won't return it. svn path=/trunk/; revision=13293
2005-02-04huge cleanup of capture file API (functions in file.c/file.h).Ulf Lamping1-7/+7
This includes: all functions in file.h now have a cf_ prefix, will have doxygen tags, will have the capture_file *cf as the first parameter and I tried to generalize the return values for non trivial functions. Hopefully, I didn't introduced any new bugs, as I had to change a lot of files... svn path=/trunk/; revision=13289
2005-01-24if context menu item "Print" is clicked from the packet list context menu, ↵Ulf Lamping1-2/+17
it should use the selected range setting as default. As we currently have only one packet selectable, this will print only this one. If we would allow selecting multiple packets in the packet list in the future, this option would print all selected packets. svn path=/trunk/; revision=13169
2005-01-20add some more online help functionality and help buttons at various dialog ↵Ulf Lamping1-2/+12
boxes, if a help page *is* available. However, the new help system needs a lot more work before completed. svn path=/trunk/; revision=13152
2004-12-22From Brett Kuskie: recalculate the ranges every time an export dialog isGuy Harris1-15/+15
opened, not just the first time, so that if the packet counts change up-to-date values are displayed. svn path=/trunk/; revision=12813
2004-10-16Remove the fixed maximum number of subranges in a range_t; dynamicallyGuy Harris1-0/+8
allocate them to be large enough. Add checks that the numbers in the range fit in a guint32. Check the validity of a range before saving or printing, and report errors in an alert box. Clean up white space. svn path=/trunk/; revision=12320
2004-09-30For file browsing dialog boxes, the affirmative button should be "OK",Guy Harris1-1/+2
not "Save". In UN*X with GTK+ 2.x, put the affirmative button in file dialogs to the right of the cancel button, as is done with other dialogs. svn path=/trunk/; revision=12146
2004-09-27Move prefs.c and prefs.h into the epan subdirectory.Guy Harris1-1/+1
svn path=/trunk/; revision=12115
2004-07-27Move the code to open the printer/print file from "print_packets()" toGuy Harris1-1/+40
"print_ok_cb()", and have "print_packets()" just work on a "print_stream_t" handed to it, so that different platforms can open the printer/print file in different ways (opening the file is probably not going to be platform-dependent, but opening the printer will be). svn path=/trunk/; revision=11544
2004-07-18Set the svn:eol-style property on all text files to "native", so thatGuy Harris1-1/+1
they have LF at the end of the line on UN*X and CR/LF on Windows; hopefully this means that if a CR/LF version is checked in on Windows, the CRs will be stripped so that they show up only when checked out on Windows, not on UN*X. svn path=/trunk/; revision=11400