Indicator menus are too short and scroll when opened from screen bottom
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | GTK+ |
Confirmed
|
Medium
|
||
| | Indicator Applet |
Invalid
|
Low
|
Unassigned | |
| | gnome-panel (Ubuntu) |
Low
|
Unassigned | ||
Bug Description
The indicator applet, installed by default in classic session of Precise, appears with just some up and down scroll arrows, and I have to scroll down before it fills in and shows the 3 items, and then the scroll arrows disappear.
Is it possible to fix this annoying behaviour?
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: gnome-panel 1:3.4.0-0ubuntu1
ProcVersionSign
Uname: Linux 3.2.0-20-generic x86_64
ApportVersion: 1.95-0ubuntu1
Architecture: amd64
Date: Tue Mar 27 08:39:06 2012
SourcePackage: gnome-panel
UpgradeStatus: No upgrade log present (probably fresh install)
| Lucazade (lucazade) wrote : | #1 |
| Bilal Akhtar (bilalakhtar) wrote : | #2 |
| Lucazade (lucazade) wrote : | #3 |
It occurs only when the panel is placed at the bottom.
| Bilal Akhtar (bilalakhtar) wrote : | #4 |
Seems more of an issue with the panel then.
| Changed in gnome-panel (Ubuntu): | |
| status: | New → Confirmed |
| Changed in indicator-applet: | |
| status: | New → Confirmed |
| importance: | Undecided → Low |
| Changed in gnome-panel (Ubuntu): | |
| importance: | Undecided → Low |
| Adolfo Jayme (fitojb) wrote : | #5 |
This is not light-themes fault, I've seen this behavior since my first days with Ubuntu (9.04 then) so this is really an ancient bug since GTK+2. You can also see this behavior with other menus placed at bottom of screen, such as the theme selector combobox in Appearance panel of Control Center.
| affects: | light-themes → gtk |
| Sebastien Bacher (seb128) wrote : | #6 |
that's not a bug in gtk, rather in gnome-panel or the applet overwriting the menu position to align it to the border of the panel and doing it in a buggy way at the bottom of the screen
| Changed in gtk: | |
| status: | New → Invalid |
| Lucazade (lucazade) wrote : | #7 |
I would say it is an indicator-applet bug because the same issue is present in the xfce4-panel indicator when it is placed on the bottom.
It is easily reproducible in the network indicator when it populates the wifi networks available, the list is updated but the menu container is not and it show arrows to expand it.
| Alex Cabal (acabal) wrote : | #8 |
This seems to have gotten worse on 12.04 using Gnome Classic. I have my indicators on the bottom-right. Before, if the indicator menu had to change size (for example a new wireless network was detected while the indicator was open), it wouldn't resize right, but it would show scroll arrows at the top/bottom. Clicking the arrows would force the indicator menu to resize itself correctly.
However in 12.04 those arrows don't work any more. My Dropbox indicator menu is now completely invisible because it didn't resize right and the arrows don't work; I can't click on Banshee in the sound menu because it resized with the volume on top but the Banshee controls below the panel.
Very annoying in < 12.04, unusable in >= 12.04
| Jiahua Huang (huangjiahua) wrote : | #9 |
Thers is a patch:
diff --git indicator-
--- indicator-
+++ indicator-
@@ -362,6 +362,21 @@ accessible_
return;
}
+static gboolean
+do_menu_
+{
+ gtk_widget_
+ g_timeout_add(20, gtk_menu_
+ return 0;
+}
+
+static void
+on_menuitem_show (GtkMenuItem *menuitem, gpointer menu)
+{
+ gtk_widget_
+ g_idle_
+}
+
static void
entry_added (IndicatorObject * io, IndicatorObject
{
@@ -435,6 +450,7 @@ entry_added (IndicatorObject * io, Indic
if (entry->menu != NULL) {
gtk_
+ g_signal_
}
place_
| Jiahua Huang (huangjiahua) wrote : | #10 |
I'm sorry for my negligence,
this is the patch:
diff --git indicator-
--- indicator-
+++ indicator-
@@ -362,6 +362,21 @@ accessible_
return;
}
+static gboolean
+do_menu_
+{
+ gtk_widget_
+ g_timeout_add(20, (GSourceFunc) gtk_menu_
+ return 0;
+}
+
+static void
+on_menuitem_show (GtkMenuItem *menuitem, gpointer menu)
+{
+ gtk_widget_
+ g_idle_
+}
+
static void
entry_added (IndicatorObject * io, IndicatorObject
{
@@ -435,6 +450,7 @@ entry_added (IndicatorObject * io, Indic
if (entry->menu != NULL) {
gtk_
+ g_signal_
}
place_
| Alex Cabal (acabal) wrote : | #11 |
#9 That's awesome! Can you give instructions on how to compile so I can help testing? If it works would it be possible to get this patch in to an SRU?
| MikeR (mike-rechtman) wrote : | #12 |
1. I see this happening in the top panel, also (Ubuntu Precise. updated this morning)
2. When (if) will there be a downloadable update of the Indicator-applet? (preferably via a supported repository)
Thanks,
Mike
The attachment "fix scroll arrows of menu" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.
[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]
| tags: | added: patch |
Hi, Alex,
it can use these commands to apply the patch::
cd /tmp
apt-get build-dep indicator-applet
apt-get source indicator-applet
wget https:/
cd indicator-
patch -p1 < ../indicator-
time dpkg-buildpackage -rfakeroot
cd ..
sudo dpkg -i indicator-
| Alex Cabal (acabal) wrote : | #15 |
Thanks Jiahua, I was able to test it out with your instructions. It looks like your patch fixes the problem, thanks!
However there's a slight issue: with the patch applied, when you open an indicator, the menu flickers near the top of the screen for a split second before aligning back down to the bottom where it should be. (Or perhaps the menu opens up to double-size and the instantly shrinks back to normal size, it goes so fast it's hard to tell.)
This doesn't seem to affect usability, but it's very noticeable and detracts a bit from the smoothness of the UI. Is there anything that can be done for that?
| Alex Cabal (acabal) wrote : | #16 |
After messing around with the patch some more, the issue I mentioned above seems to be that the menu is being generated super-tall, then shrunk back to size almost instantly. I somehow managed to get the super-tall menu to stay open for both the Dropbox and Battery indicators. Not as huge an issue as completely unusable indicators (like before Jiahua's patch) but still a very noticeable UX issue.
| Jiahua Huang (huangjiahua) wrote : | #17 |
Hi Alex,
yes, it use a reserved menu height to fix this bug, so...
Hi Mike,
there are some indicator-applet debs in this attachment.
| summary: |
- indicator applet with scroll arrows + Indicator menus are too short and scroll when opened from screen bottom |
| ionospheric (berthold1) wrote : | #18 |
The patch fixed the problem with the menus being too small for me. I also have the brief flicker with the menu popping up maximized at first, but I can live with that. Thanks for the fix. I am sure as upgrade will fix the flicker, too eventually.
| Dmitry Shachnev (mitya57) wrote : | #19 |
Please submit a merge proposal against lp:indicator-applet if you want to get this patch reviewed/applied. Thanks.
| Changed in gnome-panel (Ubuntu): | |
| status: | Confirmed → Invalid |
| Iain Lane (laney) wrote : | #20 |
Thanks for the patch - I'm not sure about it though; it seems odd to me to call gtk_widget_
I'm subscribing Ted (an indicator-applet developer) in case he can think of a fix for this bug quickly.
However, I can't make the described issue happen myself. Can someone give more detailed steps to reproduce it?
| Changed in indicator-applet: | |
| status: | Confirmed → Incomplete |
| Alex Cabal (acabal) wrote : | #21 |
It shouldn't be hard to reproduce, I noticed it immediately after upgrading. Just use the gnome classic session, add a bottom panel, and set the indicator applet on the bottom panel in Precise. The WiFi indicator is the easiest to reproduce the issue as it updates frequently. Sound indicator is another example, when it changes tracks. Try scrubbing left and right across the indicators. The patch above is a sort of fix, but it adds a new bug where frequently instead of being too small, the indicator menus become massive and reach nearly to the top of the screen. I've been living with this bug for a long time as a bottom panel user of Precise :/
| Changed in indicator-applet: | |
| status: | Incomplete → Confirmed |
| Sebastian Geiger (lanoxx) wrote : | #22 |
@Ian Lane:
The issue happens only when the panel is at the bottom, not at the top. The issue also most frequently happens with Skype, but also sometimes with other applets such as network-manager or dropbox. It appears particularly after the menuitems in the menu change, such as when a new Wireless network has been detected or the network adaper looses/gains a connection. Try pulling the network cabel from your notebook and the network-manager menu will collapse to 0px height. After that only a restart of the applet can fix the issue.
| Sebastian Geiger (lanoxx) wrote : | #23 |
I have been inserting debugging in formation and here is a trace that I am getting when I click on the Skype entry in the indicator applet. For some reason, whenever the items in a menu change, then all items of the menu are removed and then inserted again. For Skype this seems to happen every single time I open the menu. When I open other menu items such as bluetooth or Ubuntu One, then the entries are not removed and inserted. But the menu simply opens. However I can reproduce the same phenomen with network-manager. When I open the menu and then pull the network cable I can see how all items get removed and then re-inserted.
Indicator-
Indicator-
Indicator-
Indicator-
Indicator-
[ ... 19 repeating entries truncated ... ]
Indicator-
Indicator-
[ ... 15 repeating entries truncated ... ]
(indicator-
(indicator-
Indicator-
Indicator-
Indicator-
Indicator-
(indicator-
(indicator-
Indicator-
Indicator-
Indicator-
From the trace I can see there are 20 items removed from the Skype menu, but 21 added. This explains the 22px size difference between the first and last size_allocate call. I have not measured this, but it seems the menu is painted with a height of 356px while at the end it has 378px thus requiring scrolling.
Note that the menu is a member of 'IndicatorObjec
| Sebastian Geiger (lanoxx) wrote : | #24 |
I was able to reproduce this bug in a pure gtk+ application, and have reported a bug to gtk+:
| Sebastian Geiger (lanoxx) wrote : | #25 |
I seems very likely that this bug is actually in gtk+. I am setting this bug to new, when the attached bug is confirmed, then the watch bot should automatically update this to confirmed.
| Changed in gtk: | |
| importance: | Undecided → Unknown |
| status: | Invalid → Unknown |
| Changed in indicator-applet: | |
| status: | Confirmed → Invalid |
| Changed in gtk: | |
| importance: | Unknown → Medium |
| status: | Unknown → New |
| Martin Spacek (mspacek) wrote : | #26 |
I've had this problem for years. Currently, I'm using Xubuntu 14.04 with my panel located at the bottom edge of the screen. I see this most often with nm-applet, skype, and sometimes the sound applet. Really annoying! Thanks Lannoxx for opening a bug at GTK+'s bugzilla, and submitting the patch.
| Vlad Orlov (monsta) wrote : | #27 |
Unfortunately, as stated in the upstream bug's comments, the patch causes a regression...
| baptx (b4ptx) wrote : | #28 |
I'm using Xubuntu with the panel at the bottom of the screen and I have fixed the scroll problem by removing xfce4-indicator
| Yanpas (yanpaso) wrote : | #29 |
Thank you man! I'm happy to get rid of this crappy and nasty indicators (which are not linux-way). I've installed xfce4-mixer and xfce4-battery-
| Changed in gtk: | |
| status: | New → Confirmed |
| Kevin Brubeck Unhammer (unhammer) wrote : | #30 |
Removing xfce4-indicator
(I would've liked having the indicator sound menu, but it's not worth it.)
| jamina1 (jamina1) wrote : | #31 |
Unfortunately the "solution" from @unhammer removes the messaging applet and the sound control, which isn't really a usable fix for me.
| Darin (newhoa) wrote : | #32 |
This is worse than ever in Xubuntu 17.04. And since they have removed the XFCE4 mixer plugin from the repositories, I don't know a way to have volume control after having removed the indicator plugin.


Does this bug occur when the panel is at the top?