Comment 88 for bug 527267

Revision history for this message
CyrusCT (cyrusct) wrote :

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