[Xfce4-commits] [apps/xfce4-dict] 01/02: Show correct colors (Bug #15946)

noreply at xfce.org noreply at xfce.org
Fri Oct 4 04:57:40 CEST 2019


This is an automated email from the git hooks/post-receive script.

a   n   d   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfce4-dict.

commit 1606807a9fb9edd4d71e43a31d2909f976c31db3
Author: Andre Miranda <andreldm at xfce.org>
Date:   Thu Oct 3 23:56:48 2019 -0300

    Show correct colors (Bug #15946)
---
 lib/dictd.c | 2 +-
 lib/gui.c   | 8 ++++----
 lib/prefs.c | 8 ++++----
 3 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/lib/dictd.c b/lib/dictd.c
index 24aec64..33c151c 100644
--- a/lib/dictd.c
+++ b/lib/dictd.c
@@ -199,7 +199,7 @@ static GtkTextTag *create_tag(DictData *dd, const gchar *link_str)
 
 	tag = gtk_text_buffer_create_tag(dd->main_textbuffer, NULL,
 		"underline", PANGO_UNDERLINE_SINGLE,
-		"foreground-gdk", dd->color_link, NULL);
+		"foreground-rgba", dd->color_link, NULL);
 
 	g_object_set_data_full(G_OBJECT(tag), TAG_LINK, g_strdup(link_str), g_free);
 
diff --git a/lib/gui.c b/lib/gui.c
index 5315843..03abee1 100644
--- a/lib/gui.c
+++ b/lib/gui.c
@@ -904,18 +904,18 @@ void dict_gui_create_main_window(DictData *dd)
 	dd->error_tag = gtk_text_buffer_create_tag(dd->main_textbuffer,
 			TAG_ERROR,
 			"style", PANGO_STYLE_ITALIC,
-			"foreground-gdk", dd->color_incorrect, NULL);
+			"foreground-rgba", dd->color_incorrect, NULL);
 	dd->success_tag = gtk_text_buffer_create_tag(dd->main_textbuffer,
 			TAG_SUCCESS,
-			"foreground-gdk", dd->color_correct, NULL);
+			"foreground-rgba", dd->color_correct, NULL);
 	dd->phon_tag = gtk_text_buffer_create_tag(dd->main_textbuffer,
 			TAG_PHONETIC,
 			"style", PANGO_STYLE_ITALIC,
-			"foreground-gdk", dd->color_phonetic, NULL);
+			"foreground-rgba", dd->color_phonetic, NULL);
 	dd->link_tag = gtk_text_buffer_create_tag(dd->main_textbuffer,
 			TAG_LINK,
 			"underline", PANGO_UNDERLINE_SINGLE,
-			"foreground-gdk", dd->color_link, NULL);
+			"foreground-rgba", dd->color_link, NULL);
 
 	/* support for links (cross-references) for dictd responses */
 	{
diff --git a/lib/prefs.c b/lib/prefs.c
index e6125f7..3788d6b 100644
--- a/lib/prefs.c
+++ b/lib/prefs.c
@@ -141,10 +141,10 @@ void dict_prefs_dialog_response(GtkWidget *dlg, gint response, DictData *dd)
 		dd->panel_entry_size = gtk_spin_button_get_value_as_int(
 					GTK_SPIN_BUTTON(g_object_get_data(G_OBJECT(dlg), "panel_entry_size_spinner")));
 	}
-	g_object_set(G_OBJECT(dd->link_tag), "foreground-gdk", dd->color_link, NULL);
-	g_object_set(G_OBJECT(dd->phon_tag), "foreground-gdk", dd->color_phonetic, NULL);
-	g_object_set(G_OBJECT(dd->error_tag), "foreground-gdk", dd->color_incorrect, NULL);
-	g_object_set(G_OBJECT(dd->success_tag), "foreground-gdk", dd->color_correct, NULL);
+	g_object_set(G_OBJECT(dd->link_tag), "foreground-rgba", dd->color_link, NULL);
+	g_object_set(G_OBJECT(dd->phon_tag), "foreground-rgba", dd->color_phonetic, NULL);
+	g_object_set(G_OBJECT(dd->error_tag), "foreground-rgba", dd->color_incorrect, NULL);
+	g_object_set(G_OBJECT(dd->success_tag), "foreground-rgba", dd->color_correct, NULL);
 
 	/* save settings */
 	dict_write_rc_file(dd);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list