I'm sorry for my negligence,
this is the patch:
diff --git indicator-applet/src/applet-main.c indicator-applet/src/applet-main.c
--- indicator-applet/src/applet-main.c
+++ indicator-applet/src/applet-main.c
@@ -362,6 +362,21 @@ accessible_desc_update (IndicatorObject
return;
}
+static gboolean
+do_menu_reposition(gpointer menu)
+{
+ gtk_widget_set_size_request(menu, -1, -1);
+ g_timeout_add(20, (GSourceFunc) gtk_menu_reposition, (gpointer) menu);
+ return 0;
+}
+
+static void
+on_menuitem_show (GtkMenuItem *menuitem, gpointer menu)
+{
+ gtk_widget_set_size_request(menu, -1, 350);
+ g_idle_add((GSourceFunc) do_menu_reposition, (gpointer) menu);
+}
+
static void
entry_added (IndicatorObject * io, IndicatorObjectEntry * entry, GtkWidget *
menubar)
{
@@ -435,6 +450,7 @@ entry_added (IndicatorObject * io, Indic
if (entry->menu != NULL) {
gtk_menu_item_set_submenu(GTK_MENU_ITEM(menuitem),
GTK_WIDGET(entry->menu));
+ g_signal_connect(G_OBJECT(menuitem), "activate",
G_CALLBACK(on_menuitem_show), entry->menu);
}
place_in_menu(menubar, menuitem, io, entry);
** Patch added: "fix scroll arrows of menu"
https://bugs.launchpad.net/indicator-applet/+bug/965953/+attachment/3153265/+files/indicator-applet-scroll-arrows.patch
** Patch removed: "indicator-applet-scroll-arrows.patch"
https://bugs.launchpad.net/indicator-applet/+bug/965953/+attachment/3153247/+files/indicator-applet-scroll-arrows.patch
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/965953
Title:
indicator applet with scroll arrows
To manage notifications about this bug go to:
https://bugs.launchpad.net/gtk/+bug/965953/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs