6 #pragma GCC diagnostic ignored "-Wstrict-prototypes"
8 #pragma GCC diagnostic error "-Wstrict-prototypes"
11 struct perf_gtk_context {
12 GtkWidget *main_window;
15 #ifdef HAVE_GTK_INFO_BAR
17 GtkWidget *message_label;
23 extern struct perf_gtk_context *pgctx;
25 static inline bool perf_gtk__is_active_context(struct perf_gtk_context *ctx)
27 return ctx && ctx->main_window;
30 struct perf_gtk_context *perf_gtk__activate_context(GtkWidget *window);
31 int perf_gtk__deactivate_context(struct perf_gtk_context **ctx);
33 void perf_gtk__init_helpline(void);
34 void perf_gtk__init_progress(void);
35 void perf_gtk__init_hpp(void);
37 void perf_gtk__signal(int sig);
38 void perf_gtk__resize_window(GtkWidget *window);
39 const char *perf_gtk__get_percent_color(double percent);
40 GtkWidget *perf_gtk__setup_statusbar(void);
42 #ifdef HAVE_GTK_INFO_BAR
43 GtkWidget *perf_gtk__setup_info_bar(void);
45 static inline GtkWidget *perf_gtk__setup_info_bar(void)
51 #endif /* _PERF_GTK_H_ */