Author: rpmcruz
Date: Sun Nov 30 05:18:57 2008
New Revision: 53755
URL: http://svn.opensuse.org/viewcvs/yast?rev=53755&view=rev
Log:
* src/ygtkwizard.c: ensure header text is black to contrast with the
white background (independent of style).
Modified:
trunk/gtk/ChangeLog
trunk/gtk/src/ygtkwizard.c
Modified: trunk/gtk/ChangeLog
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/ChangeLog?rev=53755&r1=53754&r2=53755&view=diff
==============================================================================
--- trunk/gtk/ChangeLog (original)
+++ trunk/gtk/ChangeLog Sun Nov 30 05:18:57 2008
@@ -1,3 +1,8 @@
+2008-11-30 Ricardo Cruz
+
+ * src/ygtkwizard.c: ensure header text is black to contrast with the
+ white background (independent of style).
+
2008-11-28 Ricardo Cruz
* src/YGBarGraph.cc (YPartitionSplitter): fix for arabic: tell GTK
Modified: trunk/gtk/src/ygtkwizard.c
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/ygtkwizard.c?rev=53755&r1=53754&r2=53755&view=diff
==============================================================================
--- trunk/gtk/src/ygtkwizard.c (original)
+++ trunk/gtk/src/ygtkwizard.c Sun Nov 30 05:18:57 2008
@@ -373,10 +373,13 @@
gtk_misc_set_alignment (GTK_MISC (header->title), 0, 0.5);
ygutils_setWidgetFont (header->title, PANGO_STYLE_NORMAL, PANGO_WEIGHT_BOLD,
PANGO_SCALE_X_LARGE);
+ GdkColor black = { 0, 0, 0, 0 }; // set text to black cause of some style colors
+ gtk_widget_modify_fg (header->title, GTK_STATE_NORMAL, &black);
header->description = ygtk_link_label_new ("", _("more"));
g_signal_connect (G_OBJECT (header->description), "link-clicked",
G_CALLBACK (description_link_clicked_cb), header);
+ gtk_widget_modify_fg (header->description, GTK_STATE_NORMAL, &black);
header->icon = gtk_image_new();
@@ -401,6 +404,8 @@
static void ygtk_wizard_header_class_init (YGtkWizardHeaderClass *klass)
{
+ ygtk_wizard_header_parent_class = g_type_class_peek_parent (klass);
+
more_clicked_signal = g_signal_new ("more-clicked",
G_TYPE_FROM_CLASS (G_OBJECT_CLASS (klass)), G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (YGtkWizardHeaderClass, more_clicked), NULL, NULL,
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org