diff options
author | Steven Rostedt <srostedt@redhat.com> | 2010-04-06 18:44:52 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2010-04-09 11:56:20 -0400 |
commit | c26682a8efa2b8f90e0562ab730f6283b8d70090 (patch) | |
tree | 84b0c0648fb7743d44d3bc064213e239f9a8d305 /trace-graph.c | |
parent | 76654897a4e4c222871dda9ff487be0e72be6a9b (diff) |
kernelshark: Add compat for gtk_widget_set_tooltip_text()
Add a function to handle old gtk libs that do not implement
gtk_widget_set_tooltip_text(). But this compat function only works
with widgets with windows, so there's not much we can do.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'trace-graph.c')
-rw-r--r-- | trace-graph.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/trace-graph.c b/trace-graph.c index 27c139d..0eaa45a 100644 --- a/trace-graph.c +++ b/trace-graph.c | |||
@@ -2609,8 +2609,8 @@ trace_graph_create_with_callbacks(struct tracecmd_input *handle, | |||
2609 | gtk_widget_show(label); | 2609 | gtk_widget_show(label); |
2610 | 2610 | ||
2611 | ginfo->cursor_label = gtk_label_new("0.0"); | 2611 | ginfo->cursor_label = gtk_label_new("0.0"); |
2612 | set_label_cursor(ginfo->cursor_label); | ||
2613 | eventbox = gtk_event_box_new(); | 2612 | eventbox = gtk_event_box_new(); |
2613 | set_label_cursor(eventbox); | ||
2614 | gtk_widget_show(eventbox); | 2614 | gtk_widget_show(eventbox); |
2615 | gtk_widget_modify_bg(eventbox, GTK_STATE_NORMAL, &color); | 2615 | gtk_widget_modify_bg(eventbox, GTK_STATE_NORMAL, &color); |
2616 | gtk_container_add(GTK_CONTAINER(eventbox), ginfo->cursor_label); | 2616 | gtk_container_add(GTK_CONTAINER(eventbox), ginfo->cursor_label); |
@@ -2631,13 +2631,13 @@ trace_graph_create_with_callbacks(struct tracecmd_input *handle, | |||
2631 | 2631 | ||
2632 | 2632 | ||
2633 | label = gtk_label_new("A:"); | 2633 | label = gtk_label_new("A:"); |
2634 | set_label_a(label); | ||
2635 | 2634 | ||
2636 | colorAB.red = 0; | 2635 | colorAB.red = 0; |
2637 | colorAB.green = (0xff) *(65535/255); | 2636 | colorAB.green = (0xff) *(65535/255); |
2638 | colorAB.blue = 0; | 2637 | colorAB.blue = 0; |
2639 | 2638 | ||
2640 | eventbox = gtk_event_box_new(); | 2639 | eventbox = gtk_event_box_new(); |
2640 | set_label_a(eventbox); | ||
2641 | gtk_widget_show(eventbox); | 2641 | gtk_widget_show(eventbox); |
2642 | gtk_widget_modify_bg(eventbox, GTK_STATE_NORMAL, &colorAB); | 2642 | gtk_widget_modify_bg(eventbox, GTK_STATE_NORMAL, &colorAB); |
2643 | gtk_container_add(GTK_CONTAINER(eventbox), label); | 2643 | gtk_container_add(GTK_CONTAINER(eventbox), label); |
@@ -2648,8 +2648,8 @@ trace_graph_create_with_callbacks(struct tracecmd_input *handle, | |||
2648 | gtk_table_attach(GTK_TABLE(table), hbox, 9, 10, 0, 1, GTK_EXPAND, GTK_EXPAND, 3, 3); | 2648 | gtk_table_attach(GTK_TABLE(table), hbox, 9, 10, 0, 1, GTK_EXPAND, GTK_EXPAND, 3, 3); |
2649 | 2649 | ||
2650 | ginfo->marka_label = gtk_label_new("0.0"); | 2650 | ginfo->marka_label = gtk_label_new("0.0"); |
2651 | set_label_a(ginfo->marka_label); | ||
2652 | eventbox = gtk_event_box_new(); | 2651 | eventbox = gtk_event_box_new(); |
2652 | set_label_a(eventbox); | ||
2653 | gtk_widget_show(eventbox); | 2653 | gtk_widget_show(eventbox); |
2654 | gtk_widget_modify_bg(eventbox, GTK_STATE_NORMAL, &color); | 2654 | gtk_widget_modify_bg(eventbox, GTK_STATE_NORMAL, &color); |
2655 | gtk_container_add(GTK_CONTAINER(eventbox), ginfo->marka_label); | 2655 | gtk_container_add(GTK_CONTAINER(eventbox), ginfo->marka_label); |
@@ -2669,13 +2669,13 @@ trace_graph_create_with_callbacks(struct tracecmd_input *handle, | |||
2669 | gtk_widget_show(label); | 2669 | gtk_widget_show(label); |
2670 | 2670 | ||
2671 | label = gtk_label_new("B:"); | 2671 | label = gtk_label_new("B:"); |
2672 | set_label_b(label); | ||
2673 | 2672 | ||
2674 | colorAB.red = (0xff) *(65535/255); | 2673 | colorAB.red = (0xff) *(65535/255); |
2675 | colorAB.green = 0; | 2674 | colorAB.green = 0; |
2676 | colorAB.blue = 0; | 2675 | colorAB.blue = 0; |
2677 | 2676 | ||
2678 | eventbox = gtk_event_box_new(); | 2677 | eventbox = gtk_event_box_new(); |
2678 | set_label_b(eventbox); | ||
2679 | gtk_widget_show(eventbox); | 2679 | gtk_widget_show(eventbox); |
2680 | gtk_widget_modify_bg(eventbox, GTK_STATE_NORMAL, &colorAB); | 2680 | gtk_widget_modify_bg(eventbox, GTK_STATE_NORMAL, &colorAB); |
2681 | gtk_container_add(GTK_CONTAINER(eventbox), label); | 2681 | gtk_container_add(GTK_CONTAINER(eventbox), label); |
@@ -2687,8 +2687,8 @@ trace_graph_create_with_callbacks(struct tracecmd_input *handle, | |||
2687 | gtk_widget_show(label); | 2687 | gtk_widget_show(label); |
2688 | 2688 | ||
2689 | ginfo->markb_label = gtk_label_new("0.0"); | 2689 | ginfo->markb_label = gtk_label_new("0.0"); |
2690 | set_label_b(ginfo->markb_label); | ||
2691 | eventbox = gtk_event_box_new(); | 2690 | eventbox = gtk_event_box_new(); |
2691 | set_label_b(eventbox); | ||
2692 | gtk_widget_show(eventbox); | 2692 | gtk_widget_show(eventbox); |
2693 | gtk_widget_modify_bg(eventbox, GTK_STATE_NORMAL, &color); | 2693 | gtk_widget_modify_bg(eventbox, GTK_STATE_NORMAL, &color); |
2694 | gtk_container_add(GTK_CONTAINER(eventbox), ginfo->markb_label); | 2694 | gtk_container_add(GTK_CONTAINER(eventbox), ginfo->markb_label); |