aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/ui_util.c
AgeCommit message (Collapse)AuthorFilesLines
2005-02-07Make Ethereal and Tethereal compile if we're building without libpcap.Guy Harris1-2/+2
svn path=/trunk/; revision=13346
2005-01-01Cast away the constness of the geom_name argument toGuy Harris1-2/+2
"window_new_with_geom()" - there's no way to tell the compiler that we're not going to be modifying it, but we aren't. The right way to check whether a pointer is null and get a Boolean is to test it against null, not to cast it to a Boolean type - as Boolean types in C89/C90, at least, are just integral types, that cast might just throw away the upper 32 bits; that probably yields the results you want, but the compiler might well justifiably warn about that on an LP64 platform. svn path=/trunk/; revision=12918
2004-12-02From Nathan Jennings: add a preference that supplies a prefix for windowGuy Harris1-2/+25
titles. svn path=/trunk/; revision=12657
2004-09-27Move prefs.c and prefs.h into the epan subdirectory.Guy Harris1-1/+1
svn path=/trunk/; revision=12115
2004-09-15get GDK window geometry only, if widget is visibleUlf Lamping1-1/+1
svn path=/trunk/; revision=11994
2004-09-11Use _WIN32 rather than WIN32 to determine if we're compiling on Win32;Guy Harris1-1/+1
according to Gisle Vanem, WIN32 isn't a built-in in MSVC, but _WIN32 is. svn path=/trunk/; revision=11972
2004-09-08Try to get the window geometry only, if a GdkWindow really exists for that ↵Ulf Lamping1-7/+11
GtkWidget (e.g. the widget isn't hidden) svn path=/trunk/; revision=11944
2004-09-02Add support for copying hex data to the clipboard. Submitted by Thomas Richard Sharpe1-0/+21
Palmer. What we really should do is add this to the Edit menu as well. svn path=/trunk/; revision=11883
2004-07-27place new windows (by calling window_new() with default placement (instead ↵Ulf Lamping1-1/+7
of placing it at the current mouse position). svn path=/trunk/; revision=11542
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
2004-07-07Get rid of the splash screen's title bar on GTK+ 1.2[.x] as well.Guy Harris1-1/+32
svn path=/trunk/; revision=11329
2004-07-04added a splash screen while Ethereal is startedUlf Lamping1-6/+13
svn path=/trunk/; revision=11310
2004-05-30save window position/size/maximized state into recent fileUlf Lamping1-60/+155
(only help dialog for now) svn path=/trunk/; revision=11032
2004-05-26more code cleanup from dialog things:Ulf Lamping1-9/+40
changed window_xy (dialog) function calling in a lot of gtk files cleanup of file selection code cleanup in dlg_utils/file_dlg/ui_util Please report any problems!!! svn path=/trunk/; revision=11003
2004-05-24Include <string.h> to declare "strlen()".Guy Harris1-1/+3
svn path=/trunk/; revision=10985
2004-05-23next step to save the size and postition of the dialogs (using a hashtable)Ulf Lamping1-20/+265
move the get/set window size functionality from main to ui_util, add some functions to handle windows/dialogs. changed help and about dialog to suit the current window API svn path=/trunk/; revision=10974
2004-05-21code cleanup (e.g. removed unused function parameters),Ulf Lamping1-4/+4
added new about page, showing the authors file (but still commented out) svn path=/trunk/; revision=10942
2004-05-20simple_list_new(): hide title row, if titles == NULLUlf Lamping1-4/+8
svn path=/trunk/; revision=10932
2004-05-20as it's difficult to create a list widget for both supported GTK versions,Ulf Lamping1-1/+86
I've started to implement a simple list to hide the complexity svn path=/trunk/; revision=10929
2004-05-02move function xpm_to_widget() from layout_prefs to ui_util,Ulf Lamping1-1/+23
as this can be useful not only in layout_prefs svn path=/trunk/; revision=10768
2004-02-13Add a "window_new()" routine that creates a window of a given type, setsGuy Harris1-63/+76
the title, and arranges to set the icon for it. Use that instead of "gtk_window_new()" and separate calls to set the title and arrange to set the icon. Regularize #includes a bit. Clean up white space. svn path=/trunk/; revision=10054
2004-02-06replaced every appearance of gtk_scrolled_window_new() withUlf Lamping1-1/+4
scrolled_window_new(). added gtk_scrolled_window_set_policy(AUTOMATIC,AUTOMATIC) to scrolled_window_new() added GTK2's gtk_scrolled_window_set_shadow(GTK_SHADOW_IN) to every place needed svn path=/trunk/; revision=9999
2004-01-30slightly higher polling rate, to detect stop condition from capture taskUlf Lamping1-3/+3
svn path=/trunk/; revision=9909
2004-01-22We can't save "child_process" as a HANDLE on UNIX - save it as an "int",Guy Harris1-4/+5
and cast it in the "GetExitCodeProcess()" call (rather than converting it when assigning it). svn path=/trunk/; revision=9784
2004-01-22moved GTK specific parts from capture.c to ui_util.c,Ulf Lamping1-1/+149
implemented Win32 "Capture Stop" when using "update list of packets in realtime" while capturing svn path=/trunk/; revision=9777
2002-11-11Use gtk1/gtk2 compatibility macros to reduce #ifdefs.Olivier Abad1-15/+5
svn path=/trunk/; revision=6610
2002-11-03Merge gtk and gtk2 directories.Olivier Abad1-34/+61
svn path=/trunk/; revision=6552
2002-09-21Removed all gtk calls in file.c :Olivier Abad1-1/+2
- created a few packet_list_xxx functions (ui_util.h gtk/packet_list.c gtk2/packet_list.c) ; - removed almost all "gtk/xxx" and "gtk2/xxx" includes in file.c The only remaining includes are related to color filters. We have to make color_filter_t GUI independent by replacing GdkColor with color_t. I'll work on this later. svn path=/trunk/; revision=6311
2002-09-05Include cleanups in gtk and gtk2:Jörg Mayer1-3/+1
Remove unneded includes Add include wrappers where missing svn path=/trunk/; revision=6191
2002-08-28Removed trailing whitespaces from .h and .c files using theJörg Mayer1-7/+7
winapi_cleanup tool written by Patrik Stridvall for the wine project. svn path=/trunk/; revision=6117
2002-03-05From Joerg Mayer: use _U_ to flag unused arguments.Guy Harris1-6/+6
svn path=/trunk/; revision=4878
2002-01-11Have a routine to create a scrolled window, set its vertical scrollbarGuy Harris1-43/+47
preference, and add it to the list of scrolled windows; call that routine to create scrolled windows, rather than creating it and calling other routines to do the other two operations. As "set_scrollbar_placement_all()" and "set_ctree_styles_all()" always set the styles to match the user's preference, don't have them take an argument, have them just use the user's preference settings. Get rid of unnecessary includes of "prefs_dlg.h", replacing them with includes of "prefs.h" if necessary. Don't have "prefs_dlg.h" include "prefs.h" - its sole purpose is to declare routines defined in "prefs_dlg.c" - and add any additional includes of "prefs.h" this requires. Get rid of unnecessary includes of "prefs.h" and "gtkglobals.h". Fix up white space. svn path=/trunk/; revision=4521
2002-01-11Have routines to create GtkCTrees, set their line and expander styleGuy Harris1-3/+145
based on the user's UI preferences, and add them to a list of GtkCTrees. Use those routines to create all GtkCTrees. Have a routine to update the preferences for all of those GtkCTrees. Call that routine whenever the preferences change. Label the line and expander style preferences as "Tree line style" and "Tree expander style", as they no longer apply only to protocol trees. Move the routines to maintain a list of scrolled windows, and to update scrollbar placement for scrolled windows, to "ui_util.c". svn path=/trunk/; revision=4520
2001-12-13Fix up the comment on "set_main_window_name()" (I'm not sure why I putGuy Harris1-15/+51
that note in about KWM, unless I was noting that the title bar entry for a window has the window title rather than the icon title, but, as we're setting both, I'm not sure it's relevant), and change the name of its argument, as it's used to set both the window and icon titles. Add some more information to the comments for "reactivate_window()" and "window_icon_realize_cb()". svn path=/trunk/; revision=4394
2001-12-12Go nuts with the 3D logo.Gerald Combs1-1/+32
Add a routine to ui_util.c that sets a window's icon pixmap to a 16x16 version of the 3D logo. Call the routine for each window that is created. This has been tested with kwm and Sawfish (which expect a 16x16 icon), but we may have to come up with a better solution for other window managers (e.g. olwm and mwm). Add a 3D exclamation point image. Replace the exclamation point and Ethereal logo images used in simple_dialog() with their 3D counterparts. Remove the old icons from the source distribution. svn path=/trunk/; revision=4390
2001-03-24"reactivate_window()" is used only by stuff in the "gtk" directory, andGuy Harris1-1/+2
has an API that depends on GTK+. "set_main_window_name()" is UI-toolkit-independent. Declare the former in a new "gtk/ui_util.h" file, rather than in "ui_util.h"; this helps separate UI-toolkit-independent stuff from UI-toolkit-dependent stuff. svn path=/trunk/; revision=3181
2000-01-03Take the "simple_dialog()" stuff out of "ui_util.h" and "gtk/ui_util.c",Guy Harris1-135/+1
and move it to "simple_dialog.h" and "gtk/simple_dialog.c". svn path=/trunk/; revision=1414
1999-12-20Move the code to raise a window into a "reactivate_window()" routine,Guy Harris1-16/+19
and have that routine also de-iconify the window. svn path=/trunk/; revision=1365
1999-12-09Move the GTK+ implementations of various UI utilities out of "util.c"Guy Harris1-0/+198
into "gtk/ui_util.c", and move the declarations of those UI utilities out of "util.h" into "ui_util.h". (The header file is in the top-level directory, rather than the "gtk" directory, because it declares window-system-independent interfaces to routines with window-system-dependent implementations.) Add to "gtk/ui_util.c" a routine to set the window and icon title. Use that routine to make the title of an Ethereal top-level window be {filename} - Ethereal if there's a capture open, and have "{filename}" be "<capture>" if it's a temporary capture file. svn path=/trunk/; revision=1255