[xchat-gnome] Revert "Bug 592932 - Remove redundant version checks."
- From: Ritesh Khadgaray <rkhadgaray src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [xchat-gnome] Revert "Bug 592932 - Remove redundant version checks."
- Date: Wed, 7 Apr 2010 07:03:22 +0000 (UTC)
commit e3dc16e50d1e519397dbb55d71f27ed6886d8d4b
Author: Adam Buchbinder <adam buchbinder gmail com>
Date: Wed Apr 7 11:46:21 2010 +0530
Revert "Bug 592932 - Remove redundant version checks."
This reverts commit f725dac607f25b8f08e0abb2faaadd3fe878ef4f. That
commit deleted the wrong lines; the following one will delete the
right ones.
src/fe-gnome/xtext.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/fe-gnome/xtext.c b/src/fe-gnome/xtext.c
index 4dd12e7..92562a3 100644
--- a/src/fe-gnome/xtext.c
+++ b/src/fe-gnome/xtext.c
@@ -1334,7 +1334,7 @@ gtk_xtext_draw_marker (GtkXText * xtext, textentry * ent, int y)
gdk_draw_line (xtext->draw_buf, xtext->marker_gc, x, render_y, x + width, render_y);
- if (GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (xtext)))->has_focus)
+ if (gtk_window_has_toplevel_focus (GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (xtext)))))
{
xtext->buffer->marker_seen = TRUE;
}
@@ -4911,7 +4911,7 @@ gtk_xtext_append_entry (xtext_buffer *buf, textentry * ent, time_t stamp)
if (buf->reset_marker_pos ||
((buf->marker_pos == NULL || buf->marker_seen) && (buf->xtext->buffer != buf ||
- !(GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (buf->xtext))))->has_focus)))
+ !gtk_window_has_toplevel_focus (GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (buf->xtext)))))))
{
buf->marker_pos = ent;
dontscroll (buf); /* force scrolling off */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]