[GTK] Replace deprecated gdk_pixbuf_new_from_inline()

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>
daniel/osmux
João Valverde 2015-10-17 13:47:17 +01:00 committed by Anders Broman
parent 1ab019f409
commit 2d7b0fc7d0
33 changed files with 11388 additions and 11051 deletions

2
.gitignore vendored
View File

@ -59,6 +59,8 @@ wiretap/ascend.h
wiretap/k12text.c
wireshark-tap-register.c
wireshark-tap-register-cache.pkl
ui/gtk/wireshark-gresources.c
ui/gtk/wireshark-gresources.h
# Generated makefile system #
#############################

View File

@ -943,6 +943,7 @@ EXTRA_DIST = \
image/stock_dialog_warning_48.xpm \
image/text2pcap.rc.in \
image/tfshark.rc.in \
image/expert_ok.png \
image/toolbar/14x14/x-capture-comment-update.png \
image/toolbar/14x14/x-capture-comment-update.svg \
image/toolbar/14x14/x-capture-comment-update@2x.png \

View File

@ -1786,6 +1786,13 @@ AC_SUBST(GLIB_MIN_VERSION)
# 2.42.0: 22 Sep 2014
# 2.44.0: 23 Mar 2014
# Check for GResource support
PKG_CHECK_MODULES([GRESOURCE], [gio-2.0 >= 2.32 gdk-pixbuf-2.0 >= 2.26], [have_gresource=yes], [have_gresource=no])
AM_CONDITIONAL(HAVE_GRESOURCE, test "x$have_gresource" = "xyes")
if test "x$have_gresource" = "xyes"; then
AC_DEFINE(HAVE_GRESOURCE, 1, [Defined if GLib GResource is supported])
fi
use_glib_cflags="true"
if test "$have_gtk" = "yes" -a "$have_qt" = "yes" ; then
# We have both GTK and Qt and thus will be building both wireshark
@ -3411,3 +3418,4 @@ echo " Use POSIX capabilities library : $libcap_message"
echo " Use GeoIP library : $geoip_message"
echo " Use nl library : $libnl_message"
echo " Use SBC codec library : $have_sbc"
#echo " Use GResource : $have_gresource"

View File

@ -209,7 +209,13 @@ PATH_SPECIFIC_WHITELISTED_LICENSES = {
'tools/fix_pragma_wdocumentation.sh': [
'UNKNOWN',
],
# Generated files for GTK pixbuf binary bundling
'ui/gtk/wireshark-gresources.h': [
'UNKNOWN',
],
'ui/gtk/wireshark-gresources.c': [
'UNKNOWN',
],
}

View File

@ -0,0 +1,71 @@
#!/usr/bin/env perl
# Simple script to create extern pixbuf csource. Receives list of
# tuples (varname, path) separated with spaces.
# Wireshark - Network traffic analyzer
# By Gerald Combs <gerald@wireshark.org>
# Copyright 1998 Gerald Combs
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
use strict;
my $target = shift;
open(my $fout, ">", $target . ".c");
open(my $fin, "-|", "gdk-pixbuf-csource", "--extern", "--raw", "--build-list", @ARGV);
select($fout);
print << "HEADER";
/* This file was automatically generated. DO NOT EDIT. */
#include <glib.h>
HEADER
while (<$fin>) {
s/ *$//;
print "\n" if (/^\/\*/);
print if ($_ ne "\n");
}
close($fout);
close($fin);
open(my $fout, ">", $target . ".h");
select($fout);
print << "HEADER";
/* This file was automatically generated. DO NOT EDIT. */
#ifndef __PIXBUF_CSOURCE_HEADER__
#define __PIXBUF_CSOURCE_HEADER__
#include <glib.h>
HEADER
while (my $var = shift @ARGV) {
print "extern const guint8 ${var}[];\n";
shift @ARGV;
}
print << "TRAILER";
#endif /*__PIXBUF_CSOURCE_HEADER__*/
TRAILER
close($fout);

View File

