From 4fc263679c77c7db26e0259efd44fd2a9d513712 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Mon, 7 Aug 2017 20:16:35 +0200 Subject: libview: save changes to a dropdown in an embedded form This is a regression from commit https://github.com/mate-desktop/atril/commit/f8aec90 see: https://github.com/linuxmint/xreader/commit/46298df https://github.com/linuxmint/xreader/issues/12 --- libview/ev-view.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libview/ev-view.c b/libview/ev-view.c index a930deae..0e84a1e4 100644 --- a/libview/ev-view.c +++ b/libview/ev-view.c @@ -2177,7 +2177,7 @@ ev_view_form_field_text_create_widget (EvView *view, g_free (txt); } - g_signal_connect( buffer, "focus-out-event", + g_signal_connect (text, "focus-out-event", G_CALLBACK (ev_view_form_field_text_focus_out), view); g_signal_connect (buffer, "changed", @@ -2235,7 +2235,7 @@ ev_view_form_field_choice_changed (GtkWidget *widget, { EvFormFieldChoice *field_choice = EV_FORM_FIELD_CHOICE (field); - if (gtk_combo_box_get_has_entry ( GTK_COMBO_BOX (widget))) { + if (GTK_IS_COMBO_BOX (widget)) { gint item; item = gtk_combo_box_get_active (GTK_COMBO_BOX (widget)); -- cgit v1.2.1