Shell boxpointer menus don't have scroll buttons when they exceed the screen height

Bug #1830422 reported by Dmytro
24
This bug affects 3 people
Affects Status Importance Assigned to Milestone
diodon (Ubuntu)
Confirmed
Undecided
Unassigned
gnome-shell (Ubuntu)
Opinion
Low
Unassigned
gnome-shell-extension-appindicator (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

I am using appindicator-1.0 in conjunction with Gtk+2.0 menu. Menu consist of constant items and many dynamically added items. If the screen pixel resolution is not so good as it must be then the last menu items are not visible. Ubuntu 16.04 automatically add top and bottom bars with "^" and "v" arrows to scroll menu when mouse pointer is over these bars. But in Linux Ubuntu 18.04 (and 19.04 too) such scrolling bars are not appearing.

On the other hand menu scrolling is working fine anywhere into usual GTK window with menu bar (without using appindicator). Ubuntu 16.04 and Ubuntu 18.04 use the same 12.10.1 libappindicator version.

Here is the test c program which illustrates the issue. It works fine in Linux Ubuntu 16.04 and has the described above problem in Linux 18.04:

#include <gtk/gtk.h>
#include <libappindicator/app-indicator.h>

#define LOGO_PNG "/home/super/my-project/menu-test/logo.png"

AppIndicator* c_indicator;
GtkWidget* c_menu;

void menu_quit_cb(GtkMenuItem* menuitem, gpointer user_data)
{
    gtk_main_quit();
}

int main(int argc, char *argv[])
{
    gtk_init(&argc, &argv);

    int i;
    GtkWidget* item;
    char title[128];

    c_menu = gtk_menu_new();

    item = gtk_menu_item_new_with_label("Quit");
    g_signal_connect(item, "activate", G_CALLBACK(menu_quit_cb), NULL);
    gtk_menu_shell_append(GTK_MENU_SHELL(c_menu), item);
    gtk_widget_show(item);

    gtk_menu_shell_append(GTK_MENU_SHELL(c_menu), gtk_separator_menu_item_new());

    for (i = 1; i <= 100; ++i) {
        snprintf(title, sizeof(title), "Item #%03u", i);
        item = gtk_menu_item_new_with_label(title);
        gtk_menu_shell_append(GTK_MENU_SHELL(c_menu), item);
        gtk_widget_show(item);
    }

    //

    c_indicator = app_indicator_new("Menu Test", LOGO_PNG, APP_INDICATOR_CATEGORY_APPLICATION_STATUS);
    app_indicator_set_status(c_indicator, APP_INDICATOR_STATUS_ACTIVE);
    app_indicator_set_icon(c_indicator, LOGO_PNG);
    app_indicator_set_menu(c_indicator, GTK_MENU(c_menu));

    gtk_main();

    return 0;
}

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: libappindicator1 12.10.1+18.04.20180322.1-0ubuntu1
ProcVersionSignature: Ubuntu 4.15.0-50.54-generic 4.15.18
Uname: Linux 4.15.0-50-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.6
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Fri May 24 21:15:59 2019
InstallationDate: Installed on 2018-07-03 (325 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
SourcePackage: libappindicator
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Dmytro (tedim) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report, could you take a screenshot or picture of the issue?

Changed in libappindicator (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Dmytro (tedim) wrote :
Revision history for this message
Dmytro (tedim) wrote :

I have checked test program in Linux Ubuntu 19.04. The result is the same as for Linux Ubuntu 18.04.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks, the issue is rather on the indicator side than on the library, reassigning to gnome-shell (but it could be the extension instead)

affects: libappindicator (Ubuntu) → gnome-shell (Ubuntu)
Changed in gnome-shell (Ubuntu):
status: Incomplete → New
Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: Shell boxpointer menus don't have scrollbars when they exceed the screen height

The menu code is provided by gnome-shell, so I don't think there's any reason to involve the extension in this bug.

summary: - Long Gtk menu into appindicator1 cannot be scrolled: arrow bars are
- absent
+ Shell boxpointer menus don't have scrollbars when they exceed the screen
+ height
Revision history for this message
Sebastien Bacher (seb128) wrote :

@Dmytro, could you report it upstream on https://gitlab.gnome.org/GNOME/gnome-shell/issues ?

Revision history for this message
Dmytro (tedim) wrote :
summary: - Shell boxpointer menus don't have scrollbars when they exceed the screen
- height
+ Shell boxpointer menus don't have scroll buttons when they exceed the
+ screen height
Changed in gnome-shell:
status: Unknown → New
Revision history for this message
Dmytro (tedim) wrote :

Maintainer Florian Müllner in https://gitlab.gnome.org/GNOME/gnome-shell/issues/1332 says:
"Correct, it's the responsibility of the caller to add scrollbars if a menu may exceed the screen height. That is, this is a bug in the appindicator extension, not gnome-shell."

The issue report into gitlab.gnome.com is closed!

Changed in gnome-shell (Ubuntu):
status: New → Opinion
Changed in gnome-shell-extension-appindicator (Ubuntu):
importance: Undecided → Low
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for reporting it upstream and updating the bug!

Changed in gnome-shell-extension-appindicator (Ubuntu):
status: New → Confirmed
Changed in gnome-shell:
status: New → Fix Released
Revision history for this message
Dmytro (tedim) wrote :

Is it possible to test what is fixed? When will it be in public?

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

That's a Launchpad bug. Nothing is fixed. The bug was rejected and closed, which Launchpad misinterprets as "Fix Released":

https://gitlab.gnome.org/GNOME/gnome-shell/issues/1332

no longer affects: gnome-shell
Revision history for this message
Dmytro (tedim) wrote :

In the .H files of the libappindicator I have found 2 authors' e-mails: Ted Gould <email address hidden> and Cody Russell <email address hidden>. I have written email and received the email-daemon answer that this e-mails are not valid. I see the problem and want to know who can help me to find the decision.

Could you be so kind to direct me in the right way and say the real email or website where I can ask how to resolve the problem?

Revision history for this message
Sebastien Bacher (seb128) wrote :

@Dmytro, the issue is not with the library but with the indicator, you can report to upstream on https://github.com/ubuntu/gnome-shell-extension-appindicator

Revision history for this message
Amr Ibrahim (amribrahim1987) wrote :

I'm also affected by this bug in Ubuntu 18.04. I'm using Diodon the clipboard manager. Its appindicator menu does not scroll down when the clipboard entries exceed the height of the screen.

tags: added: focal
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in diodon (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.