commit a78d33409f8cb67b7ae8af4ab9f48e5a729a7ea6 from: Oliver Lowe date: Wed Dec 31 05:35:33 2025 UTC quick delete of unused gtk util commit - a80d0752548890b9f9beba6032da439bf73bdc04 commit + a78d33409f8cb67b7ae8af4ab9f48e5a729a7ea6 blob - d510a5432e155767b77e27ebdb980d8357c3a9e4 blob + 4b198467457b55c2d38b5429dfc5de49625cbe35 --- src/gtk/gtkutils.h +++ src/gtk/gtkutils.h @@ -46,13 +46,6 @@ #define GTKUT_CTREE_REFRESH(clist) \ GTK_CMCLIST_GET_CLASS(clist)->refresh(clist) -/* String used in color button labels. - * Instead of hardcoding a size which doesn't look the same on different - * resolutions, use a space;m-space;space label and let GTK to compute - * the appropriate button size for current font. - * This macro is only used in gtkut_set_button_color(). */ -#define GTKUT_COLOR_BUTTON_LABEL "\x20\xE2\x80\x83\x20" - /* Set "color" to the same color as "rgba" */ #define GTKUT_GDKRGBA_TO_GDKCOLOR(rgba, color) { \ color.pixel = 0; \ @@ -61,18 +54,6 @@ color.blue = (guint16)(rgba.blue * 65535); \ } -/* Set "rgba" to the same color as "color" */ -#define GTKUT_GDKCOLOR_TO_GDKRGBA(color, rgba) { \ - rgba.red = (gdouble)color.red / 65535; \ - rgba.green = (gdouble)color.green / 65535; \ - rgba.blue = (gdouble)color.blue / 65535; \ - rgba.alpha = 1.0; \ -} - -#ifdef __cplusplus -extern "C" { -#endif - /* Since GDK's gdk_rgba_to_string() produces a string * representation unsuitable for us, we have to have * our own function to produce a "#rrggbb" string from @@ -236,10 +217,4 @@ gpointer gtkut_tree_view_get_selected_pointer(GtkTreeV GtkTreeIter *_iter); void gtkut_gdk_screen_size_changed (GdkScreen* self, gpointer data); - -#ifdef __cplusplus -} -#endif - - #endif /* __GTKUTILS_H__ */