How to install elegance-colors Gnome shell on Centos 7

Issues related to applications and software problems
Post Reply
bboran
Posts: 1
Joined: 2015/01/12 20:05:24

How to install elegance-colors Gnome shell on Centos 7

Post by bboran » 2015/01/12 20:11:05

Hello guys anyone here have success on installing elegance-colors Gnome shell on Centos 7?

I have followed the steps on here https://github.com/satya164/elegance-colors

but when i type "Make" it gives me lots of errors. Here is the output of Make command;

Code: Select all

valac --pkg gtk+-3.0 elegance-colors-prefs.vala -o elegance-colors-prefs
elegance-colors-prefs.vala:1660.27-1660.51: error: The name `from_icon_name' does not exist in the context of `Gtk.Button'
        undo_button = new Gtk.Button.from_icon_name ("edit-undo-symbolic", Gtk.IconSize.SMALL_TOOLBAR);
                          ^^^^^^^^^^^^^^^^^^^^^^^^^
elegance-colors-prefs.vala:1662.27-1662.51: error: The name `from_icon_name' does not exist in the context of `Gtk.Button'
        redo_button = new Gtk.Button.from_icon_name ("edit-redo-symbolic", Gtk.IconSize.SMALL_TOOLBAR);
                          ^^^^^^^^^^^^^^^^^^^^^^^^^
elegance-colors-prefs.vala:1664.28-1664.52: error: The name `from_icon_name' does not exist in the context of `Gtk.Button'
        clear_button = new Gtk.Button.from_icon_name ("edit-clear-symbolic", Gtk.IconSize.SMALL_TOOLBAR);
                           ^^^^^^^^^^^^^^^^^^^^^^^^^
elegance-colors-prefs.vala:1684.29-1684.41: error: The name `HeaderBar' does not exist in the context of `Gtk'
        var headerbar = new Gtk.HeaderBar ();
                            ^^^^^^^^^^^^^
elegance-colors-prefs.vala:1684.13-1684.44: error: var declaration not allowed with non-typed initializer
        var headerbar = new Gtk.HeaderBar ();
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
elegance-colors-prefs.vala:1685.9-1685.17: error: The name `headerbar' does not exist in the context of `EleganceColorsWindow.create_widgets'
        headerbar.set_show_close_button (true);
        ^^^^^^^^^
elegance-colors-prefs.vala:1686.9-1686.17: error: The name `headerbar' does not exist in the context of `EleganceColorsWindow.create_widgets'
        headerbar.set_title ("Elegance Colors");
        ^^^^^^^^^
elegance-colors-prefs.vala:1687.9-1687.17: error: The name `headerbar' does not exist in the context of `EleganceColorsWindow.create_widgets'
        headerbar.set_subtitle ("Configure Gnome Shell theme");
        ^^^^^^^^^
elegance-colors-prefs.vala:1688.9-1688.17: error: The name `headerbar' does not exist in the context of `EleganceColorsWindow.create_widgets'
        headerbar.pack_start (actions_box);
        ^^^^^^^^^
elegance-colors-prefs.vala:1689.9-1689.17: error: The name `headerbar' does not exist in the context of `EleganceColorsWindow.create_widgets'
        headerbar.pack_end (menu_button);
        ^^^^^^^^^
elegance-colors-prefs.vala:1700.9-1700.25: error: The name `set_titlebar' does not exist in the context of `EleganceColorsWindow'
        this.set_titlebar(headerbar);
        ^^^^^^^^^^^^^^^^^
Compilation failed: 11 error(s), 0 warning(s)
make: *** [elegance-colors-prefs] Error 1

I have already installed glib2-devel gtk3-devel vala. So what can be the problem?

Anyone here is using elegance-colors gnome shell on their Centos 7 installation?

Thank you

BigE
Posts: 1
Joined: 2015/01/22 16:48:30

Re: How to install elegance-colors Gnome shell on Centos 7

Post by BigE » 2015/01/22 16:54:05

I managed to get it installed... just clone the repository

Code: Select all

git clone https://github.com/satya164/elegance-colors.git
Then cd into the directory it just created

Code: Select all

cd elegance-colors
and run the command to checkout the v2.9 tag

Code: Select all

git checkout v2.9
Once you do that, you should be able to run

Code: Select all

make
without issue. It will display a warning, but you can still run

Code: Select all

sudo make install
to install it to your system.

It seems there is a change in v3.0 that makes it only compatible with >= gnome 3.10 and CentOS only has gnome 3.8. Hope that helps!

Post Reply