[PATCH] Add a sidebar to the hub windows (#1045250)
Chris Lumens
clumens at redhat.com
Mon Jan 6 21:05:06 UTC 2014
> +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
More information about the anaconda-patches
mailing list