diff options
author | João Valverde <joao.valverde@tecnico.ulisboa.pt> | 2015-10-17 13:47:17 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2015-11-12 07:14:32 +0000 |
commit | 2d7b0fc7d046154a393c9a1e5f4b2e9b5fee3738 (patch) | |
tree | 8b14d373b97ea9162a46e8b61f42919f2a6c5514 /ui/gtk/about_dlg.c | |
parent | 1ab019f409f2855d3b51717a237cc482242887e9 (diff) |
[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>
Diffstat (limited to 'ui/gtk/about_dlg.c')
-rw-r--r-- | ui/gtk/about_dlg.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ui/gtk/about_dlg.c b/ui/gtk/about_dlg.c index 0ed474af9b..9c0ad96742 100644 --- a/ui/gtk/about_dlg.c +++ b/ui/gtk/about_dlg.c @@ -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); |