diff options
author | Niels Horn <niels.horn@slackbuilds.org> | 2011-03-09 22:04:35 -0300 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2011-03-20 14:07:56 -0500 |
commit | 89ed7e0e9cea616bcb82fe71107eb33b1ce4b7b7 (patch) | |
tree | e9279e07e1399a4c89c06eed67a0701c69d48024 | |
parent | 0f113124b0c3d9ced334bb6574aa31ba71af3c55 (diff) |
libraries/gtkextra: Adapted for Slackware 13.37
Added patch to build with gtk >= 2.21
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
-rw-r--r-- | libraries/gtkextra/gtkextra.SlackBuild | 8 | ||||
-rw-r--r-- | libraries/gtkextra/gtkextra_gtk2.21.patch | 27 |
2 files changed, 32 insertions, 3 deletions
diff --git a/libraries/gtkextra/gtkextra.SlackBuild b/libraries/gtkextra/gtkextra.SlackBuild index 80a3c186f702b..a538036e4dea1 100644 --- a/libraries/gtkextra/gtkextra.SlackBuild +++ b/libraries/gtkextra/gtkextra.SlackBuild @@ -4,11 +4,11 @@ # A set of extra widgets for GTK+ # Written by Niels Horn <niels.horn@gmail.com> -# Revision date: 2010/11/01 +# Revision date: 2011/03/09 PRGNAM=gtkextra VERSION=${VERSION:-2.1.2} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} SRCNAM=gtk+extra @@ -56,12 +56,14 @@ find . \ -exec chmod 644 {} \; # Solve a problem with spaces in gtkextra/Makefile.in -# (This only breaks with make 3.82 from -current, but won't harm in 13.1) patch -p1 < $CWD/make382.patch # Resolve a bug in the code (thanks to the Gentoo people for finding it) patch -p1 < $CWD/gtkcolorcombo.patch +# Patch code for gtk >= 2.21 (based on work by the folks from GTKada) +patch -p1 < $CWD/gtkextra_gtk2.21.patch + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ diff --git a/libraries/gtkextra/gtkextra_gtk2.21.patch b/libraries/gtkextra/gtkextra_gtk2.21.patch new file mode 100644 index 0000000000000..9d49968bcba2f --- /dev/null +++ b/libraries/gtkextra/gtkextra_gtk2.21.patch @@ -0,0 +1,27 @@ +--- gtk+extra-2.1.2/gtkextra/gtkitementry.c 2010-03-13 02:49:00.000000000 -0300 ++++ gtk+extra-2.1.2_patched/gtkextra/gtkitementry.c 2011-03-09 00:29:54.000000000 -0300 +@@ -131,7 +131,6 @@ + static PangoLayout *gtk_entry_ensure_layout (GtkEntry *entry, + gboolean include_preedit); + static void gtk_entry_queue_draw (GtkEntry *entry); +-static void gtk_entry_reset_im_context (GtkEntry *entry); + static void gtk_entry_recompute (GtkEntry *entry); + static void gtk_entry_get_cursor_locations (GtkEntry *entry, + CursorType type, +@@ -1755,16 +1754,6 @@ + } + + static void +-gtk_entry_reset_im_context (GtkEntry *entry) +-{ +- if (entry->need_im_reset) +- { +- entry->need_im_reset = 0; +- gtk_im_context_reset (entry->im_context); +- } +-} +- +-static void + gtk_entry_get_cursor_locations (GtkEntry *entry, + CursorType type, + gint *strong_x, |