forked from 3snowp7im/urn
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathurn-component.c
28 lines (24 loc) · 996 Bytes
/
urn-component.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include "urn-component.h"
UrnComponent *urn_component_title_new();
UrnComponent *urn_component_splits_new();
UrnComponent *urn_component_timer_new();
UrnComponent *urn_component_prev_segment_new();
UrnComponent *urn_component_best_sum_new();
UrnComponent *urn_component_pb_new();
UrnComponent *urn_component_wr_new();
UrnComponentAvailable urn_components[] = {
{"title", urn_component_title_new},
{"splits", urn_component_splits_new},
{"timer", urn_component_timer_new},
{"prev-segment", urn_component_prev_segment_new},
{"best-sum", urn_component_best_sum_new},
{"pb", urn_component_pb_new},
{"wr", urn_component_wr_new},
{NULL, NULL}
};
void add_class(GtkWidget *widget, const char *class) {
gtk_style_context_add_class(gtk_widget_get_style_context(widget), class);
}
void remove_class(GtkWidget *widget, const char *class) {
gtk_style_context_remove_class(gtk_widget_get_style_context(widget), class);
}