aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/simple_dialog.c
AgeCommit message (Collapse)AuthorFilesLines
2009-11-04Add the ability to push temporary (and highlighted) messages onto theGerald Combs1-0/+20
statusbar. This lets us notify the user about something significant without having to pop up an annoying window. Replace a few dialogs with statusbar messages. svn path=/trunk/; revision=30810
2009-09-14Change gtk_pixmap_new() to gtk_image_new_from_pixmap().Anders Broman1-1/+1
svn path=/trunk/; revision=29900
2009-06-08(Trivial) Remove an obsolete comment related to GTK 1Bill Meier1-1/+0
svn path=/trunk/; revision=28661
2009-05-27Change button label to "Quit without Saving" from "Continue without Saving" Balint Reczey1-0/+9
when exiting Wireshark and having an open, not yet saved capture file. This fixes bug 1427. svn path=/trunk/; revision=28502
2009-04-21Turn on -Wshorten-64-to-32 by default, and fix some issues that turnedGuy Harris1-2/+2
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
2008-06-29Fix some simple cases of GTK2 deprecated API usage by using a renamed or ↵Bill Meier1-2/+2
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-04-13sort #includes by directoriesUlf Lamping1-7/+8
svn path=/trunk/; revision=24969
2008-04-12compat_macros.h is gone now!!!Ulf Lamping1-3/+2
all GTK1 compatibility code was removed, so this file can simply be dropped svn path=/trunk/; revision=24923
2008-04-12move stock icon code from toolbar.c into specific stock_icons file(s)Ulf Lamping1-0/+1
svn path=/trunk/; revision=24921
2008-04-11last round to replace SIGNAL_CONNECT with g_signal_connectUlf Lamping1-6/+6
svn path=/trunk/; revision=24918
2008-04-11OBECT_..._DATA --> g_object_..._dataBill Meier1-23/+23
svn path=/trunk/; revision=24893
2008-04-07remove GTK1 codeUlf Lamping1-21/+1
svn path=/trunk/; revision=24824
2007-04-24if we compile for gtk1 'text' is no longer referenced in the ↵Ronnie Sahlberg1-1/+1
simple_dialog_check_set() function and a warning arises mark the text argument as _U_ to suppress the warning svn path=/trunk/; revision=21549
2007-03-01Wrap long lines in simple dialogs so that the dialog and its messageStephen Fisher1-0/+1
won't ever extend off the screen. svn path=/trunk/; revision=20953
2007-02-27From Floren Drouin:Anders Broman1-0/+2
This patch add a test on the GTK version to avoid a warning with the "gtk-label-select-on-focus" configuration parameter, introduced in GTK-2.9.0. svn path=/trunk/; revision=20936
2007-01-20Recent versions of GTK+ have added a "gtk-label-select-on-focus"Gerald Combs1-7/+11
property, which selects the entire contents of a label when it comes into focus. This property annoyingly defaults to TRUE, which meant that the labels in simple dialogs and the about box would unexpectedly show up selected. Work around this by setting the focus on the "OK" button in the about dialog and the first button specified in simple dialogs. svn path=/trunk/; revision=20507
2006-10-31From Giorgio Tino: Add a "Don't show this message again" option to an Gerald Combs1-3/+3
AirPcap warning dialog. Fix a callback bug in simple_dialog.c. svn path=/trunk/; revision=19747
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-2/+2
strings, and function names. svn path=/trunk/; revision=18205
2006-05-21name changeRonnie Sahlberg1-2/+2
svn path=/trunk/; revision=18197
2005-09-20enhance simple dialog: add the possibility to use no buttons at all and add ↵Ulf Lamping1-3/+22
a stop icon (similar to the splash_window, but with a slightly different layout and a way to choose the icon shown) svn path=/trunk/; revision=15886
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-08fix some MSVC const warningsUlf Lamping1-2/+2
svn path=/trunk/; revision=15263
2005-04-16temporarily fix a GTK1.x related bugUlf Lamping1-0/+3
svn path=/trunk/; revision=14108
2005-04-16prepare for "Don't show this message again" checkboxes in the simple_dialogUlf Lamping1-2/+29
svn path=/trunk/; revision=14100
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-13From Daniel Thompson: add additional message/alert box options toGuy Harris1-2/+16
display "Save", "Continue without Saving", and "Cancel", for the "do you want to save?" messages. svn path=/trunk/; revision=11372
2004-06-29GTK2: convert character encoding from locale to UTF8Ulf Lamping1-2/+11
before displaying message svn path=/trunk/; revision=11274
2004-06-18merge: bugfixes and code cleanupUlf Lamping1-1/+4
svn path=/trunk/; revision=11175
2004-06-17add implementation of button mask ESD_BTNS_YES_NOUlf Lamping1-7/+14
svn path=/trunk/; revision=11170
2004-06-04Make the definition of "simple_dialog()" match its declaration.Guy Harris1-3/+3
Make the "type" argument to "vsimple_dialog()" also be an ESD_TYPE_E. svn path=/trunk/; revision=11112
2004-05-26more code cleanup from dialog things:Ulf Lamping1-13/+5
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-17GTK2 only: catch window state event, and call display_queued_messages()Ulf Lamping1-16/+7
if window not iconified any longer. Queue up simple_dialog messages, if window *is* iconified svn path=/trunk/; revision=10914
2004-05-16don't show simple_dialogs, if main window iconified (minimized),Ulf Lamping1-1/+25
this would lead to an unresponsive program. Simply discard the messages, as we don't have a way to queue and show this message if the main window is becoming "visible" again. svn path=/trunk/; revision=10910
2004-05-01The display filter engine can return an error message that is not safeOlivier Biot1-1/+20
when using GTK2 code for rendering the error. In order to correctly render the error message, it must be XML escaped. TODO: track down the remaining places where this XML escaping is required, and fix it there too (not sure if they exist though). svn path=/trunk/; revision=10764
2004-04-16Add a "report_failure()" routine to allow dissectors to report arbitraryGuy Harris1-30/+86
errors to the user. Use that, rather than "g_warning()", in the Diameter dissector to report errors reading the dictionary. Make the format argument to "simple_dialog()" a "const" pointer. Fix up the read-error message in Tethereal to end with a newline. If a simple dialog is requested before the main window or the capture-control window is popped up, queue it up and pop the queued messages up once the main or capture-control window is displayed. svn path=/trunk/; revision=10616
2004-03-13replaced vsnprintf by g_vsnprintfUlf Lamping1-2/+2
svn path=/trunk/; revision=10374
2004-03-13replaced sprintf / snprintf by g_snprintf,Ulf Lamping1-5/+1
various other string related changes svn path=/trunk/; revision=10373
2004-02-23Put in a comment noting a problem with dialog boxes popped up before theGuy Harris1-1/+9
main window is popped up. svn path=/trunk/; revision=10193
2004-02-12The HIG's and/or GUI toolkit documentation for:Guy Harris1-4/+3
Mac OS X GNOME Qt KDE Windows all indicate that {message,alert} boxes are modal, at least for the window to which they apply. (Presumably the idea is that not forcing the user to pay attention to the alert box, and allowing more than one alert box to be up for a given window, causes more problems than not letting the user do stuff to that window in order to figure out what the underlying problem is or figure out what to do to fix it - the message should be sufficient, in most if not all cases, to let you know what the problem is.) Make "simple_dialog()" unconditionally make the alert box modal, and get rid of ESD_TYPE_MODAL. XXX - we need to make it possible to make an alert box modal for a given window, rather than just the top-level window. svn path=/trunk/; revision=10051
2004-02-11Get rid of the "Question" alert box type - rename it to "Confirmation",Guy Harris1-4/+3
as that seems to be the name used in the GNOME HIG, at least. Make it use the Warning icon (that's what the GNOME HIG says - and it's also what's used for the equivalent on Windows), and use it for the "Save current capture?" alert boxes. svn path=/trunk/; revision=10030
2004-02-11Give alert boxes an empty title on UN*X and a title of "Ethereal" onGuy Harris1-9/+39
Win32, to match the GNOME HIG on UN*X and the Win32 HIG on Windows (or, at least, to approximate the Win32 HIG on Windows). svn path=/trunk/; revision=10029
2004-02-04Add some comments about the types of alert boxes you get with theGuy Harris1-4/+3
simple_dialog routines (which are really just message box/alert box routines). Add some macros for combinations of buttons (corresponding to combinations that some GUI toolkits, which only support some combinations, allow). svn path=/trunk/; revision=9977
2004-02-03enhanced some dialog messages,Ulf Lamping1-1/+13
close capture file when user told so svn path=/trunk/; revision=9965
2004-01-31gtk_label_set_selectable() is only available from GTK version 2Ulf Lamping1-2/+2
svn path=/trunk/; revision=9923
2004-01-31cleanup of new "question dialogs",Ulf Lamping1-23/+43
using GTK2 primary/secondary message text from GNOME HIG for simple_dialogs, added a "question dialog" for the coloring rules "Clear" button svn path=/trunk/; revision=9921
2004-01-31Pass ESD_BTN_OK rather than NULL as a second argument toGuy Harris1-2/+3
"simple_dialog()"; NULL might be #defined to be a pointer expression on some platforms, causing compiler warnings (and, on platforms where a null pointer doesn't have all its bits 0, possibly causing misbehavior, although I don't think there are any such platforms on which Ethereal runs). Don't allow 0 as button mask argument to "simple_dialog()". Squelch a compiler warning. Report fatal problems as errors, not warnings. Report file I/O errors with "file_open_error_message()". Report file write errors (including those reported by "close()", e.g. some errors writing to an NFS server) when saving raw packet data to a file. svn path=/trunk/; revision=9915
2004-01-31renamed ESD_TYPE_CRIT to ESD_TYPE_ERROR toUlf Lamping1-2/+2
better reflect the real error text svn path=/trunk/; revision=9913
2004-01-31using GTK2 stock icons for dialogs instead of Ethereal specific onesUlf Lamping1-11/+10
svn path=/trunk/; revision=9911
2004-01-29added "Yes" and "No" buttons to the simple_dialog,Ulf Lamping1-30/+68
added a callback method, to be called if a button was pressed svn path=/trunk/; revision=9907