Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
gtk.h
Go to the documentation of this file.
1 #ifndef _PERF_GTK_H_
2 #define _PERF_GTK_H_ 1
3 
4 #include <stdbool.h>
5 
6 #pragma GCC diagnostic ignored "-Wstrict-prototypes"
7 #include <gtk/gtk.h>
8 #pragma GCC diagnostic error "-Wstrict-prototypes"
9 
10 
12  GtkWidget *main_window;
13 
14 #ifdef HAVE_GTK_INFO_BAR
15  GtkWidget *info_bar;
16  GtkWidget *message_label;
17 #endif
18  GtkWidget *statbar;
20 };
21 
22 extern struct perf_gtk_context *pgctx;
23 
24 static inline bool perf_gtk__is_active_context(struct perf_gtk_context *ctx)
25 {
26  return ctx && ctx->main_window;
27 }
28 
31 
32 void perf_gtk__init_helpline(void);
33 void perf_gtk__init_hpp(void);
34 
35 #ifndef HAVE_GTK_INFO_BAR
36 static inline GtkWidget *perf_gtk__setup_info_bar(void)
37 {
38  return NULL;
39 }
40 #endif
41 
42 #endif /* _PERF_GTK_H_ */