aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/gui_utils.c
AgeCommit message (Collapse)AuthorFilesLines
2010-10-12Define some fcns & vars as static;Bill Meier1-1/+1
Rename g_capture_in_progress to gbl_capture_in_progress (capture_if_dlg.c) Do some whitespace cleanup. svn path=/trunk/; revision=34490
2010-09-27Format changes from r34265 to fit a 80 column wide window.Stephen Fisher1-6/+9
svn path=/trunk/; revision=34268
2010-09-27Fix bug #553 by ensuring that the upper-left corner of Wireshark is within ↵Stephen Fisher1-0/+22
the viewable area of the monitor. svn path=/trunk/; revision=34265
2010-08-29Doxygen changes.Anders Broman1-1/+1
svn path=/trunk/; revision=33991
2010-08-20Don't leak the memory used by the original title when we're appending the ↵Jeff Morriss1-3/+5
version to it. svn path=/trunk/; revision=33864
2010-08-08Don't set the icon name:Guy Harris1-14/+12
1) the GTK+ documentation recommends against it; 2) the X11 implementation of gtk_window_set_title() sets the icon name to the title, so gdk_window_set_icon_name() doesn't do anything interesting, and the Win32 and Quartz implementations of gdk_window_set_icon_name() don't do anything; 3) gdk_window_set_icon_name() either crashes or complains if it's handed a null pointer, which happens at startup. Clean up indentation. svn path=/trunk/; revision=33739
2010-08-07From Cal Turney:Anders Broman1-13/+26
Optionally display Wireshark version in the main window's title bar. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5040 svn path=/trunk/; revision=33729
2010-07-30(Minor) Cleanup some "event callback" function declarations/definitions:Bill Meier1-3/+3
- Add missing 'user_data' arg as needed; - Use gboolean rather than int as the type of the value returned. Also: Cleanup whitespace & reformat long lines in a few cases. svn path=/trunk/; revision=33679
2010-07-28(Trivial) Fix some typos; Also: Use consistent indentation.Bill Meier1-359/+359
svn path=/trunk/; revision=33647
2010-07-20Add ws_combo_box_new_text_and_pointer_full() to allow returningBill Meier1-2/+34
the cell renderer associated with the ComboBox. svn path=/trunk/; revision=33591
2010-07-15Change ws_combo_box... to use a tree-store instead of a list-store;Bill Meier1-30/+53
This allows the dispay of the ws_combo_box choices as a tree. Also: Rename ws_combo_box_append_text_and_pointer_with_sensitivity() to ws_combo_box_append_text_and_pointer_full(). svn path=/trunk/; revision=33538
2010-07-13ws_combo_box_text_and_pointer: allow setting entries as "insensitive".Bill Meier1-10/+39
svn path=/trunk/; revision=33494
2010-06-06From Jim Young:Anders Broman1-1/+0
Remove unneeded "gtk_tree_path_free(path);" from case "GDK_Return:" in tree_view_key_pressed_cb() that was reverted in r32957 to restore X11 functionality lost in refactored code from r32323. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4847 svn path=/trunk/; revision=33112
2010-05-25r32323 broke packet detail tree expansion using the left/right keys onGerald Combs1-4/+18
X11. Add back the removed code and add checks for expandable items. svn path=/trunk/; revision=32957
2010-05-20Fix for bug 4778:Jaap Keuter1-0/+3
Check that the widget pointer is still present. svn path=/trunk/; revision=32911
2010-05-11Replace deprecated gtk_input_add_full()Anders Broman1-12/+19
svn path=/trunk/; revision=32750
2010-04-30Replace GtkClist in uat_gui.c with GtkTreeView+GtkListStore. Pop up theGerald Combs1-0/+67
edit window when an item is double-clicked. Add a couple of convenience routines to gui_utils.c. svn path=/trunk/; revision=32621
2010-03-28From Jim Young:Anders Broman1-15/+39
patch to gui_utils.c to allow the new packetlist to respond to left/right keystrokes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4614 svn path=/trunk/; revision=32323
2010-02-24Update (slightly) the description of ws_combo_box_clear_text_and_pointer().Bill Meier1-0/+2
svn path=/trunk/; revision=31971
2010-02-22Add ws_combo_box_new_text_and_pointer() and related which provides aBill Meier1-0/+119
variant of gtk_combo_box which stores a pointer along as well as text for each combo_box entry. svn path=/trunk/; revision=31947
2009-12-01Fix a comment.Guy Harris1-1/+1
svn path=/trunk/; revision=31146
2009-12-01Use pango_font_description_get_size() to pad out the default columnGerald Combs1-5/+3
size. This may require tweaking, e.g. with pango_font_description_set_absolute_size(). svn path=/trunk/; revision=31145
2009-12-01Clean up indentation a bit more.Guy Harris1-21/+21
svn path=/trunk/; revision=31139
2009-12-01Squelch LLP64 warning.Guy Harris1-106/+104
Clean up indentation somewhat. svn path=/trunk/; revision=31138
2009-11-30Add a character's spacing when resizing columns.Anders Broman1-2/+6
svn path=/trunk/; revision=31134
2009-11-04Add a convenience routine to convert pixbuf data generated byGerald Combs1-0/+9
gdk-pixbuf-csource to a GtkImage. Use it to load the expert indicator images. Add prettier indicator images. The "chat" indicator is more blue in order to differentiate it from the "none" indicator; make the chat text background more blue to match. svn path=/trunk/; revision=30825
2009-10-09From Didier Gautheron:Anders Broman1-2/+3
- memory leak, free the list after walking it, ie free a NULL list, ie free nothing. I've only fixed bugs introduced by me with GTKCList to TreeView modifs, it seems there's the same bug in gtk/dlg_utils.c. svn path=/trunk/; revision=30421
2009-10-09From Didier Gautheron:Anders Broman1-0/+66
- Display number with a space as thousand separator. - Move functions use both by conversations and hostlist in gui_utils.c, they may be useful for other taps too. svn path=/trunk/; revision=30416
2009-09-13From Didier Gautheron:Anders Broman1-5/+9
optimizations patch http://wiki.wireshark.org/Development/Optimization 'patch.29854.diff.gz" Speed up sorting. svn path=/trunk/; revision=29879
2009-08-27make the columns sortable.Anders Broman1-0/+25
svn path=/trunk/; revision=29583
2009-08-27Don't copy const strings, store the pointer in the list store instead,Anders Broman1-1/+24
saves memory. svn path=/trunk/; revision=29582
2009-07-31Include packet_info.h before ui_utils.h since we just started passing aStephen Fisher1-0/+1
packet_info structure to one of the functions. svn path=/trunk/; revision=29251
2009-05-22gtk_exit() is deprecated; "use the standard exit() function instead"Bill Meier1-1/+1
svn path=/trunk/; revision=28444
2009-03-16Get rid of Clists, move a comment, move display as hex to gui_utils.Anders Broman1-0/+26
svn path=/trunk/; revision=27741
2009-03-13From Jakub Zawadzki (bug 3331):Stig Bjørlykke1-2/+1
g_free() is NULL safe, so we don't need check against it. svn path=/trunk/; revision=27718
2009-03-08Remove a unused g_strdup().Stig Bjørlykke1-1/+1
svn path=/trunk/; revision=27666
2009-03-06Get rid of a Clist and move the functon to display floats with two decimals ↵Anders Broman1-0/+35
to gui_utils. svn path=/trunk/; revision=27621
2009-02-22Free path fetched from gtk_tree_model_get_path with gtk_tree_path_free()Stig Bjørlykke1-0/+6
svn path=/trunk/; revision=27516
2008-10-24Windows build: #include winsock2.h only when needed.Bill Meier1-0/+3
#include winsock2.h pulls in about 90 distinct .h files and about 140 total .h files. Currently winsock2.h is (mostly unnecessarily) included for each dissector via packet.h/wtap.h. This patch removes #include winsock2.h from wtap.h and then includes winsock2.h (or windows.h) in the few specific places required. With this patch, my Windows Wireshark build takes about 30% less time. svn path=/trunk/; revision=26535
2008-10-23Set a title on the splash window even though it's not decorated.Jaap Keuter1-2/+2
This sets the title/icon of the taskbar item created when the splash screen is up. svn path=/trunk/; revision=26533
2008-07-08Fix some simple cases of GTK2 deprecated API usage by using a renamed or ↵Bill Meier1-4/+4
equivalent API gtk_timeout_add() ==> g_timeout_add gtk_timeout_remove() ==> g_source_remove() Also: timer callback should return gboolean (not void or gint) svn path=/trunk/; revision=25672
2008-05-22Move the file utility functions from wiretap to libwsutil so thatJeff Morriss1-1/+1
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-13Allow the folders in the About Wireshark/Folders list to be double clicked ↵Graeme Lunt1-0/+31
on to open the appropriate folder in explorer. The MIB/PIB paths have been split up to allow each one to be clicked on separately, but as a result this will lose the order if the whole list is reordered. XXX: I have been unable to test this on MacOS or Linux. Stig? :-) I suppose it should work, but we may need to make it WIN32 specific? svn path=/trunk/; revision=24995
2008-04-13sort #includes by directoriesUlf Lamping1-10/+5
svn path=/trunk/; revision=24968
2008-04-12where it's not necessary, remove #include "compat_macros.h"Ulf Lamping1-1/+0
svn path=/trunk/; revision=24922
2008-04-11last round to replace SIGNAL_CONNECT with g_signal_connectUlf Lamping1-6/+6
svn path=/trunk/; revision=24918
2008-04-11third round to replace SIGNAL_CONNECT with g_signal_connectUlf Lamping1-6/+6
svn path=/trunk/; revision=24914
2008-04-11replace WIDGET_SET_SIZE with gtk_widget_set_size_requestUlf Lamping1-1/+1
svn path=/trunk/; revision=24910
2008-04-11OBJECT_..._DATA --> g_object_..._dataBill Meier1-6/+6
svn path=/trunk/; revision=24895
2008-04-09Remove:Anders Broman1-4/+0
#ifdef NEED_G_ASCII_STRCASECMP_H #include "g_ascii_strcasecmp.h" #endif svn path=/trunk/; revision=24868