Unbreak after gtk+2 update.. using private gtk struct fields is nasty.

Now, let's try to update that crap to a newer version... sigh.
This commit is contained in:
landry 2009-10-11 11:14:18 +00:00
parent d1d20cf949
commit 17a14b17fe
2 changed files with 34 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.12 2009/08/10 06:34:56 kili Exp $
# $OpenBSD: Makefile,v 1.13 2009/10/11 11:14:18 landry Exp $
COMMENT-main= common files for kazehakase
COMMENT-gecko= lightweight gecko-based web browser
@ -10,9 +10,9 @@ SHARED_ONLY= Yes
VERSION= 0.5.6
DISTNAME= kazehakase-${VERSION}
PKGNAME-main= kazehakase-common-${VERSION}p1
PKGNAME-gecko= ${DISTNAME}p3
PKGNAME-webkit= kazehakase-webkit-${VERSION}p2
PKGNAME-main= kazehakase-common-${VERSION}p2
PKGNAME-gecko= ${DISTNAME}p4
PKGNAME-webkit= kazehakase-webkit-${VERSION}p3
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_JP:=kazehakase/33533/}
HOMEPAGE= http://kazehakase.sourceforge.jp/

View File

@ -0,0 +1,30 @@
$OpenBSD: patch-src_widget_kz-entry_c,v 1.1 2009/10/11 11:14:18 landry Exp $
--- src/widget/kz-entry.c.orig Sun Oct 11 11:54:47 2009
+++ src/widget/kz-entry.c Sun Oct 11 11:54:58 2009
@@ -515,7 +515,7 @@ gtk_entry_create_layout (GtkEntry *entry,
if (entry->visible)
{
- g_string_prepend_len (tmp_string, entry->text, entry->n_bytes);
+ g_string_prepend_len (tmp_string, entry->text, entry->x_n_bytes);
g_string_insert (tmp_string, cursor_index, preedit_string);
}
else
@@ -524,7 +524,7 @@ gtk_entry_create_layout (GtkEntry *entry,
gint preedit_len_chars;
gunichar invisible_char;
- ch_len = g_utf8_strlen (entry->text, entry->n_bytes);
+ ch_len = g_utf8_strlen (entry->text, entry->x_n_bytes);
preedit_len_chars = g_utf8_strlen (preedit_string, -1);
ch_len += preedit_len_chars;
@@ -558,7 +558,7 @@ gtk_entry_create_layout (GtkEntry *entry,
{
if (entry->visible)
{
- pango_layout_set_text (layout, entry->text, entry->n_bytes);
+ pango_layout_set_text (layout, entry->text, entry->x_n_bytes);
}
else
{