mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-09-18 05:39:57 +00:00
Compare commits
2 Commits
fix-issue-
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
64a9c6e5d7 | ||
| 66196013bc |
@@ -1266,6 +1266,8 @@ 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;
|
||||||
@@ -1297,8 +1299,15 @@ 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);
|
||||||
|
|
||||||
/* GtkEntry shares its parent's GdkWindow in GTK3; redraw the widget area. */
|
if (gtk_widget_get_realized (GTK_WIDGET(entry)))
|
||||||
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
|
||||||
|
|||||||
@@ -3172,7 +3172,7 @@ gtk_xtext_selection_get (GtkWidget * widget,
|
|||||||
if (!window || !GDK_IS_WINDOW (window))
|
if (!window || !GDK_IS_WINDOW (window))
|
||||||
break;
|
break;
|
||||||
display = gdk_window_get_display (window);
|
display = gdk_window_get_display (window);
|
||||||
if (!display)
|
if (!display || !GDK_IS_X11_DISPLAY (display))
|
||||||
break;
|
break;
|
||||||
GdkAtom encoding;
|
GdkAtom encoding;
|
||||||
gint format;
|
gint format;
|
||||||
|
|||||||
Reference in New Issue
Block a user