[xchat-gnome] Bug 592932 - Remove redundant version checks.
- From: Ritesh Khadgaray <rkhadgaray src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [xchat-gnome] Bug 592932 - Remove redundant version checks.
- Date: Fri, 11 Sep 2009 20:15:05 +0000 (UTC)
commit f725dac607f25b8f08e0abb2faaadd3fe878ef4f
Author: Adam Buchbinder <adam buchbinder gmail com>
Date: Sat Sep 12 01:43:16 2009 +0530
Bug 592932 - Remove redundant version checks.
We can do this because configure.ac currently assumes >=2.18.
Not touching src/common dir, to minimize the difference with upstream
src/fe-gnome/xtext.c | 8 --------
1 files changed, 0 insertions(+), 8 deletions(-)
---
diff --git a/src/fe-gnome/xtext.c b/src/fe-gnome/xtext.c
index d9b3576..22d8ccb 100644
--- a/src/fe-gnome/xtext.c
+++ b/src/fe-gnome/xtext.c
@@ -1334,11 +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_CHECK_VERSION(2,4,0)
- if (gtk_window_has_toplevel_focus (GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (xtext)))))
-#else
if (GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (xtext)))->has_focus)
-#endif
{
xtext->buffer->marker_seen = TRUE;
}
@@ -4915,11 +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 ||
-#if GTK_CHECK_VERSION(2,4,0)
- !gtk_window_has_toplevel_focus (GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (buf->xtext)))))))
-#else
!(GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (buf->xtext))))->has_focus)))
-#endif
{
buf->marker_pos = ent;
dontscroll (buf); /* force scrolling off */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]