← Back to team overview

gnome-colors-packagers team mailing list archive

[Bug 527267] Re: Application Indicators too wide

 

After extensive google-ing, and A LOT of trial and error, I FINALLY
figured out how to implement the patch.  Since others have requested
instructions, but nobody was kind enough to post them, I WILL.  That
said, I'm sure that there's an easier way than then the one I am about
to provide, so I welcome people to post improvements to my methodology.
Well, here it is:

----------------------------------------------------------------------------------------------

-----  In the terminal type  -----

wget https://launchpad.net/ubuntu/+archive/primary/+files/indicator-applet_0.4.12.orig.tar.gz
tar -xzf indicator-applet_0.4.12.orig.tar.gz
cd indicator-applet-0.4.12/src
gedit applet-main.c

-----  search for  -----

	g_object_set_data(G_OBJECT(menuitem), MENU_DATA_INDICATOR_ENTRY,  entry);
	g_object_set_data(G_OBJECT(menuitem), MENU_DATA_INDICATOR_OBJECT, io);

	return;
}

-----   and replace it with  -----

	g_object_set_data(G_OBJECT(menuitem), MENU_DATA_INDICATOR_ENTRY,  entry);
	g_object_set_data(G_OBJECT(menuitem), MENU_DATA_INDICATOR_OBJECT, io);

        gtk_widget_set_name(GTK_WIDGET (menuitem), "fast-user-switch-
menuitem");

	return;
}

-----   then search for  -----

        "    GtkWidget::focus-line-width = 0\n"
        "    GtkWidget::focus-padding = 0\n"
        "    GtkMenuItem::horizontal-padding = 0\n"
        "}\n"
        "widget \"*.fast-user-switch-applet\" style \"indicator-applet-style\""
        "widget \"*.fast-user-switch-menuitem\" style \"indicator-applet-menuitem-style\""

-----   and replace it with  -----

        "    GtkWidget::focus-line-width = 0\n"
        "    GtkWidget::focus-padding = 0\n"
        "    GtkMenuItem::horizontal-padding = 1\n"
        "}\n"
        "widget \"*.fast-user-switch-applet\" style \"indicator-applet-style\""
        "widget \"*.fast-user-switch-menuitem\" style \"indicator-applet-menuitem-style\""

-----   then save the file and close gedit, and enter the following
commands  -----

cd ..
sudo apt-get build-dep indicator-applet
sudo apt-get install devscripts
sudo ./configure
sudo make
sudo make install

-- 
You received this bug notification because you are a member of GNOME-
Colors Packagers, which is subscribed to shiki-colors-murrine in Ubuntu.
https://bugs.launchpad.net/bugs/527267

Title:
  Application Indicators too wide

Status in One Hundred Paper Cuts:
  Confirmed
Status in Application Indicators:
  Confirmed
Status in The Linux Mint Distribution:
  Triaged
Status in Debian Packaging for the Shiki-Colors GTK+/Metacity Themes:
  Unknown
Status in “light-themes” package in Ubuntu:
  Fix Released
Status in “shiki-colors-murrine” package in Ubuntu:
  Incomplete

Bug description:
  the Application Indicators applet is wider than the regular systray.

  3 Indicators icons are slightly bigger than 4 tray icons, incl. the left part.
  See the screenshot. The two highlighted boxes are ~100 pixels wide.

  With more applications moving to the app indicator, it will result in
  less usable space in the panel, which in my case is already pretty
  full.