Gtk-Message: Failed to load module "overlay-scrollbar" Ubuntu 17.10

I run application in reinstalled Qt Creator 3.5.1 (opensource) Based on Qt 5.5.1 (GCC 4.9.1 20140922 (Red Hat 4.9.1-10), 32 bit) And the building is successful. But also there are warnings:

Gtk-Message: Failed to load module "overlay-scrollbar"
(untitled01:20644): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",
(untitled01:20644): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

This solution doesn't help and sudo apt-get autoremovetoo

Another solution talks about gtk2-engines-pixbuf package but what about gtk3?

Do you know some correct idea?


In my computer with Ubuntu 16.04, I solved it installing the package overlay-scrollbar-gtk2:

sudo apt-get install --reinstall overlay-scrollbar-gtk2

You have three options here:

  • Ignore the warnings
  • Remove overlay-scrollbar stuff

    #Step 1
    echo "export GTK_OVERLAY_SCROLLING=0" >> ~/.profile
    
    #Step 2
    mkdir -p ~/.config/gtk-3.0
    cat <<EOF > ~/.config/gtk-3.0/gtk.css
    /* Adding the buttons on the edges (if you don't need them, skip the next 4 lines)
     */
    
    .scrollbar {
      -GtkScrollbar-has-backward-stepper: 1;
      -GtkScrollbar-has-forward-stepper: 1;
    }
    
    /* Scrollbar trough squeezes when cursor hovers over it. Disabling that
     */
    
    .scrollbar.vertical:hover:dir(ltr),
    .scrollbar.vertical.dragging:dir(ltr) {
        margin-left: 0px;
    }
    
    .scrollbar.vertical:hover:dir(rtl),
    .scrollbar.vertical.dragging:dir(rtl) {
        margin-right: 0px;
    }
    
    .scrollbar.horizontal:hover,
    .scrollbar.horizontal.dragging,
    .scrollbar.horizontal.slider:hover,
    .scrollbar.horizontal.slider.dragging {
        margin-top: 0px;
    }
    
    /* Slider widens to fill the scrollbar when cursor hovers over it. Making it permanent
     */
    
    .scrollbar.slider.vertical:dir(ltr):not(:hover):not(.dragging) {
        margin-left: 0px;
    }
    
    .scrollbar.slider.vertical:dir(rtl):not(:hover):not(.dragging) {
        margin-right: 0px;
    }
    
    .scrollbar.slider.horizontal:not(:hover):not(.dragging) {
        margin-top: 0px;
    }
    
    EOF
    
    #Step 3
    cat <<EOF > ~/.config/gtk-3.0/settings.ini
    [Settings]
    gtk-color-scheme="tooltip_bg_color:#ffffaf\ntooltip_fg_color:#000000"
    gtk-application-prefer-dark-theme=0
    
    gtk-primary-button-warps-slider = false
    
    EOF
    
    #Step 4
    sudo apt-get purge overlay-scrollbar overlay-scrollbar-gtk2
    
  • Reinstall overlay-scrollbar stuff

    sudo apt-get install --reinstall overlay-scrollbar overlay-scrollbar-gtk2