Added gm_color_table_get_hex function

This commit is contained in:
Jesse van den Kieboom 2005-10-11 09:42:53 +00:00
parent fea7a2f2b0
commit 6469efbbdc
1 changed files with 13 additions and 0 deletions

View File

@ -222,6 +222,19 @@ gm_color_table_get(GmColorTable *table, const gchar *name, GdkColor *color) {
}
}
const gchar *
gm_color_table_get_hex(GmColorTable *table, const gchar *name) {
GmColorTableItem *item;
item = g_hash_table_lookup(table->priv->colors, name);
if (item != NULL) {
return item->hex;
} else {
return FALSE;
}
}
void
gm_color_table_set_bold(GmColorTable *table, gboolean bold) {
if (table->priv->bold != bold) {