aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/gtp_stat.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtp_stat.c')
-rw-r--r--gtk/gtp_stat.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtp_stat.c b/gtk/gtp_stat.c
index 21b3f51d9e..5b1b4e31de 100644
--- a/gtk/gtp_stat.c
+++ b/gtk/gtp_stat.c
@@ -53,6 +53,8 @@
#include "gtk/gtkglobals.h"
#include "gtk/main.h"
+#include "gtk/old-gtk-compat.h"
+
/* used to keep track of the statistics for an entire program interface */
typedef struct _gtpstat_t {
GtkWidget *win;
@@ -217,7 +219,7 @@ gtk_gtpstat_init(const char *optarg, void *userdata _U_)
window_present(gtp->win);
cf_retap_packets(&cfile);
- gdk_window_raise(gtp->win->window);
+ gdk_window_raise(gtk_widget_get_window(gtp->win));
}
static tap_param gtp_stat_params[] = {