Comment 2 for bug 498182

Revision history for this message
Vish (vish) wrote : Re: Indicator-application does not support vertical panels

Now the behavior has changed.
If the panel is Oriented to the Right ,
The new items are added to the left of the messaging menu
And when a new item is present the messaging menu is hidden.

The gnome-main-menu is able to switch the orientation probably from >
gnome-main-menu/main-menu/src/main-menu.c

reorient_panel_button (MainMenuUI *this)
{
 MainMenuUIPrivate *priv = PRIVATE (this);

 PanelAppletOrient orientation;

 GtkWidget *child;

 orientation = panel_applet_get_orient (priv->panel_applet);

 child = gtk_bin_get_child (GTK_BIN (priv->panel_applet));

 if (GTK_IS_WIDGET (child))
  gtk_container_remove (GTK_CONTAINER (priv->panel_applet), child);

 switch (orientation) {
  case PANEL_APPLET_ORIENT_LEFT:
   priv->panel_button = priv->panel_buttons [PANEL_BUTTON_ORIENT_RIGHT];
   break;

  case PANEL_APPLET_ORIENT_RIGHT:
   priv->panel_button = priv->panel_buttons [PANEL_BUTTON_ORIENT_LEFT];
   break;

  case PANEL_APPLET_ORIENT_UP:
   priv->panel_button = priv->panel_buttons [PANEL_BUTTON_ORIENT_BOTTOM];
   break;

  default:
   priv->panel_button = priv->panel_buttons [PANEL_BUTTON_ORIENT_TOP];
   break;
 }

 gtk_container_add (GTK_CONTAINER (priv->panel_applet), GTK_WIDGET (priv->panel_button));
}

Is there a way to make this work in indicator application too?