+static int get_sidebar_width(GtkWidget *window) {
+ GtkAllocation allocation;
+ /* change value below to make sidebar bigger / smaller */
+ float sidebar_width_percentage = .18;
+ gtk_widget_get_allocation(window, &allocation);
+ return allocation.width * sidebar_width_percentage;
+}
What are the odds this constant will always be the same as the one for
spokes? If good, it should be a global constant in a header file
somewhere, so it only needs to be defined the once.
- Chris