- temp = "window.inactive.button-%s.toggled.unpressed.image.color";
- temp2 = g_malloc(strlen(temp) - 2 + strlen(btnname) + 1);
- g_sprintf(temp2, temp, btnname);
-
- stemp = "window.inactive.button-%s.toggled.image.color";
- stemp2 = g_malloc(strlen(stemp) - 2 + strlen(btnname) + 1);
- g_sprintf(stemp2, stemp, btnname);
-
- READ_COLOR_(temp2, stemp2, btn->toggled_unfocused_unpressed_color,
- RrColorCopy(theme->titlebut_toggled_unfocused_unpressed_color));
-
- g_free(temp2);
- g_free(stemp2);
+ name = g_strdup_printf("window.inactive.button.%s.toggled."
+ "unpressed.image.color", btnname);
+ READ_COLOR(name, btn->toggled_unfocused_unpressed_color,
+ RrColorCopy(theme->titlebut_toggled_unfocused_unpressed_color));
+ g_free(name);