aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/main_proto_draw.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2011-07-11 18:18:35 +0000
committerGerald Combs <gerald@wireshark.org>2011-07-11 18:18:35 +0000
commit2c469e3714c36cc39099394042d7e8f85f8ef371 (patch)
treebe6319b32d610d1d2a445a362da425c1c0d9f301 /gtk/main_proto_draw.c
parentf6d7f90c720df83a9beb64265d66073e50034bf9 (diff)
More GLIB_CHECK_VERSION, GTK_CHECK_VERSION, and related whitespace
cleanup. svn path=/trunk/; revision=37970
Diffstat (limited to 'gtk/main_proto_draw.c')
-rw-r--r--gtk/main_proto_draw.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/gtk/main_proto_draw.c b/gtk/main_proto_draw.c
index 8eebdfec4c..7084700445 100644
--- a/gtk/main_proto_draw.c
+++ b/gtk/main_proto_draw.c
@@ -591,10 +591,10 @@ highlight_field(tvbuff_t *tvb, gint byte, GtkTreeView *tree_view,
gtk_tree_selection_select_path(gtk_tree_view_get_selection(tree_view),
first_path);
- /* If the last search was a string or hex search within "Packet data", the entire field might
+ /* If the last search was a string or hex search within "Packet data", the entire field might
not be highlighted. If the user just clicked on one of the bytes comprising that field, the
above call didn't trigger a 'gtk_tree_view_get_selection' event. Call redraw_packet_bytes()
- to make the highlighting of the entire field visible. */
+ to make the highlighting of the entire field visible. */
if (!cfile.search_in_progress) {
if (cfile.hex || (cfile.string && cfile.packet_data)) {
redraw_packet_bytes(byte_nb_ptr_gbl, cfile.current_frame, cfile.finfo_selected);
@@ -1075,9 +1075,7 @@ savehex_cb(GtkWidget * w _U_, gpointer data _U_)
* Build the dialog box we need.
*/
savehex_dlg = file_selection_new("Wireshark: Export Selected Packet Bytes", FILE_SELECTION_SAVE);
-#if GTK_CHECK_VERSION(2,8,0)
gtk_file_chooser_set_do_overwrite_confirmation(GTK_FILE_CHOOSER(savehex_dlg), TRUE);
-#endif
/* label */
label = g_strdup_printf("Will save %u %s of raw binary data to specified file.",
@@ -1594,7 +1592,7 @@ packet_hex_print(GtkWidget *bv, const guint8 *pd, frame_data *fd,
}
bstart = cfile.search_pos - (blen-1);
- } else {
+ } else {
blen = finfo->length;
bstart = finfo->start;
}