@ -278,12 +278,48 @@ if(WIN32)
set(PORTAUDIO_OBJ $<TARGET_OBJECTS:portaudio>)
endif()
find_file(GLIB_COMPILE_RESOURCES
glib-compile-resources${CMAKE_EXECUTABLE_SUFFIX}
HINTS
"${GLIB2_HINTS}/bin"
)
pkg_check_modules(GRESOURCE QUIET gio-2.0>=2.32 gdk-pixbuf-2.0>=2.26)
macro(WIRESHARK_GRESOURCES _outputfile _resourcefile)
add_custom_command(
OUTPUT ${_outputfile}
COMMAND ${GLIB_COMPILE_RESOURCES} --sourcedir=${CMAKE_SOURCE_DIR} --target=${_outputfile} --generate --manual-register ${CMAKE_CURRENT_SOURCE_DIR}/${_resourcefile}
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_resourcefile}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)
endmacro(WIRESHARK_GRESOURCES)
WIRESHARK_GRESOURCES(wireshark-gresources.h main.gresources.xml)
WIRESHARK_GRESOURCES(wireshark-gresources.c main.gresources.xml)
include_directories(${CMAKE_CURRENT_BINARY_DIR})
if(GRESOURCE_FOUND AND NOT WIN32)
set(PIXBUF_SRC
wireshark-gresources.c
wireshark-gresources.h
)
add_definitions(-DHAVE_GRESOURCE)
else()
set(PIXBUF_SRC
pixbuf-csource.c
)
endif()
add_library(gtkui STATIC
${WIRESHARK_GTK_SRC}
${WIRESHARK_TAP_SRC}
${PLATFORM_UI_SRC}
${PORTAUDIO_OBJ}
wireshark-tap-register.c
${PIXBUF_SRC}
)
set_target_properties(gtkui PROPERTIES
LINK_FLAGS "${WS_LINK_FLAGS}"

View File

@ -26,7 +26,7 @@ if HAVE_WARNINGS_AS_ERRORS
AM_CLEAN_CFLAGS = -Werror -Wno-error=deprecated-declarations
endif
noinst_LIBRARIES = libgtkui.a
AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/wiretap $(PORTAUDIO_INCLUDES)
CLEANFILES = \
libgtkui.a \
@ -38,6 +38,48 @@ MAINTAINERCLEANFILES = \
$(GENERATED_FILES) \
Makefile.in
WIRESHARK_CLEAN_LIBGTKUI_SRC = \
$(WIRESHARK_GTK_SRC) \
$(WIRESHARK_TAP_SRC) \
$(GENERATED_C_FILES)
EXTRA_DIST = \
$(GENERATOR_FILES) \
airpcap_dlg.c \
airpcap_gui_utils.c \
capture_if_details_dlg_win32.c \
capture_if_details_dlg_win32.h \
CMakeLists.txt \
doxygen.cfg.in \
main_airpcap_toolbar.c \
Makefile.common \
Makefile.nmake \
Makefile_custom.common \
pixbuf-csource.c \
pixbuf-csource.h
if HAVE_GRESOURCE
GENERATED_HEADER_FILES += wireshark-gresources.h
GENERATED_C_FILES += wireshark-gresources.c
else
WIRESHARK_CLEAN_LIBGTKUI_SRC += pixbuf-csource.c
endif
noinst_LIBRARIES = libgtkui.a
libgtkui_a_SOURCES = \
$(WIRESHARK_CLEAN_LIBGTKUI_SRC) \
$(noinst_HEADERS) \
$(GENERATED_HEADER_FILES)
libgtkui_a_CFLAGS = $(AM_CLEAN_CFLAGS)
libgtkui_a_DEPENDENCIES =
if HAVE_GRESOURCE
main.c: wireshark-gresources.h
endif
#
# Build "wireshark-tap-register.c", which contains a function
# "register_all_tap_listeners()"
@ -56,137 +98,32 @@ wireshark-tap-register.c: $(WIRESHARK_TAP_SRC) Makefile.common Makefile_custom.
@echo Making wireshark-tap-register.c
@$(PYTHON) $(top_srcdir)/tools/make-tap-reg.py $(srcdir) taps $(WIRESHARK_TAP_SRC)
WIRESHARK_CLEAN_LIBGTKUI_SRC = \
$(WIRESHARK_GTK_SRC) \
$(WIRESHARK_TAP_SRC) \
$(GENERATED_C_FILES)
libgtkui_a_SOURCES = \
$(WIRESHARK_CLEAN_LIBGTKUI_SRC) \
$(noinst_HEADERS) \
$(GENERATED_HEADER_FILES)
libgtkui_a_CFLAGS = $(AM_CLEAN_CFLAGS)
libgtkui_a_DEPENDENCIES =
# Common headers
AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/wiretap $(PORTAUDIO_INCLUDES)
if HAVE_GRESOURCE
wireshark-gresources.c: main.gresources.xml $(shell glib-compile-resources --sourcedir=$(top_srcdir) --generate-dependencies main.gresources.xml)
@echo Making $@
@glib-compile-resources --sourcedir=$(top_srcdir) --target=$@ --generate --manual-register $<
wireshark-gresources.h: main.gresources.xml
@echo Making $@
@glib-compile-resources --sourcedir=$(top_srcdir) --target=$@ --generate --manual-register $<
endif
doxygen:
if HAVE_DOXYGEN
$(DOXYGEN) doxygen.cfg
endif # HAVE_DOXYGEN
endif
checkapi: checkapi-base checkapi-todo
checkapi-base:
$(PERL) $(top_srcdir)/tools/checkAPIs.pl -g deprecated-gtk -build \
-sourcedir=$(srcdir) \
$(WIRESHARK_CLEAN_LIBGTKUI_SRC) \
-sourcedir=$(srcdir) \
$(WIRESHARK_CLEAN_LIBGTKUI_SRC) \
capture_if_details_dlg_win32.c
checkapi-todo:
$(PERL) $(top_srcdir)/tools/checkAPIs.pl -M -g deprecated-gtk-todo -build \
-sourcedir=$(srcdir) \
$(WIRESHARK_GTK_SRC) \
$(WIRESHARK_TAP_SRC) \
-sourcedir=$(srcdir) \
$(WIRESHARK_GTK_SRC) \
$(WIRESHARK_TAP_SRC) \
capture_if_details_dlg_win32.c
expert_indicators.h:
echo "/* This file was automatically generated. DO NOT EDIT. */" > $@
echo >> $@
for elevel in chat error none note warn ok ; do \
gdk-pixbuf-csource --raw --name=expert_$${elevel}_pb_data $(top_srcdir)/image/expert_$${elevel}.png >> $@ ;\
done
capture_comment_icons.h:
echo "/* This file was automatically generated. DO NOT EDIT. */" > $@
echo >> $@
for caction in add update disabled ; do \
gdk-pixbuf-csource --raw --name=capture_comment_$${caction}_pb_data $(top_srcdir)/image/capture_comment_$${caction}.png >> $@ ;\
done
network_icons.h:
echo "/* This file was automatically generated. DO NOT EDIT. */" > $@
echo >> $@
for icon in bluetooth usb wired wireless ; do \
gdk-pixbuf-csource --raw --name=network_$${icon}_pb_data $(top_srcdir)/image/toolbar/network_$${icon}_16.png >> $@ ;\
done
remote_icons.h:
echo "/* This file was automatically generated. DO NOT EDIT. */" > $@
echo >> $@
for icon in arrow globe sat ; do \
gdk-pixbuf-csource --raw --name=remote_$${icon}_pb_data $(top_srcdir)/image/toolbar/remote_$${icon}_16.png >> $@ ;\
done
pipe_icon.h:
echo "/* This file was automatically generated. DO NOT EDIT. */" > $@
echo >> $@
gdk-pixbuf-csource --raw --name=pipe_pb_data $(top_srcdir)/image/toolbar/pipe_16.png >> $@
TOOLBAR_COMMON_ICONS = \
capture_interfaces \
gnome_emblem_web
toolbar_icons.h:
echo "/* This file was automatically generated. DO NOT EDIT. */" > $@
echo >> $@
for icon16 in $(TOOLBAR_COMMON_ICONS) ; do \
gdk-pixbuf-csource --raw --name=$${icon16}_16_pb_data $(top_srcdir)/image/toolbar/$${icon16}_16.png >> $@ ;\
done
for icon24 in $(TOOLBAR_COMMON_ICONS) ; do \
gdk-pixbuf-csource --raw --name=$${icon24}_24_pb_data $(top_srcdir)/image/toolbar/$${icon24}_24.png >> $@ ;\
done
for icon_size in 16 24 ; do \
gdk-pixbuf-csource --raw --name=toolbar_wireshark_file_$${icon_size}_pb_data $(top_srcdir)/image/toolbar/$${icon_size}x$${icon_size}/x-capture-file-save.png >> $@ ;\
gdk-pixbuf-csource --raw --name=capture_options_alt1_$${icon_size}_pb_data $(top_srcdir)/image/toolbar/$${icon_size}x$${icon_size}/x-capture-options.png >> $@ ;\
gdk-pixbuf-csource --raw --name=capture_restart_$${icon_size}_pb_data $(top_srcdir)/image/toolbar/$${icon_size}x$${icon_size}/x-capture-restart.png >> $@ ;\
gdk-pixbuf-csource --raw --name=capture_start_$${icon_size}_pb_data $(top_srcdir)/image/toolbar/$${icon_size}x$${icon_size}/x-capture-start.png >> $@ ;\
gdk-pixbuf-csource --raw --name=capture_stop_$${icon_size}_pb_data $(top_srcdir)/image/toolbar/$${icon_size}x$${icon_size}/x-capture-stop.png >> $@ ;\
done
layouts.h:
echo "/* This file was automatically generated. DO NOT EDIT. */" > $@
echo >> $@
for layout_num in 1 2 3 4 5 6 ; do \
gdk-pixbuf-csource --raw --name=layout_$${layout_num}_pb_data $(top_srcdir)/image/layout_$${layout_num}.png >> $@ ;\
done
wsicon.h:
echo "/* This file was automatically generated. DO NOT EDIT. */" > $@
echo >> $@
for layout_num in 16 24 32 48 64 ; do \
gdk-pixbuf-csource --raw --name=wsicon_$${layout_num}_pb_data $(top_srcdir)/image/wsicon$${layout_num}.png >> $@ ;\
done
wsiconcap.h:
echo "/* This file was automatically generated. DO NOT EDIT. */" > $@
echo >> $@
for layout_num in 16 24 32 48 64 ; do \
gdk-pixbuf-csource --raw --name=wsiconcap_$${layout_num}_pb_data $(top_srcdir)/image/wsiconcap$${layout_num}.png >> $@ ;\
done
wssplash.h:
echo "/* This file was automatically generated. DO NOT EDIT. */" > $@
echo >> $@
gdk-pixbuf-csource --raw --name=wssplash_pb_data $(top_srcdir)/image/wssplash_dev.png >> $@
clean-pixbufs:
rm expert_indicators.h capture_comment_icons.h network_icons.h remote_icons.h pipe_icon.h \
toolbar_icons.h layouts.h wsicon.h wsiconcap.h wssplash.h
EXTRA_DIST = \
$(GENERATOR_FILES) \
airpcap_dlg.c \
airpcap_gui_utils.c \
capture_if_details_dlg_win32.c \
capture_if_details_dlg_win32.h \
CMakeLists.txt \
doxygen.cfg.in \
main_airpcap_toolbar.c \
Makefile.common \
Makefile.nmake \
Makefile_custom.common

View File

@ -37,259 +37,344 @@ GENERATED_FILES = \
$(GENERATED_C_FILES)
# Files that generate compileable files
GENERATOR_FILES =
GENERATOR_FILES = \
main.gresources.xml
WIRESHARK_GTK_SRC = \
about_dlg.c \
about_dlg.c \
addr_resolution_dlg.c \
airpcap_dlg.c \
airpcap_gui_utils.c \
bytes_view.c \
capture_dlg.c \
airpcap_dlg.c \
airpcap_gui_utils.c \
bytes_view.c \
capture_dlg.c \
capture_file_dlg.c \
capture_if_dlg.c \
capture_info_dlg.c \
color_dlg.c \
color_dlg.c \
color_edit_dlg.c \
color_utils.c \
conversation_hastables_dlg.c \
color_utils.c \
conversation_hastables_dlg.c \
conversations_table.c \
decode_as_dlg.c \
decode_as_dlg.c \
dfilter_expr_dlg.c \
dissector_tables_dlg.c \
dlg_utils.c \
dlg_utils.c \
drag_and_drop.c \
edit_packet_comment_dlg.c \
expert_comp_table.c \
edit_packet_comment_dlg.c \
expert_comp_table.c \
export_object_dlg.c \
export_sslkeys.c \
export_sslkeys.c \
extcap_gtk.c \
filter_autocomplete.c \
file_dlg.c \
file_dlg.c \
file_import_dlg.c \
fileset_dlg.c \
filter_dlg.c \
filter_expression_save_dlg.c \
filter_utils.c \
find_dlg.c \
firewall_dlg.c \
follow_ssl.c \
follow_stream.c \
follow_tcp.c \
follow_udp.c \
font_utils.c \
goto_dlg.c \
graph_analysis.c \
fileset_dlg.c \
filter_dlg.c \
filter_expression_save_dlg.c \
filter_utils.c \
find_dlg.c \
firewall_dlg.c \
follow_ssl.c \
follow_stream.c \
follow_tcp.c \
follow_udp.c \
font_utils.c \
goto_dlg.c \
graph_analysis.c \
gtk_iface_monitor.c \
gui_stat_util.c \
gui_utils.c \
help_dlg.c \
hostlist_table.c \
macros_dlg.c \
main.c \
gui_stat_util.c \
gui_utils.c \
help_dlg.c \
hostlist_table.c \
macros_dlg.c \
main.c \
main_80211_toolbar.c \
main_airpcap_toolbar.c \
main_filter_toolbar.c \
main_menubar.c \
main_menubar.c \
manual_addr_resolv.c \
packet_panes.c \
packet_panes.c \
main_statusbar.c \
main_titlebar.c \
main_toolbar.c \
main_titlebar.c \
main_toolbar.c \
main_welcome.c \
packet_history.c \
packet_list_store.c \
packet_list.c \
packet_win.c \
pixmap_save.c \
plugins_dlg.c \
prefs_capture.c \
prefs_column.c \
prefs_dlg.c \
prefs_filter_expressions.c \
prefs_gui.c \
prefs_layout.c \
packet_list.c \
packet_win.c \
pixmap_save.c \
plugins_dlg.c \
prefs_capture.c \
prefs_column.c \
prefs_dlg.c \
prefs_filter_expressions.c \
prefs_gui.c \
prefs_layout.c \
prefs_font_color.c \
print_dlg.c \
profile_dlg.c \
progress_dlg.c \
proto_dlg.c \
proto_help.c \
print_dlg.c \
profile_dlg.c \
progress_dlg.c \
proto_dlg.c \
proto_help.c \
proto_hier_stats_dlg.c \
proto_hier_tree_model.c \
proto_tree_model.c \
range_utils.c \
response_time_delay_table.c \
rtp_player.c \
proto_hier_tree_model.c \
proto_tree_model.c \
range_utils.c \
response_time_delay_table.c \
rtp_player.c \
sctp_byte_graph_dlg.c \
sctp_error_dlg.c \
sctp_graph_dlg.c \
service_response_time_table.c \
simple_dialog.c \
service_response_time_table.c \
simple_dialog.c \
simple_stattable.c \
stock_icons.c \
summary_dlg.c \
stock_icons.c \
summary_dlg.c \
supported_protos_dlg.c \
tap_param_dlg.c \
tap_param_dlg.c \
text_page_utils.c \
time_shift_dlg.c \
uat_gui.c \
webbrowser.c \
extcap_gtk.c \
uat_gui.c \
webbrowser.c \
$(WIRESHARK_CUSTOM_GTK_SRC)
about_dlg.c main_welcome.c: wssplash.h remote_icons.h
capture_if_dlg.c: network_icons.h remote_icons.h pipe_icon.h
gui_utils.c: wsicon.h
main.c: wsicon.h wsiconcap.h
main_statusbar.c: expert_indicators.h capture_comment_icons.h
main_welcome.c: wssplash.h
prefs_layout.c: layouts.h
stock_icons.c: stock_icons.h toolbar_icons.h wsicon.h
WIRESHARK_TAP_SRC = \
compare_stat.c \
dcerpc_stat.c \
expert_comp_dlg.c \
compare_stat.c \
dcerpc_stat.c \
expert_comp_dlg.c \
export_pdu_dlg.c \
flow_graph.c \
funnel_stat.c \
flow_graph.c \
funnel_stat.c \
gsm_map_summary.c \
iax2_analysis.c \
io_stat.c \
iax2_analysis.c \
io_stat.c \
lbm_stream_dlg.c \
lbm_uimflow_dlg.c \
mac_lte_stat_dlg.c \
mcast_stream_dlg.c \
mtp3_summary.c \
rlc_lte_graph.c \
mtp3_summary.c \
rlc_lte_graph.c \
rlc_lte_stat_dlg.c \
rpc_stat.c \
rtp_analysis.c \
rpc_stat.c \
rtp_analysis.c \
rtp_stream_dlg.c \
sctp_assoc_analyse.c \
sctp_chunk_stat.c \
sctp_chunk_stat_dlg.c \
sctp_stat_dlg.c \
sctp_stat_dlg.c \
stats_tree_stat.c \
tcp_graph.c \
voip_calls_dlg.c \
wlan_stat_dlg.c \
tcp_graph.c \
voip_calls_dlg.c \
wlan_stat_dlg.c \
$(WIRESHARK_CUSTOM_TAP_SRC)
noinst_HEADERS = \
about_dlg.h \
about_dlg.h \
addr_resolution_dlg.h \
airpcap_dlg.h \
airpcap_gui_utils.h \
bytes_view.h \
capture_comment_icons.h \
capture_dlg.h \
airpcap_dlg.h \
airpcap_gui_utils.h \
bytes_view.h \
capture_dlg.h \
capture_file_dlg.h \
capture_if_dlg.h \
cfilter_combo_utils.h \
color_dlg.h \
cfilter_combo_utils.h \
color_dlg.h \
color_edit_dlg.h \
color_utils.h \
conversation_hastables_dlg.h \
conversations_table.h \
decode_as_dlg.h \
dfilter_expr_dlg.h \
color_utils.h \
conversation_hastables_dlg.h \
conversations_table.h \
decode_as_dlg.h \
dfilter_expr_dlg.h \
dissector_tables_dlg.h \
dlg_utils.h \
drag_and_drop.h \
dlg_utils.h \
drag_and_drop.h \
edit_packet_comment_dlg.h \
expert_comp_dlg.h \
expert_comp_table.h \
expert_indicators.h \
export_object_dlg.h \
export_pdu_dlg.h \
export_sslkeys.h \
file_dlg.h \
extcap_gtk.h \
file_dlg.h \
file_import_dlg.h \
fileset_dlg.h \
fileset_dlg.h \
filter_autocomplete.h \
filter_dlg.h \
filter_expression_save_dlg.h \
filter_utils.h \
find_dlg.h \
firewall_dlg.h \
follow_ssl.h \
follow_stream.h \
follow_tcp.h \
follow_udp.h \
font_utils.h \
goto_dlg.h \
graph_analysis.h \
filter_dlg.h \
filter_expression_save_dlg.h \
filter_utils.h \
find_dlg.h \
firewall_dlg.h \
follow_ssl.h \
follow_stream.h \
follow_tcp.h \
follow_udp.h \
font_utils.h \
goto_dlg.h \
graph_analysis.h \
gtk_iface_monitor.h \
gtkglobals.h \
gui_stat_menu.h \
gui_stat_util.h \
gui_utils.h \
help_dlg.h \
hostlist_table.h \
keys.h \
layouts.h \
gtkglobals.h \
gui_stat_menu.h \
gui_stat_util.h \
gui_utils.h \
help_dlg.h \
hostlist_table.h \
keys.h \
lbm_stream_dlg.h \
lbm_uimflow_dlg.h \
macros_dlg.h \
main.h \
macros_dlg.h \
main.h \
main_airpcap_toolbar.h \
main_filter_toolbar.h \
main_menubar_private.h \
main_80211_toolbar.h \
menus.h \
packet_panes.h \
main_statusbar_private.h \
main_titlebar.h \
main_toolbar.h \
menus.h \
packet_panes.h \
main_statusbar_private.h \
main_titlebar.h \
main_toolbar.h \
main_toolbar_private.h \
main_welcome.h \
main_welcome_private.h \
manual_addr_resolv.h \
mcast_stream_dlg.h \
network_icons.h \
old-gtk-compat.h \
packet_history.h \
packet_list_store.h \
packet_list.h \
packet_win.h \
pipe_icon.h \
pixmap_save.h \
plugins_dlg.h \
prefs_capture.h \
prefs_column.h \
prefs_dlg.h \
prefs_filter_expressions.h \
prefs_gui.h \
prefs_layout.h \
packet_list.h \
packet_win.h \
pixmap_save.h \
plugins_dlg.h \
prefs_capture.h \
prefs_column.h \
prefs_dlg.h \
prefs_filter_expressions.h \
prefs_gui.h \
prefs_layout.h \
prefs_font_color.h \
profile_dlg.h \
proto_dlg.h \
proto_help.h \
profile_dlg.h \
proto_dlg.h \
proto_help.h \
proto_hier_stats_dlg.h \
proto_hier_tree_model.h \
proto_tree_model.h \
range_utils.h \
response_time_delay_table.h \
remote_icons.h \
rtp_player.h \
rtp_stream_dlg.h \
sctp_stat_gtk.h \
service_response_time_table.h \
proto_hier_tree_model.h \
proto_tree_model.h \
range_utils.h \
response_time_delay_table.h \
rtp_player.h \
rtp_stream_dlg.h \
sctp_stat_gtk.h \
service_response_time_table.h \
simple_stattable.h \
time_shift_dlg.h \
simple_dialog.h \
stock_icons.h \
summary_dlg.h \
simple_dialog.h \
stock_icons.h \
summary_dlg.h \
supported_protos_dlg.h \
tap_param_dlg.h \
tap_param_dlg.h \
text_page_utils.h \
toolbar_icons.h \
uat_gui.h \
voip_calls_dlg.h \
webbrowser.h \
wsiconcap.h \
wsicon.h \
wssplash.h \
extcap_gtk.h \
uat_gui.h \
voip_calls_dlg.h \
webbrowser.h \
$(WIRESHARK_CUSTOM_HDRS)
imagedir = $(top_srcdir)/image
pixbuf_csource_data = \
expert_chat_pb_data \
$(imagedir)/toolbar/14x14/x-expert-chat.png \
expert_error_pb_data \
$(imagedir)/toolbar/14x14/x-expert-error.png \
expert_none_pb_data \
$(imagedir)/toolbar/14x14/x-expert-none.png \
expert_note_pb_data \
$(imagedir)/toolbar/14x14/x-expert-note.png \
expert_warn_pb_data \
$(imagedir)/toolbar/14x14/x-expert-warn.png \
expert_ok_pb_data \
$(imagedir)/expert_ok.png \
capture_comment_add_pb_data \
$(imagedir)/capture_comment_add.png \
capture_comment_update_pb_data \
$(imagedir)/capture_comment_update.png \
capture_comment_disabled_pb_data \
$(imagedir)/capture_comment_disabled.png \
network_bluetooth_pb_data \
$(imagedir)/toolbar/network_bluetooth_16.png \
network_usb_pb_data \
$(imagedir)/toolbar/network_usb_16.png \
network_wired_pb_data \
$(imagedir)/toolbar/network_wired_16.png \
network_wireless_pb_data \
$(imagedir)/toolbar/network_wireless_16.png \
remote_arrow_pb_data \
$(imagedir)/toolbar/remote_arrow_16.png \
remote_globe_pb_data \
$(imagedir)/toolbar/remote_globe_16.png \
remote_sat_pb_data \
$(imagedir)/toolbar/remote_sat_16.png \
pipe_pb_data \
$(imagedir)/toolbar/pipe_16.png \
capture_interfaces_16_pb_data \
$(imagedir)/toolbar/capture_interfaces_16.png \
capture_interfaces_24_pb_data \
$(imagedir)/toolbar/capture_interfaces_24.png \
gnome_emblem_web_16_pb_data \
$(imagedir)/toolbar/gnome_emblem_web_16.png \
gnome_emblem_web_24_pb_data \
$(imagedir)/toolbar/gnome_emblem_web_24.png \
toolbar_wireshark_file_16_pb_data \
$(imagedir)/toolbar/16x16/x-capture-file-save.png \
toolbar_wireshark_file_24_pb_data \
$(imagedir)/toolbar/24x24/x-capture-file-save.png \
capture_options_alt1_16_pb_data \
$(imagedir)/toolbar/16x16/x-capture-options.png \
capture_options_alt1_24_pb_data \
$(imagedir)/toolbar/24x24/x-capture-options.png \
capture_restart_16_pb_data \
$(imagedir)/toolbar/16x16/x-capture-restart.png \
capture_restart_24_pb_data \
$(imagedir)/toolbar/24x24/x-capture-restart.png \
capture_start_16_pb_data \
$(imagedir)/toolbar/16x16/x-capture-start.png \
capture_start_24_pb_data \
$(imagedir)/toolbar/24x24/x-capture-start.png \
capture_stop_16_pb_data \
$(imagedir)/toolbar/16x16/x-capture-stop.png \
capture_stop_24_pb_data \
$(imagedir)/toolbar/24x24/x-capture-stop.png \
layout_1_pb_data \
$(imagedir)/layout_1.png \
layout_2_pb_data \
$(imagedir)/layout_2.png \
layout_3_pb_data \
$(imagedir)/layout_3.png \
layout_4_pb_data \
$(imagedir)/layout_4.png \
layout_5_pb_data \
$(imagedir)/layout_5.png \
layout_6_pb_data \
$(imagedir)/layout_6.png \
wsicon_16_pb_data \
$(imagedir)/wsicon16.png \
wsicon_24_pb_data \
$(imagedir)/wsicon24.png \
wsicon_32_pb_data \
$(imagedir)/wsicon32.png \
wsicon_48_pb_data \
$(imagedir)/wsicon48.png \
wsicon_64_pb_data \
$(imagedir)/wsicon64.png \
wsiconcap_16_pb_data \
$(imagedir)/wsiconcap16.png \
wsiconcap_24_pb_data \
$(imagedir)/wsiconcap24.png \
wsiconcap_32_pb_data \
$(imagedir)/wsiconcap32.png \
wsiconcap_48_pb_data \
$(imagedir)/wsiconcap48.png \
wsiconcap_64_pb_data \
$(imagedir)/wsiconcap64.png \
wssplash_pb_data \
$(imagedir)/wssplash_dev.png
pixbuf-csource:
$(PERL) $(top_srcdir)/tools/make-pixbuf-csource.pl $@ $(pixbuf_csource_data)

View File

@ -32,7 +32,8 @@ WIRESHARK_CLEAN_LIBGTKUI_SRC = \
$(WIRESHARK_GTK_SRC) \
$(WIRESHARK_TAP_SRC) \
$(GENERATED_C_FILES) \
capture_if_details_dlg_win32.c
capture_if_details_dlg_win32.c \
pixbuf-csource.c
WIRESHARK_LIBGTKUI_SRC = \
$(WIRESHARK_CLEAN_LIBGTKUI_SRC)
@ -66,24 +67,6 @@ WIRESHARK_LIBGTKUI_OBJECTS = \
libgtkui.lib: ..\..\config.h $(WIRESHARK_LIBGTKUI_OBJECTS)
link /lib /out:libgtkui.lib $(WIRESHARK_LIBGTKUI_OBJECTS) winmm.lib
layouts.h:
echo /* This file was automatically generated. DO NOT EDIT. */ > $@
echo. $@
for %n in (1 2 3 4 5 6) do \
gdk-pixbuf-csource --raw --name=layout_%n_pb_data ../../image/layout_%n.png >> $@
wsicon.h:
echo /* This file was automatically generated. DO NOT EDIT. */ > $@
echo. $@
for %n in (16 24 32 48 64) do \
gdk-pixbuf-csource --raw --name=wsicon_%n_pb_data ../../image/wsicon%n.png >> $@
wsiconcap.h:
echo /* This file was automatically generated. DO NOT EDIT. */ > $@
echo. $@
for %n in (16 24 32 48 64) do \
gdk-pixbuf-csource --raw --name=wsiconcap_%n_pb_data ../../image/wsiconcap%n.png >> $@
# The first argument is the directory in which the source files live.
# The second argument is "taps", to indicate that we should build
# a tap register file.

View File

@ -54,7 +54,9 @@
#include "ui/gtk/main.h"
#include "ui/gtk/plugins_dlg.h"
#include "ui/gtk/stock_icons.h"
#include "ui/gtk/wssplash.h"
#ifndef HAVE_GRESOURCE
#include "ui/gtk/pixbuf-csource.h"
#endif
#include "webbrowser.h"
@ -83,7 +85,11 @@ about_wireshark(GtkWidget *parent _U_, GtkWidget *main_vb)
const char *title = "Network Protocol Analyzer";
/*icon = xpm_to_widget_from_parent(parent, wssplash_xpm);*/
#ifdef HAVE_GRESOURCE
icon = pixbuf_to_widget("/org/wireshark/image/wssplash_dev.png");
#else
icon = pixbuf_to_widget(wssplash_pb_data);
#endif
gtk_box_pack_start(GTK_BOX(main_vb), icon, TRUE, TRUE, 0);

View File

@ -1,237 +0,0 @@
/* This file was automatically generated. DO NOT EDIT. */
/* GdkPixbuf RGBA C-Source image dump */
#ifdef __SUNPRO_C
#pragma align 4 (capture_comment_add_pb_data)
#endif
#ifdef __GNUC__
static const guint8 capture_comment_add_pb_data[] __attribute__ ((__aligned__ (4))) =
#else
static const guint8 capture_comment_add_pb_data[] =
#endif
{ ""
/* Pixbuf magic (0x47646b50) */
"GdkP"
/* length: header (24) + pixel_data (1024) */
"\0\0\4\30"
/* pixdata_type (0x1010002) */
"\1\1\0\2"
/* rowstride (64) */
"\0\0\0@"
/* width (16) */
"\0\0\0\20"
/* height (16) */
"\0\0\0\20"
/* pixel_data: */
"\262\266\257I\263\267\260\342\261\264\256\377\261\264\255\377\260\263"
"\254\377\257\262\254\377\257\262\253\377\257\262\253\365\257\262\254"
"\257\253\257\247@\377\377\377\0\377\377\377\0\356,,i\356//\352\35600"
"\334\356'';\260\263\254\344\356\357\354\377\376\376\376\377S\235\15\377"
"N\232\6\377N\232\6\377\370\373\366\377\370\371\370\377\347\350\346\377"
"\262\264\257\366\252\254\246r\256he\246\272[Y\376\325wv\377\356ss\377"
"\356..\342\251\254\245\377\376\376\376\377\362\363\362\377S\235\15\377"
"N\232\6\377N\232\6\377\337\344\332\377\343\346\340\377\331\332\330\377"
"\375\375\375\377\250\215w\375\230\223\215\377\266\265\262\377\221\210"
"\203\376\315vu\377\355--\355\244\247\241\377S\235\15\377N\232\6\377N"
"\232\6\377N\232\6\377N\232\6\377N\232\6\377N\232\6\377\275\275\275\377"
"\306\246\212\377\212\211\203\377\227\226\216\377\271\272\271\377\200"
"~|\377\264ca\374\355++p\237\242\234\377S\235\15\377N\232\6\377N\232\6"
"\377N\232\6\377N\232\6\377N\232\6\377N\232\6\377\306\222c\377\325s\40"
"\377\371\276l\377\312\240g\377\210\207\177\377\222\216\210\377\251kh"
"\270\377\377\377\0\232\235\227\377S\235\15\377N\232\6\377N\232\6\377"
"N\232\6\377N\232\6\377N\232\6\377\217}\4\377\327v\"\377\372\277l\377"
"\366\257Q\377\346\241Y\377\212\211\203\377\231\201k\310\377\377\377\1"
"\377\377\377\0\226\230\222\377\375\376\375\377\347\351\345\377R\234\14"
"\377N\232\6\377N\232\6\377\325\235g\377\330y$\377\372\277l\377\366\256"
"Q\377\352\242V\377\324o\34\377\236\177d\377\377\377\377\1\377\377\377"
"\0\377\377\377\0\221\223\216\377\375\376\375\377\326\327\326\377R\234"
"\14\377N\232\6\377\225z\4\377\330y&\377\372\277l\377\365\256O\377\352"
"\241V\377\323m\31\377\353\277\234\377\211\213\206\377\377\377\377\0\377"
"\377\377\0\377\377\377\0\214\216\211\377\375\376\375\377\347\351\344"
"\377\345\346\342\377\341\304\236\377\337\226Q\377\373\311\203\377\365"
"\256O\377\352\241V\377\323m\32\377\333\262\215\377\365\365\365\377\201"
"\203~\377\377\377\377\0\377\377\377\0\377\377\377\0\207\212\204\377\375"
"\376\375\377\347\351\345\377\345\347\342\377\347\266r\377\363\324\255"
"\377\377\375\374\377\354\255l\377\321j\30\377\312\244\200\377\314\316"
"\312\377\352\352\351\377{}x\377\377\377\377\0\377\377\377\0\377\377\377"
"\0\202\205\177\377\376\376\375\377\327\327\327\377\276\266\251\377\274"
"\224Y\377\361\322\256\377\351\270}\377\331\2059\377\265\216o\377\261"
"\261\261\377\276\276\275\377\353\353\353\377wzu\377\377\377\377\0\377"
"\377\377\0\377\377\377\0}\200z\377\376\376\376\377\355\357\353\377g["
"E\377\27\22\13\377\327\254o\377\313\253}\377\274\261\242\377\312\313"
"\311\377\334\336\333\377\351\353\350\377\376\376\376\377uxs\377\377\377"
"\377\0\377\377\377\0\377\377\377\0x{v\377\376\376\376\377\331\332\331"
"\377\234\222\203\377\270\266\261\377\307\307\307\377\324\324\324\377"
"\363\365\362\377\364\365\363\377\364\365\363\377\365\366\363\377\376"
"\376\376\377qsn\377\377\377\377\0\377\377\377\0\377\377\377\0tvq\377"
"\376\376\376\377\363\364\362\377\364\365\363\377\365\366\364\377\366"
"\367\365\377\367\370\366\377\370\370\367\377\370\371\370\377\370\371"
"\370\377\371\371\370\377\377\377\376\377lni\377\377\377\377\0\377\377"
"\377\0\377\377\377\0vxs\343\351\352\351\377\377\377\377\377\377\377\377"
"\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"
"\377\377\377\377\377\377\377\377\377\377\377\377\351\352\351\377orm\336"
"\377\377\377\0\377\377\377\0\377\377\377\0jnjHqso\337ikf\377hjf\377g"
"ie\377gid\377fhd\377egc\377egb\377dfb\377cea\377lni\335dd`E\377\377\377"
"\0\377\377\377\0\377\377\377\0"};
/* GdkPixbuf RGBA C-Source image dump */
#ifdef __SUNPRO_C
#pragma align 4 (capture_comment_update_pb_data)
#endif
#ifdef __GNUC__
static const guint8 capture_comment_update_pb_data[] __attribute__ ((__aligned__ (4))) =
#else
static const guint8 capture_comment_update_pb_data[] =
#endif
{ ""
/* Pixbuf magic (0x47646b50) */
"GdkP"
/* length: header (24) + pixel_data (1024) */
"\0\0\4\30"
/* pixdata_type (0x1010002) */
"\1\1\0\2"
/* rowstride (64) */
"\0\0\0@"
/* width (16) */
"\0\0\0\20"
/* height (16) */
"\0\0\0\20"
/* pixel_data: */
"\262\266\257I\263\267\260\342\261\264\256\377\261\264\255\377\260\263"
"\254\377\257\262\254\377\257\262\253\377\257\262\253\365\257\262\254"
"\257\253\257\247@\377\377\377\0\377\377\377\0\356,,i\356//\352\35600"
"\334\356'';\260\263\254\344\356\357\354\377\376\376\376\377\376\376\376"
"\377\376\376\376\377\376\376\376\377\376\376\376\377\370\371\370\377"
"\347\350\346\377\262\264\257\366\252\254\246r\256he\246\272[Y\376\325"
"wv\377\356ss\377\356..\342\251\254\245\377\376\376\376\377\362\363\362"
"\377\357\360\355\377\353\355\351\377\347\352\345\377\344\346\341\377"
"\343\346\340\377\331\332\330\377\375\375\375\377\250\215w\375\230\223"
"\215\377\266\265\262\377\221\210\203\376\315vu\377\354..\356\244\247"
"\241\377\376\376\376\377\331\331\331\377\323\323\323\377\323\323\323"
"\377\323\323\323\377\323\323\323\377\323\323\323\377\275\275\275\377"
"\306\246\212\377\212\211\203\377\227\226\216\377\271\272\271\377\200"
"~|\377\264ca\374\34754y\237\242\234\377\376\376\376\377\353\355\351\377"
"\350\352\346\377\345\347\343\377\342\345\340\377\337\342\334\377\334"
"\337\330\377\306\222c\377\325s\40\377\371\276l\377\312\240g\377\210\207"
"\177\377\222\216\210\377\251kh\270\240\243\234\20\232\235\227\377\376"
"\376\375\377\330\330\327\377\323\323\323\377\323\323\323\377\323\323"
"\323\377\323\323\323\377\322\232k\377\327v\"\377\372\277l\377\366\257"
"Q\377\346\241Y\377\212\211\203\377\231\201k\310\377\377\377\1\233\236"
"\230\20\226\230\222\377\375\376\375\377\347\351\345\377\344\346\341\377"
"\342\345\340\377\341\343\336\377\327\236k\377\330y$\377\372\277l\377"
"\366\256Q\377\352\242V\377\324o\34\377\236\177d\377\377\377\377\1\377"
"\377\377\0\226\231\223\20\221\223\216\377\375\376\375\377\326\327\326"
"\377\323\323\323\377\323\323\323\377\321\224`\377\330y&\377\372\277l"
"\377\365\256O\377\352\241V\377\323m\31\377\353\277\234\377\211\213\206"
"\377\377\377\377\0\377\377\377\0\221\224\216\20\214\216\211\377\375\376"
"\375\377\347\351\344\377\345\346\342\377\341\304\236\377\337\226Q\377"
"\373\311\203\377\365\256O\377\352\241V\377\323m\32\377\333\262\215\377"
"\365\365\365\377\201\203~\377\377\377\377\0\377\377\377\0\214\217\211"
"\20\207\212\204\377\375\376\375\377\347\351\345\377\345\347\342\377\347"
"\266r\377\363\324\255\377\377\375\374\377\354\255l\377\321j\30\377\312"
"\244\200\377\314\316\312\377\352\352\351\377{}x\377\377\377\377\0\377"
"\377\377\0\210\212\205\20\202\205\177\377\376\376\375\377\327\327\327"
"\377\276\266\251\377\274\224Y\377\361\322\256\377\351\270}\377\331\205"
"9\377\265\216o\377\261\261\261\377\276\276\275\377\353\353\353\377wz"
"u\377\377\377\377\0\377\377\377\0\203\205\200\20}\200z\377\376\376\376"
"\377\355\357\353\377g[E\377\27\22\13\377\327\254o\377\313\253}\377\274"
"\261\242\377\312\313\311\377\334\336\333\377\351\353\350\377\376\376"
"\376\377uxs\377\377\377\377\0\377\377\377\0~\200{\20x{v\377\376\376\376"
"\377\331\332\331\377\234\222\203\377\270\266\261\377\307\307\307\377"
"\324\324\324\377\363\365\362\377\364\365\363\377\364\365\363\377\365"
"\366\363\377\376\376\376\377qsn\377\377\377\377\0\377\377\377\0y{v\20"
"tvq\377\376\376\376\377\363\364\362\377\364\365\363\377\365\366\364\377"
"\366\367\365\377\367\370\366\377\370\370\367\377\370\371\370\377\370"
"\371\370\377\371\371\370\377\377\377\376\377lni\377\377\377\377\0\377"
"\377\377\0twr\20vxs\343\351\352\351\377\377\377\377\377\377\377\377\377"
"\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"
"\377\377\377\377\377\377\377\377\377\377\377\351\352\351\377orm\336\377"
"\377\377\0\377\377\377\0orm\2jnjHqso\337ikf\377hjf\377gie\377gid\377"
"fhd\377egc\377egb\377dfb\377cea\377lni\335dd`E\377\377\377\0\377\377"
"\377\0\377\377\377\0"};
/* GdkPixbuf RGBA C-Source image dump */
#ifdef __SUNPRO_C
#pragma align 4 (capture_comment_disabled_pb_data)
#endif
#ifdef __GNUC__
static const guint8 capture_comment_disabled_pb_data[] __attribute__ ((__aligned__ (4))) =
#else
static const guint8 capture_comment_disabled_pb_data[] =
#endif
{ ""
/* Pixbuf magic (0x47646b50) */
"GdkP"
/* length: header (24) + pixel_data (1024) */
"\0\0\4\30"
/* pixdata_type (0x1010002) */
"\1\1\0\2"
/* rowstride (64) */
"\0\0\0@"
/* width (16) */
"\0\0\0\20"
/* height (16) */
"\0\0\0\20"
/* pixel_data: */
"\263\267\260J\263\267\260\342\261\264\256\377\261\264\255\377\260\263"
"\254\377\257\262\254\377\257\262\253\377\257\262\253\366\257\263\254"
"\262\255\260\251D\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377"
"\0\377\377\377\0\377\377\377\0\260\263\254\344\355\356\354\377\376\376"
"\376\377\376\376\376\377\376\376\376\377\376\376\376\377\376\376\376"
"\377\371\371\370\377\347\350\346\377\264\266\261\366\251\253\245z\377"
"\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\251"
"\254\245\377\376\376\376\377\362\363\362\377\357\360\355\377\353\355"
"\351\377\350\352\345\377\344\346\341\377\343\345\340\377\330\331\327"
"\377\375\375\375\377\276\300\273\367\244\246\240v\377\377\377\0\377\377"
"\377\0\377\377\377\0\377\377\377\0\244\247\241\377\376\376\376\377\331"
"\331\331\377\323\323\323\377\323\323\323\377\323\323\323\377\323\323"
"\323\377\323\323\323\377\274\274\274\377\377\377\377\377\375\375\374"
"\377\252\255\247\365\233\237\233=\377\377\377\0\377\377\377\0\377\377"
"\377\0\237\242\234\377\376\376\376\377\353\355\351\377\350\352\346\377"
"\345\347\343\377\342\345\340\377\337\342\334\377\334\337\331\377\277"
"\302\274\377\251\254\246\377\260\260\257\377\330\331\326\376\233\236"
"\230\262\377\377\377\0\377\377\377\0\377\377\377\0\232\235\227\377\376"
"\376\375\377\330\330\327\377\323\323\323\377\323\323\323\377\323\323"
"\323\377\323\323\323\377\323\323\323\377\323\323\323\377\316\317\316"
"\377\314\320\312\377\331\333\330\377\224\227\220\371\200\200\200\4\377"
"\377\377\0\377\377\377\0\226\230\222\377\375\376\375\377\347\351\345"
"\377\344\346\341\377\342\345\340\377\341\343\336\377\336\341\333\377"
"\334\337\330\377\331\334\326\377\331\334\326\377\332\335\326\377\376"
"\376\376\377\217\221\214\374\200\237\200\10\377\377\377\0\377\377\377"
"\0\221\223\216\377\375\376\375\377\326\327\326\377\323\323\323\377\323"
"\323\323\377\323\323\323\377\323\323\323\377\323\323\323\377\323\323"
"\323\377\323\323\323\377\324\325\324\377\376\376\376\377\212\214\210"
"\374\200\200\200\10\377\377\377\0\377\377\377\0\214\216\211\377\375\376"
"\375\377\347\351\344\377\345\346\342\377\343\346\341\377\342\345\340"
"\377\342\344\337\377\342\344\337\377\342\345\337\377\342\345\337\377"
"\343\345\340\377\376\376\376\377\206\210\203\374\200\200\200\10\377\377"
"\377\0\377\377\377\0\207\212\204\377\375\376\375\377\347\351\345\377"
"\345\347\342\377\344\347\342\377\345\347\342\377\345\347\343\377\345"
"\350\343\377\345\350\343\377\345\350\343\377\347\352\345\377\376\376"
"\376\377\201\204}\374\200\200\200\10\377\377\377\0\377\377\377\0\202"
"\205\177\377\376\376\375\377\327\327\327\377\324\324\324\377\324\324"
"\324\377\324\324\324\377\324\324\324\377\324\324\324\377\324\324\324"
"\377\324\324\324\377\327\327\327\377\376\376\376\377{~y\374\200\200\200"
"\10\377\377\377\0\377\377\377\0}\200z\377\376\376\376\377\355\357\353"
"\377\354\355\352\377\355\356\353\377\355\357\354\377\356\357\354\377"
"\357\361\356\377\357\361\356\377\357\361\356\377\360\361\357\377\377"
"\377\377\377vyt\374\200\200\200\10\377\377\377\0\377\377\377\0x{v\377"
"\376\376\376\377\331\332\331\377\324\324\324\377\324\324\324\377\324"
"\324\324\377\330\330\330\377\363\365\362\377\364\365\363\377\364\365"
"\363\377\364\365\362\377\377\377\377\377rtp\374\200\200`\10\377\377\377"
"\0\377\377\377\0tvq\377\376\376\376\377\363\364\362\377\364\365\363\377"
"\365\366\364\377\366\367\365\377\367\370\366\377\370\370\367\377\370"
"\371\370\377\370\371\370\377\371\371\370\377\377\377\377\377npk\374`"
"``\10\377\377\377\0\377\377\377\0vxs\343\351\352\351\377\377\377\377"
"\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"
"\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\356"
"\356\355\377nql\347\0\0\0\1\377\377\377\0\377\377\377\0jnjHqso\337ik"
"f\377hjf\377gie\377gid\377fhd\377egc\377egb\377dfb\377cea\377lni\341"
"ffcK\377\377\377\0\377\377\377\0\377\377\377\0"};

View File

@ -55,23 +55,24 @@
#include "ui/gtk/filter_dlg.h"
#include "ui/gtk/dlg_utils.h"
#include "ui/gtk/file_dlg.h"
#include "ui/gtk/stock_icons.h"
#include "ui/gtk/capture_file_dlg.h"
#include "ui/gtk/help_dlg.h"
#include "ui/gtk/gtkglobals.h"
#include "ui/gtk/cfilter_combo_utils.h"
#include "ui/gtk/capture_if_dlg.h"
#include "ui/gtk/main_welcome.h"
#include "ui/gtk/network_icons.h"
#include "ui/gtk/menus.h"
#include "ui/gtk/prefs_dlg.h"
#include "ui/gtk/main_80211_toolbar.h"
#include "ui/gtk/stock_icons.h"
#ifndef HAVE_GRESOURCE
#include "ui/gtk/pixbuf-csource.h"
#endif
#include "simple_dialog.h"
#include "ui/gtk/keys.h"
#include "ui/gtk/old-gtk-compat.h"
#include "ui/gtk/expert_indicators.h"
#ifdef HAVE_AIRPCAP
#include <caputils/airpcap.h>
@ -1970,10 +1971,18 @@ add_page(gchar *name, gchar *text, gboolean error)
model = gtk_tree_view_get_model(GTK_TREE_VIEW(view));
gtk_list_store_append (GTK_LIST_STORE(model), &iter);
if (error) {
#ifdef HAVE_GRESOURCE
icon = pixbuf_to_widget("/org/wireshark/image/toolbar/14x14/x-expert-error.png");
#else
icon = pixbuf_to_widget(expert_error_pb_data);
#endif
gtk_list_store_set(GTK_LIST_STORE(model), &iter, COMPILE_ERROR, 1, SIGN, gtk_image_get_pixbuf(GTK_IMAGE(icon)), INAME, name, -1);
} else {
#ifdef HAVE_GRESOURCE
icon = pixbuf_to_widget("/org/wireshark/image/expert_ok.png");
#else
icon = pixbuf_to_widget(expert_ok_pb_data);
#endif
gtk_list_store_set(GTK_LIST_STORE(model), &iter, COMPILE_ERROR, 0, SIGN, gtk_image_get_pixbuf(GTK_IMAGE(icon)), INAME, name, -1);
}
g_hash_table_insert(compile_results, name, text);

View File

@ -46,6 +46,9 @@
#endif
#include "ui/gtk/stock_icons.h"
#ifndef HAVE_GRESOURCE
#include "ui/gtk/pixbuf-csource.h"
#endif
#include "ui/gtk/capture_dlg.h"
#include "ui/gtk/capture_if_dlg.h"
#include "ui/gtk/gui_utils.h"
@ -55,8 +58,6 @@
#include "ui/gtk/help_dlg.h"
#include "ui/gtk/keys.h"
#include "ui/gtk/webbrowser.h"
#include "ui/gtk/network_icons.h"
#include "ui/gtk/pipe_icon.h"
#include "ui/gtk/main_welcome.h"
#include "ui/gtk/old-gtk-compat.h"
@ -67,10 +68,6 @@
#include "../../image/toolbar/capture_airpcap_16.xpm"
#endif
#if defined(HAVE_PCAP_REMOTE)
#include "ui/gtk/remote_icons.h"
#endif
#include "../../image/toolbar/modem_16.xpm"
#include "../../image/toolbar/network_virtual_16.xpm"
@ -399,44 +396,44 @@ GtkWidget * capture_get_if_icon(interface_t *device)
{
#ifdef HAVE_PCAP_REMOTE
if (!device->local) {
return pixbuf_to_widget(remote_sat_pb_data);
return PIXBUF_TO_WIDGET(remote_sat_pb_data, "/org/wireshark/image/toolbar/remote_sat_16.png");
}
#endif
if (device->display_name && strstr(device->display_name,"Wi-Fi") != NULL) {
return pixbuf_to_widget(network_wireless_pb_data);
return PIXBUF_TO_WIDGET(network_wireless_pb_data, "/org/wireshark/image/toolbar/network_wireless_16.png");
}
switch (device->type) {
case IF_DIALUP:
return xpm_to_widget(modem_16_xpm);
case IF_WIRELESS:
return pixbuf_to_widget(network_wireless_pb_data);
return PIXBUF_TO_WIDGET(network_wireless_pb_data, "/org/wireshark/image/toolbar/network_wireless_16.png");
#ifdef HAVE_AIRPCAP
case IF_AIRPCAP:
return xpm_to_widget(capture_airpcap_16_xpm);
#endif
case IF_BLUETOOTH:
return pixbuf_to_widget(network_bluetooth_pb_data);
return PIXBUF_TO_WIDGET(network_bluetooth_pb_data, "/org/wireshark/image/toolbar/network_bluetooth_16.png");
case IF_USB:
return pixbuf_to_widget(network_usb_pb_data);
return PIXBUF_TO_WIDGET(network_usb_pb_data, "/org/wireshark/image/toolbar/network_usb_16.png");
case IF_VIRTUAL:
return xpm_to_widget(network_virtual_16_xpm);
case IF_WIRED:
return pixbuf_to_widget(network_wired_pb_data);
return PIXBUF_TO_WIDGET(network_wired_pb_data, "/org/wireshark/image/toolbar/network_wired_16.png");
#ifdef HAVE_EXTCAP
case IF_EXTCAP:
#ifdef _WIN32
if (strncmp(device->friendly_name, "USBPcap", 7) == 0) {
return pixbuf_to_widget(network_usb_pb_data);
return PIXBUF_TO_WIDGET(network_usb_pb_data, "/org/wireshark/image/toolbar/network_usb_16.png");
}
#endif
#endif
case IF_PIPE:
case IF_STDIN:
return pixbuf_to_widget(pipe_pb_data);
return PIXBUF_TO_WIDGET(pipe_pb_data, "/org/wireshark/image/toolbar/pipe_16.png");
default:
printf("unknown device type\n");
}
return pixbuf_to_widget(network_wired_pb_data);
return PIXBUF_TO_WIDGET(network_wired_pb_data, "/org/wireshark/image/toolbar/network_wired_16.png");
}

View File

@ -41,10 +41,11 @@
#include "ui/gtk/help_dlg.h"
#include "ui/gtk/expert_comp_dlg.h"
#include "ui/gtk/main.h"
#include "ui/gtk/expert_indicators.h"
#ifndef HAVE_GRESOURCE
#include "ui/gtk/pixbuf-csource.h"
#endif
#include "ui/gtk/packet_panes.h"
#include "ui/gtk/edit_packet_comment_dlg.h"
#include "ui/gtk/capture_comment_icons.h"
#include "ui/gtk/gtkglobals.h"
void register_tap_listener_expert_comp(void);
@ -833,7 +834,11 @@ expert_comp_init(const char *opt_arg _U_, void* userdata _U_)
gtk_widget_show(ss->error_label);
hbox = ws_gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 3, FALSE);
if ( prefs.gui_expert_composite_eyecandy ) {
#ifdef HAVE_GRESOURCE
image = pixbuf_to_widget("/org/wireshark/image/toolbar/14x14/x-expert-error.png");
#else
image = pixbuf_to_widget(expert_error_pb_data);
#endif
gtk_widget_show(image);
gtk_box_pack_start(GTK_BOX(hbox), image, TRUE, TRUE, 0);
}
@ -847,7 +852,11 @@ expert_comp_init(const char *opt_arg _U_, void* userdata _U_)
gtk_widget_show(ss->warn_label);
hbox = ws_gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 3, FALSE);
if ( prefs.gui_expert_composite_eyecandy ) {
#ifdef HAVE_GRESOURCE
image = pixbuf_to_widget("/org/wireshark/image/toolbar/14x14/x-expert-warn.png");
#else
image = pixbuf_to_widget(expert_warn_pb_data);
#endif
gtk_widget_show(image);
gtk_box_pack_start(GTK_BOX(hbox), image, TRUE, TRUE, 0);
@ -862,7 +871,11 @@ expert_comp_init(const char *opt_arg _U_, void* userdata _U_)
gtk_widget_show(ss->note_label);
hbox = ws_gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 3, FALSE);
if ( prefs.gui_expert_composite_eyecandy ) {
#ifdef HAVE_GRESOURCE
image = pixbuf_to_widget("/org/wireshark/image/toolbar/14x14/x-expert-note.png");
#else
image = pixbuf_to_widget(expert_note_pb_data);
#endif
gtk_widget_show(image);
gtk_box_pack_start(GTK_BOX(hbox), image, TRUE, TRUE, 0);
}
@ -876,7 +889,11 @@ expert_comp_init(const char *opt_arg _U_, void* userdata _U_)
gtk_widget_show(ss->chat_label);
hbox = ws_gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 3, FALSE);
if ( prefs.gui_expert_composite_eyecandy ) {
#ifdef HAVE_GRESOURCE
image = pixbuf_to_widget("/org/wireshark/image/toolbar/14x14/x-expert-chat.png");
#else
image = pixbuf_to_widget(expert_chat_pb_data);
#endif
gtk_widget_show(image);
gtk_box_pack_start(GTK_BOX(hbox), image, TRUE, TRUE, 0);