Mercurial > pidgin.yaz
comparison src/gtkconv.c @ 4577:00e46bfa0eba
[gaim-migrate @ 4858]
this should fix the tab coloring issues in gtk 2.2.1
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Wed, 12 Feb 2003 03:42:56 +0000 |
parents | 06084165a966 |
children | 3db8a7cfd971 |
comparison
equal
deleted
inserted
replaced
4576:c7569367ed87 | 4577:00e46bfa0eba |
---|---|
4112 gtk_style_set_font(style, | 4112 gtk_style_set_font(style, |
4113 gdk_font_ref(gtk_style_get_font(gtk_widget_get_style( | 4113 gdk_font_ref(gtk_style_get_font(gtk_widget_get_style( |
4114 gtkconv->tab_label)))); | 4114 gtkconv->tab_label)))); |
4115 | 4115 |
4116 if (im != NULL && gaim_im_get_typing_state(im) == TYPING) { | 4116 if (im != NULL && gaim_im_get_typing_state(im) == TYPING) { |
4117 style->fg[0].red = 0x4646; | 4117 style->fg[GTK_STATE_NORMAL].red = 0x4646; |
4118 style->fg[0].green = 0xA0A0; | 4118 style->fg[GTK_STATE_NORMAL].green = 0xA0A0; |
4119 style->fg[0].blue = 0x4646; | 4119 style->fg[GTK_STATE_NORMAL].blue = 0x4646; |
4120 style->fg[GTK_STATE_ACTIVE] = style->fg[GTK_STATE_NORMAL]; | |
4120 } | 4121 } |
4121 else if (im != NULL && gaim_im_get_typing_state(im) == TYPED) { | 4122 else if (im != NULL && gaim_im_get_typing_state(im) == TYPED) { |
4122 style->fg[0].red = 0xD1D1; | 4123 style->fg[GTK_STATE_NORMAL].red = 0xD1D1; |
4123 style->fg[0].green = 0x9494; | 4124 style->fg[GTK_STATE_NORMAL].green = 0x9494; |
4124 style->fg[0].blue = 0x0C0C; | 4125 style->fg[GTK_STATE_NORMAL].blue = 0x0C0C; |
4126 style->fg[GTK_STATE_ACTIVE] = style->fg[GTK_STATE_NORMAL]; | |
4125 } | 4127 } |
4126 else if (gaim_conversation_get_unseen(conv) == GAIM_UNSEEN_NICK) { | 4128 else if (gaim_conversation_get_unseen(conv) == GAIM_UNSEEN_NICK) { |
4127 style->fg[0].red = 0x3131; | 4129 style->fg[GTK_STATE_ACTIVE].red = 0x3131; |
4128 style->fg[0].green = 0x4E4E; | 4130 style->fg[GTK_STATE_ACTIVE].green = 0x4E4E; |
4129 style->fg[0].blue = 0x6C6C; | 4131 style->fg[GTK_STATE_ACTIVE].blue = 0x6C6C; |
4130 } | 4132 } |
4131 else if (gaim_conversation_get_unseen(conv) == GAIM_UNSEEN_TEXT) { | 4133 else if (gaim_conversation_get_unseen(conv) == GAIM_UNSEEN_TEXT) { |
4132 style->fg[0].red = 0xDFDF; | 4134 style->fg[GTK_STATE_ACTIVE].red = 0xDFDF; |
4133 style->fg[0].green = 0x4242; | 4135 style->fg[GTK_STATE_ACTIVE].green = 0x4242; |
4134 style->fg[0].blue = 0x1E1E; | 4136 style->fg[GTK_STATE_ACTIVE].blue = 0x1E1E; |
4135 } | 4137 } |
4136 | 4138 |
4137 gtk_widget_set_style(gtkconv->tab_label, style); | 4139 gtk_widget_set_style(gtkconv->tab_label, style); |
4138 gtk_style_unref(style); | 4140 gtk_style_unref(style); |
4139 } | 4141 } |