3 Commits

Author SHA1 Message Date
b067bb3596 restrict input redraws to the entry widget 2026-09-17 10:07:33 -06:00
deepend-tildeclub
61ff308c9f Merge pull request #395 from B4reMetal/fix-userlist-color-pref
fix(userlist): decouple userlist nick colors from text_color_nicks
2026-09-16 14:00:16 -07:00
BareMetal
15905bebb1 fix(userlist): decouple userlist nick colors from text_color_nicks 2026-09-15 19:38:34 -06:00
3 changed files with 5 additions and 14 deletions

View File

@@ -1266,8 +1266,6 @@ attr_list_has_attrs (PangoAttrList *attrs)
static void static void
sexy_spell_entry_recheck_all(SexySpellEntry *entry) sexy_spell_entry_recheck_all(SexySpellEntry *entry)
{ {
GdkRectangle rect;
GtkAllocation allocation;
GtkWidget *widget = GTK_WIDGET(entry); GtkWidget *widget = GTK_WIDGET(entry);
int length, i, text_len; int length, i, text_len;
const char *text; const char *text;
@@ -1299,15 +1297,8 @@ sexy_spell_entry_recheck_all(SexySpellEntry *entry)
gtk_entry_set_attributes (GTK_ENTRY (entry), attr_list_has_attrs (entry->priv->attr_list) ? entry->priv->attr_list : NULL); gtk_entry_set_attributes (GTK_ENTRY (entry), attr_list_has_attrs (entry->priv->attr_list) ? entry->priv->attr_list : NULL);
if (gtk_widget_get_realized (GTK_WIDGET(entry))) /* GtkEntry shares its parent's GdkWindow in GTK3; redraw the widget area. */
{ gtk_widget_queue_draw (widget);
gtk_widget_get_allocation (GTK_WIDGET(entry), &allocation);
rect.x = 0; rect.y = 0;
rect.width = allocation.width;
rect.height = allocation.height;
gdk_window_invalidate_rect(gtk_widget_get_window (widget), &rect, TRUE);
}
} }
static gboolean static gboolean

View File

@@ -683,7 +683,7 @@ theme_manager_get_userlist_palette_behavior (const PangoFontDescription *font_de
behavior.font_desc = font_desc; behavior.font_desc = font_desc;
behavior.apply_background = TRUE; behavior.apply_background = TRUE;
behavior.apply_foreground = (prefs.hex_gui_ulist_color || prefs.hex_text_color_nicks) ? FALSE : TRUE; behavior.apply_foreground = prefs.hex_gui_ulist_color ? FALSE : TRUE;
return behavior; return behavior;
} }

View File

@@ -594,7 +594,7 @@ fe_userlist_rehash (session *sess, struct User *user)
nick_token = THEME_TOKEN_TAB_AWAY; nick_token = THEME_TOKEN_TAB_AWAY;
have_nick_token = TRUE; have_nick_token = TRUE;
} }
else if (prefs.hex_gui_ulist_color || prefs.hex_text_color_nicks) else if (prefs.hex_gui_ulist_color)
{ {
int mirc_index = text_color_of (user->nick); int mirc_index = text_color_of (user->nick);
@@ -635,7 +635,7 @@ fe_userlist_insert (session *sess, struct User *newuser, gboolean sel)
nick_token = THEME_TOKEN_TAB_AWAY; nick_token = THEME_TOKEN_TAB_AWAY;
have_nick_token = TRUE; have_nick_token = TRUE;
} }
else if (prefs.hex_gui_ulist_color || prefs.hex_text_color_nicks) else if (prefs.hex_gui_ulist_color)
{ {
int mirc_index = text_color_of (newuser->nick); int mirc_index = text_color_of (newuser->nick);