#include <glib/gi18n-lib.h>
#include <dbus/dbus-protocol.h>
-#include <tp-account-widgets/tpaw-utils.h>
#include "tpaw-account-widget-irc.h"
#include "tpaw-account-widget-private.h"
#include "tpaw-account-widget-sip.h"
#include "empathy-ui-utils.h"
#include "empathy-utils.h"
+#include "tpaw-utils.h"
#define DEBUG_FLAG EMPATHY_DEBUG_ACCOUNT
#include "empathy-debug.h"
* gives a colour which is inline with the theme but
* slightly whiter.
*/
- empathy_make_color_whiter (&color);
+ tpaw_make_color_whiter (&color);
gtk_widget_override_background_color (GTK_WIDGET (entry), 0, &color);
}
return service_name;
}
+
+void
+tpaw_make_color_whiter (GdkRGBA *color)
+{
+ const GdkRGBA white = { 1.0, 1.0, 1.0, 1.0 };
+
+ color->red = (color->red + white.red) / 2;
+ color->green = (color->green + white.green) / 2;
+ color->blue = (color->blue + white.blue) / 2;
+}
#define __TPAW_UTILS_H__
#include <glib.h>
+#include <gtk/gtk.h>
#include <telepathy-glib/telepathy-glib.h>
G_BEGIN_DECLS
const gchar *tpaw_protocol_name_to_display_name (const gchar *proto_name);
const gchar *tpaw_service_name_to_display_name (const gchar *proto_name);
+void tpaw_make_color_whiter (GdkRGBA *color);
+
G_END_DECLS
#endif /* __TPAW_UTILS_H__ */