Skip to content

Commit

Permalink
Unbreak after gtk+2 update.. using private gtk struct fields is nasty.
Browse files Browse the repository at this point in the history
Now, let's try to update that crap to a newer version... sigh.
  • Loading branch information
landryb committed Oct 11, 2009
1 parent 5a08250 commit 2da8b6a
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 4 deletions.
8 changes: 4 additions & 4 deletions www/kazehakase/Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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/
Expand Down
30 changes: 30 additions & 0 deletions www/kazehakase/patches/patch-src_widget_kz-entry_c
Original file line number Diff line number Diff line change
@@ -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
{

0 comments on commit 2da8b6a

Please sign in to comment.