summaryrefslogtreecommitdiff
path: root/ui/gtk/gui_utils.h
AgeCommit message (Collapse)AuthorFilesLines
2016-02-25Add GResource message to configure scriptJoão Valverde1-4/+4
Use more descriptive naming while at it. Change-Id: Ic89562cb9fa2cd5e315992f12ad9e46f2361da0b Reviewed-on: https://code.wireshark.org/review/14057 Petri-Dish: João Valverde <j@v6e.pt> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: João Valverde <j@v6e.pt> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2016-02-16const gpointer -> gconstpointerJoão Valverde1-3/+3
'const gpointer' is the same as 'void *const'. Replace with gconstpointer where straightforward (assuming that was the intent) and use gpointer everywhere else for clarity (that does not change *API* constness contract; it just means a variable is not declared immutable inside the called funtion). Change-Id: Iad2ef13205bfb4ff0056b2bce056353b58942267 Reviewed-on: https://code.wireshark.org/review/13945 Petri-Dish: Anders Broman <a.broman58@gmail.com> Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2015-11-12[GTK] Replace deprecated gdk_pixbuf_new_from_inline()João Valverde1-3/+26
Use GResource instead, if available. Add autotools and cmake compile time checks for build requirements (GIO >= 2.32 and GDK-Pixbuf >= 2.26). Merge all the various static pixbuf csource header files into a single pixbuf-csource.h header with external linkage through use of the tools/make-pixbuf-csource.pl script. Fix inline pixbuf build target for some image paths (broken for GTK in gb4a4de7). Add missing 'expert_ok.png' file to distribution (GTK only). Minor improvements to style/structure of ui/gtk/Makefile.am. Bug: 10750 Change-Id: I031296b666ee8b92730400dfa6f71f9ee4304863 Reviewed-on: https://code.wireshark.org/review/10992 Petri-Dish: Anders Broman <a.broman58@gmail.com> Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2015-01-18Clean up ftype-conversion and dfilter error message string handling.Guy Harris1-3/+2
Have dfilter_compile() take an additional gchar ** argument, pointing to a gchar * item that, on error, gets set to point to a g_malloc()ed error string. That removes one bit of global state from the display filter parser, and doesn't impose a fixed limit on the error message strings. Have fvalue_from_string() and fvalue_from_unparsed() take a gchar ** argument, pointer to a gchar * item, rather than an error-reporting function, and set the gchar * item to point to a g_malloc()ed error string on an error. Allow either gchar ** argument to be null; if the argument is null, no error message is allocated or provided. Change-Id: Ibd36b8aaa9bf4234aa6efa1e7fb95f7037493b4c Reviewed-on: https://code.wireshark.org/review/6608 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-11-14Gtk Utils: fix unknown command tag name 'parm'; did you mean 'param'? ↵Alexis La Goutte1-1/+1
(-Wdocumentation) Change-Id: I89f242bf916d22e0a4a665696ec3fe5ee02b8a1f Reviewed-on: https://code.wireshark.org/review/5283 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-06-19Save the size and position of the expert info dialogChris Maynard1-1/+3
Set initialize position to center on parent bug: 3817 Change-Id: Iad48aa762d892908d50f742606160c8305084f48 Reviewed-on: https://code.wireshark.org/review/2459 Reviewed-by: Balint Reczey <balint@balintreczey.hu> Tested-by: Balint Reczey <balint@balintreczey.hu>
2014-04-14Fix warning when generate documentation (doxygen)Alexis La Goutte1-1/+3
ui/gtk/gui_utils.h:277: Warning: argument 'parent' of command @param is not found in the argument list of pixbuf_to_widget(const guint8 *pb_data) ui/gtk/gui_utils.h:277: Warning: argument 'xpm' of command @param is not found in the argument list of pixbuf_to_widget(const guint8 *pb_data) Change-Id: I9182a6f8c85b69bd8b0bab7e03af441dee31fc1d Reviewed-on: https://code.wireshark.org/review/1136 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-03-04Remove all $Id$ from top of fileAlexis La Goutte1-2/+0
(Using sed : sed -i '/^ \* \$Id\$/,+1 d') Fix manually some typo (in export_object_dicom.c and crc16-plain.c) Change-Id: I4c1ae68d1c4afeace8cb195b53c715cf9e1227a8 Reviewed-on: https://code.wireshark.org/review/497 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2013-10-23Add the ability to collapse subtrees with Shift+Left + additional menu ↵Michael Mann1-0/+7
items. Bug 9008 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9008). Currently this is only for GTK, but allows users to test it to see if its worth adding to Qt (my personal opinion is yes). From Jiří Engelthaler svn path=/trunk/; revision=52790
2013-10-12Have pixbuf_to_widget() use a guint8 * to matchGerald Combs1-1/+1
gdk_pixbuf_new_from_inline(). svn path=/trunk/; revision=52562
2013-04-26Fix a whole bunch of doxygen warnings, mostly typos or renamed parameters.Evan Huus1-1/+1
svn path=/trunk/; revision=49053
2013-03-28Follow up on bug 8416.Jaap Keuter1-1/+1
Remove C++ incompatibilities in GTK+ 3 code. svn path=/trunk/; revision=48606
2013-03-21From beroset:Bill Meier1-2/+2
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-03-20Add frame_new, which creates a frame that best conforms to the GNOME,Gerald Combs1-0/+7
Windows, and OS X HIGs. Use it in the capture options dialog. The capture options dialog is a bit taller now and could probably use a bit more tweaking. In the capture options, conversation, and endpoint dialogs use our best-guess dialog spacing and pad out some areas. svn path=/trunk/; revision=48445
2013-02-26Fix spelling/typos found using a list of commonly misspelled words.Bill Meier1-10/+10
The misspellings were mostly in comments but some were in text strings visible to the user. svn path=/trunk/; revision=47899
2013-01-22GTK+:Gerald Combs1-4/+0
Get rid of user-hostile behavior. In the layout preferences pane 2 & 3 radio buttons overrode the user's selection if a duplicate item was selected. Now we assume that the user knows what he or she is doing and steal duplicate selections from the other panes. Qt: Match the new GTK+ behavior in the layout preferences. Add padding around the layout images. Add toolbar style preferences to the Appearance pane (instead of the layout pane). All: Remove the selection mode and scrollbar placement prefs and mark them obsolete as recently discussed on -dev. Adjust the layout images yet again after more Awful Monitor Testing. svn path=/trunk/; revision=47214
2013-01-10Add ws_gtk_grid_attach(); Update some comments.Bill Meier1-2/+15
svn path=/trunk/; revision=47022
2013-01-05Rename ws_gtk_grid_attach() to ws_gtk_grid_attach_defaults();Bill Meier1-6/+7
Also: fix a typo in a comment in 'gui_utils.h' svn path=/trunk/; revision=46951
2013-01-04Add a wrapper for gdk_cairo_set_source_rgba() in GTK2 and use it in io_stat.cAnders Broman1-0/+8
svn path=/trunk/; revision=46932
2012-12-24Cast away warnings implicit 64-bit-to-32-bit conversions. (We shouldGuy Harris1-1/+1
probably have routines that convert strings to numbers and do range checks, and should also ignore values in the recent and preferences files that are out of range.) Cast a string to "char *" to squelch an otherwise-unavoidable warning about qualifiers being ignored. The media type for raw binary data is application/octet-stream, not application octet_stream. svn path=/trunk/; revision=46727
2012-12-21Wrapper functions and macros to be used to replaceBill Meier1-31/+118
Wireshark Gtk2 GtkTable code with code providing essentially equivalent funtionality on Gtk2 and Gtk3. See gui_utils.h for details. svn path=/trunk/; revision=46654
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-04Use the modal version of the bad display filter alert box in the I/OGuy Harris1-1/+1
statistics window. Get rid of the non-modal version (it's not being used any more), and remove the now-redundant _modal from the modal version. svn path=/trunk/; revision=43081
2012-06-04Do with the open dialog what we've done with the save and "exportGuy Harris1-0/+10
selected packets" dialog. svn path=/trunk/; revision=43074
2012-06-03g_filename_display_basename() returns a g_mallocated string, so itsGuy Harris1-0/+8
callers either need to free it or their callers need to free it or.... This means that cf_get_display_name() must always return a g_mallocated string and its callers or... must free it. For some of those callers, create a new set_window_title() routine to do the work - they're all using the same pattern. svn path=/trunk/; revision=43047
2012-06-03Move routines that handle the main window title bar out ofGuy Harris1-7/+2
ui/gtk/gui_utils.c into ui/gtk/main_titlebar.c, and the declaration of one of them out of ui/ui_util.h into ui/gtk/main_titlebar.h, and rename them to clarify that they work on the window name and titlebar. svn path=/trunk/; revision=43041
2012-04-21port gtk_scrollbar_new() gtk_paned_new() gtk_separator_new() to GTK2Anders Broman1-0/+3
svn path=/trunk/; revision=42186
2012-04-21gtk_button_box_new() for pre GTK 3.0Anders Broman1-0/+3
svn path=/trunk/; revision=42183
2012-04-02Introduce utility function to ease GTK3 depcrecated funktion removal.Anders Broman1-2/+11
svn path=/trunk/; revision=41893
2012-01-18Restructure the recent file code so that recent.c is GUI-independent;Guy Harris1-29/+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/+538
This looses the last checkin to gtk, will add this manually back. svn path=/trunk/; revision=40518