6 #pragma GCC diagnostic ignored "-Wstrict-prototypes"
8 #pragma GCC diagnostic error "-Wstrict-prototypes"
11 struct perf_gtk_context {
12 GtkWidget *main_window;
14 #ifdef HAVE_GTK_INFO_BAR
16 GtkWidget *message_label;
22 extern struct perf_gtk_context *pgctx;
24 static inline bool perf_gtk__is_active_context(struct perf_gtk_context *ctx)
26 return ctx && ctx->main_window;
29 struct perf_gtk_context *perf_gtk__activate_context(GtkWidget *window);
30 int perf_gtk__deactivate_context(struct perf_gtk_context **ctx);
32 #ifndef HAVE_GTK_INFO_BAR
33 static inline GtkWidget *perf_gtk__setup_info_bar(void)
39 #endif /* _PERF_GTK_H_ */