diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-01-27 13:40:54 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-01-28 07:54:55 -0800 |
commit | 41027c2843e9b333fe15ae986322c3b348be0045 (patch) | |
tree | 558baef09bb2bfc8377c77d904efc9478ec3da0b /equipment.c | |
parent | 075aba8f7da8139c1dced48e5c0b8ea60cc7ae8f (diff) | |
download | subsurface-41027c2843e9b333fe15ae986322c3b348be0045.tar.gz |
Make subsurface compile with -DGSEAL_ENABLE
This forces us to use the proper gtk accessor functions. It may not be
worth it if people actually do the Qt conversion, but if we want to try
gtk3 at some point, this might help.
This all came about because I was trying to explain on G+ what an
immense pain this all was to even figure out, if you don't actually know
gtk at all. Google and the gtk migration guide are almost useless, and
the gtk2 documentation itself actually uses the fields directly without
any accessor functions in several places.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'equipment.c')
-rw-r--r-- | equipment.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/equipment.c b/equipment.c index 7f69e5c70..416c2c853 100644 --- a/equipment.c +++ b/equipment.c @@ -942,7 +942,7 @@ static void cylinder_widget(GtkWidget *vbox, struct cylinder_widget *cylinder, G cylinder->description = GTK_COMBO_BOX(widget); g_signal_connect(widget, "changed", G_CALLBACK(cylinder_cb), cylinder); - entry = GTK_ENTRY(GTK_BIN(widget)->child); + entry = GTK_ENTRY(gtk_bin_get_child(GTK_BIN(widget))); g_signal_connect(entry, "activate", G_CALLBACK(cylinder_activate_cb), cylinder); completion = gtk_entry_completion_new(); @@ -1028,7 +1028,7 @@ static void ws_widget(GtkWidget *vbox, struct ws_widget *ws_widget, GtkListStore ws_widget->description = GTK_COMBO_BOX(widget); g_signal_connect(widget, "changed", G_CALLBACK(weight_cb), ws_widget); - entry = GTK_ENTRY(GTK_BIN(widget)->child); + entry = GTK_ENTRY(gtk_bin_get_child(GTK_BIN(widget))); g_signal_connect(entry, "activate", G_CALLBACK(weight_activate_cb), ws_widget); completion = gtk_entry_completion_new(); |