Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Posts by Newbyte
I have a program that reads a hexadecimal string representation from a configuration file, turns it into a GdkRGBA struct from Gdk, uses gtk_color_dialog_button_set_rgba () to set it as the default...
I ended up implementing it like this: #define RGB_HEX_STRING_LENGTH 8 gchar * gdkrgba_to_rgb_hex_string (const GdkRGBA *const from) { guchar red = roundf (from->red * 255.0f); guchar...