aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk/main_toolbar.c
AgeCommit message (Collapse)AuthorFilesLines
2013-04-12Ifdef LibPcapIrene Rüngeler1-2/+2
svn path=/trunk/; revision=48830
2013-04-12The button are only needed if libpcap is present.Irene Rüngeler1-0/+2
svn path=/trunk/; revision=48829
2013-04-12Change the sensitivity of the start button depending on the number of ↵Irene Rüngeler1-2/+10
interfaces selected. svn path=/trunk/; revision=48827
2013-04-01Add routines to file.c to indicate whether:Guy Harris1-15/+4
a save can be done ("can" in the sense of "there's something to save" and in the sense of "we can write that something out"); a "save as" can be done (in the sense of "we can write what we have out"); there's unsaved data to save (which might be unsaved changes or might be a temporary file full of packets); and use them as appropriate. This means that the "unsaved data" indicator in the UI will be turned on for temporary files full of packets as well as for files with unsaved changes; that's what we want. svn path=/trunk/; revision=48693
2013-03-21From beroset:Bill Meier1-4/+4
remove C++ incompatibilities https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8416 attachment #10404 Note: The following parts of the patch had been previously done: asn1/snmp/packet-snmp-template.c epan/dissectors/packet-snmp.c epan/dissectors/packet-x11.c Also; hostlist_table.c: code under '#ifdef HAVE_GEOIP' didn't compile and needed a few additional patches. svn path=/trunk/; revision=48447
2013-02-25it's ==> its & its ==> it's as needed.Bill Meier1-1/+1
In a few cases: Fix spelling; Clean up whitespace and formatting style. svn path=/trunk/; revision=47889
2012-12-26Fix a bunch of warnings.Guy Harris1-1/+1
Cast away some implicit 64-bit-to-32-bit conversion errors due to use of sizeof. Cast away some implicit 64-bit-to-32-bit conversion errors due to use of strtol() and strtoul(). Change some data types to avoid those implicit conversion warnings. When assigning a constant to a float, make sure the constant isn't a double, by appending "f" to the constant. Constify a bunch of variables, parameters, and return values to eliminate warnings due to strings being given const qualifiers. Cast away those warnings in some cases where an API we don't control forces us to do so. Enable a bunch of additional warnings by default. Note why at least some of the other warnings aren't enabled. randpkt.c and text2pcap.c are used to build programs, so they don't need to be in EXTRA_DIST. If the user specifies --enable-warnings-as-errors, add -Werror *even if the user specified --enable-extra-gcc-flags; assume they know what they're doing and are willing to have the compile fail due to the extra GCC warnings being treated as errors. svn path=/trunk/; revision=46748
2012-12-22The Wireshark file icon makes more sense than a floppy disk[1]. SwitchGerald Combs1-1/+1
back to it and name it "Save" instead of "File". [1] http://www.hanselman.com/blog/TheFloppyDiskMeansSaveAnd14OtherOldPeopleIconsThatDontMakeSenseAnymore.aspx svn path=/trunk/; revision=46696
2012-12-04Replace GTK_STOCK_SAVE with WIRESHARK_STOCK_FILE in a few places,Gerald Combs1-7/+2
including the GTK+ and Qt main toolbars. svn path=/trunk/; revision=46374
2012-09-20We always HAVE_CONFIG_H so don't bother checking whether we have it or not.Jeff Morriss1-2/+0
svn path=/trunk/; revision=45016
2012-09-04- Replace packet_list_recreate_visible_rows -> ↵Jörg Mayer1-1/+1
packet_list_recreate_visible_rows_list - Replace new_packet_list_ -> packet_list_ svn path=/trunk/; revision=44765
2012-09-04Rename new_packet_list.[ch] to packet_list.[ch]Jörg Mayer1-1/+1
svn path=/trunk/; revision=44764
2012-06-28Update Free Software Foundation address.Jakub Zawadzki1-1/+1
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2012-06-26Have the toolbar "Save" button just be a "Save" button, working the sameGuy Harris1-60/+12
as the File -> Save menu item. svn path=/trunk/; revision=43493
2012-06-25Only allow "Save" ifGuy Harris1-1/+14
the file has unsaved changes, and we can save it in some format through Wiretap or the file is a temporary file and has no unsaved changes (so that "saving" it just means copying it). Only allow "Save As" if we can save it in some format through Wiretap or the file is a temporary file and has no unsaved changes (so that "saving" it just means copying it). This means that we don't support using "Save As" for just copying the file unless we can do that with Wiretap; copying the file byte-for-byte only works as "saving" if there are no unsaved changes *and* we're saving it in the same format that it's in *and* we're saving it with the same form of compression (if any) that it has. Rename cf_can_save_as() to cf_can_write_with_wiretap() to better reflect what it really does. svn path=/trunk/; revision=43477
2012-06-14Disable some menu items and toolbar items while we're waiting for aGuy Harris1-0/+18
capture to stop, so that we don't try to quit while we're in the middle of quitting or try to stop or restart the capture we're in the middle of stopping. svn path=/trunk/; revision=43250
2012-06-04Add some more routines to main.c that handle updates to "auto scroll inGuy Harris1-3/+3
live capture" and colorization, so that the ones in main_menubar.c don't have to know about anything other than the main menubar. Move some toolbar routines that should only be used by routines in main.c into a main_toolbar_private.h header. svn path=/trunk/; revision=43053
2012-05-25Use GTK+'s GtkMessageDialog for the questions we ask in the process ofGuy Harris1-1/+2
saving files, and run it modal (which we're already doing with the GtkFileChooserDialog); this means less callback-based state machine stuff, simplifying the code paths a bit. If we're saving a file before closing it, don't bother reloading it after saving it. svn path=/trunk/; revision=42855
2012-05-20Change the "user_saved" member of a capture_file structure toGuy Harris1-24/+33
"unsaved_changes", and have it be TRUE iff changes have been made to the file since it was read - *not* if it's a temporary file from a live capture. Check the "is_tempfile" member, and the "unsaved_changes" member, when appropriate. Just have a set_toolbar_for_capture_file() routine that updates the "save", "close", and "reload" toolbar as appropriate, given a capture_file structure - absorb the function of set_toolbar_for_unsaved_capture_file() into it. svn path=/trunk/; revision=42721
2012-01-30No need to set new save icon if equal to previous icon.Stig Bjørlykke1-8/+10
svn path=/trunk/; revision=40770
2012-01-30Disable the save-as button in the toolbar if we cannot save-as,Stig Bjørlykke1-3/+3
because this will assert. svn path=/trunk/; revision=40769
2012-01-18Restructure the recent file code so that recent.c is GUI-independent;Guy Harris1-1/+2
move it to the top-level source directory for now, and move ui/gtk/recent.h to the ui directory. svn path=/trunk/; revision=40561
2012-01-15Move gtk to ui/gtk.Jörg Mayer1-0/+426
This looses the last checkin to gtk, will add this manually back. svn path=/trunk/; revision=40518