38 lines
1.3 KiB
Plaintext
38 lines
1.3 KiB
Plaintext
$OpenBSD: patch-gtkhtml_test_c,v 1.1 2011/03/07 19:27:27 ajacoutot Exp $
|
|
|
|
From d085cd1cb81aab0767ab8276bef27b9ffdd832ed Mon Sep 17 00:00:00 2001
|
|
From: Matthew Barnes <mbarnes@redhat.com>
|
|
Date: Mon, 25 Oct 2010 23:06:32 +0000
|
|
Subject: Fix build issues.
|
|
|
|
From 3bf9eb43743cc1526802e0ce52b295e31e5a3c82 Mon Sep 17 00:00:00 2001
|
|
From: Matthias Clasen <mclasen@redhat.com>
|
|
Date: Wed, 20 Oct 2010 13:51:48 +0000
|
|
Subject: Bug 632601 - Handle combo box text API going away
|
|
|
|
--- gtkhtml/test.c.orig Mon Sep 13 14:16:11 2010
|
|
+++ gtkhtml/test.c Sat Feb 26 15:36:16 2011
|
|
@@ -38,6 +38,9 @@
|
|
|
|
#include "htmlengine.h"
|
|
|
|
+/* backward-compatibility cruft */
|
|
+#include "gtk-compat.h"
|
|
+
|
|
typedef struct _Example Example;
|
|
|
|
struct _Example {
|
|
@@ -338,10 +341,10 @@ main (gint argc, gchar **argv)
|
|
gtk_box_pack_start (GTK_BOX (vbox), swindow, TRUE, TRUE, 0);
|
|
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
|
|
|
|
- combo_box = gtk_combo_box_new_text ();
|
|
+ combo_box = gtk_combo_box_text_new ();
|
|
for (i = 0; i < examples->len; i++) {
|
|
Example *example = examples->pdata[i];
|
|
- gtk_combo_box_append_text (GTK_COMBO_BOX (combo_box), example->title);
|
|
+ gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo_box), example->title);
|
|
}
|
|
gtk_combo_box_set_active (GTK_COMBO_BOX (combo_box), 0);
|
|
g_signal_connect (combo_box, "changed", G_CALLBACK (example_changed_cb), NULL);
|