openbsd-ports/www/gtkhtml3/patches/patch-gtkhtml_htmlselect_c

27 lines
851 B
Plaintext

$OpenBSD: patch-gtkhtml_htmlselect_c,v 1.1 2011/03/07 19:27:27 ajacoutot Exp $
From 9cdef951c59ebbd4503697eb796ec65122b5cc99 Mon Sep 17 00:00:00 2001
From: Matthias Clasen <mclasen@redhat.com>
Date: Wed, 20 Oct 2010 14:23:29 +0000
Subject: Bug 632596 - Don't use GtkComboBoxEntry
--- gtkhtml/htmlselect.c.orig Mon Sep 13 14:16:11 2010
+++ gtkhtml/htmlselect.c Sat Feb 26 14:51:00 2011
@@ -242,7 +242,16 @@ html_select_init (HTMLSelect *select,
select->view, 120, req.height * size);
gtk_list_store_remove (store, &iter);
} else {
+#if GTK_CHECK_VERSION(2,23,0)
+ widget = g_object_new (
+ GTK_TYPE_COMBO_BOX,
+ "model", select->model,
+ "has-entry", TRUE,
+ "entry-text-column", 0,
+ NULL);
+#else
widget = gtk_combo_box_entry_new_with_model (select->model, 0);
+#endif
gtk_widget_set_size_request (widget, 120, -1);
}