Fix address autocompletion popup not displaying on Plasma5.
authorAndrej Kacian <ticho@claws-mail.org>
Thu, 16 Jul 2015 11:36:26 +0000 (13:36 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Thu, 16 Jul 2015 11:36:26 +0000 (13:36 +0200)
Closes bug #3466.

src/addr_compl.c

index 4ca55d5..c3ffefb 100644 (file)
@@ -950,14 +950,7 @@ static void addrcompl_resize_window( CompletionWindow *cw ) {
        gdk_window_get_geometry( gtk_widget_get_window( cw->window ), &x, &y, &width, &height );
 #endif
 
-       /* simple _hide breaks size requisition !? */
-#if !GTK_CHECK_VERSION(3, 0, 0)
-       gtk_widget_hide_all( cw->window );
-       gtk_widget_show_all( cw->window );
-#else
-       gtk_widget_hide( cw->window );
-       gtk_widget_show( cw->window );
-#endif
+       gtk_widget_queue_resize_no_redraw(cw->list_view);
        gtk_widget_size_request( cw->list_view, &r );
 
        /* Adjust window height to available screen space */
@@ -1595,7 +1588,7 @@ static gboolean completion_window_key_press(GtkWidget *widget,
                        (GTK_TREE_VIEW(list_view),
                         event->keyval == GDK_KEY_Down ||
                         event->keyval == GDK_KEY_Page_Down ? TRUE : FALSE);
-               return FALSE;
+               return TRUE;
        }               
 
        /* make tab move to next field */