Merge lp:~voldyman/switchboard-plug-pantheon-shell/remove-theme-config into lp:~elementary-apps/switchboard-plug-pantheon-shell/trunk

Proposed by Akshay Shekher
Status: Merged
Approved by: Cody Garver
Approved revision: 300
Merged at revision: 301
Proposed branch: lp:~voldyman/switchboard-plug-pantheon-shell/remove-theme-config
Merge into: lp:~elementary-apps/switchboard-plug-pantheon-shell/trunk
Diff against target: 57 lines (+0/-41)
1 file modified
src/Dock.vala (+0/-41)
To merge this branch: bzr merge lp:~voldyman/switchboard-plug-pantheon-shell/remove-theme-config
Reviewer Review Type Date Requested Status
elementary Apps team Pending
Review via email: mp+245400@code.launchpad.net

Commit message

removed theme selection combo box (lp:1404611)

Description of the change

removed theme selection combo box

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/Dock.vala'
2--- src/Dock.vala 2014-12-23 22:41:14 +0000
3+++ src/Dock.vala 2014-12-27 19:24:11 +0000
4@@ -54,40 +54,6 @@
5 });
6 }
7
8- var theme = new Gtk.ComboBoxText ();
9- theme.halign = Gtk.Align.START;
10- theme.hexpand = true;
11- var themes_list = Plank.Drawing.Theme.get_theme_list ();
12- // Let's handle the 4 default themes. Default is renamed to Compact because of consistency.
13- foreach (string theme_name in themes_list) {
14- switch (theme_name) {
15- case Plank.Drawing.Theme.GTK_THEME_NAME:
16- /// Translators : This is a theme name.
17- theme.append (theme_name, _("Default"));
18- break;
19- case Plank.Drawing.Theme.DEFAULT_NAME:
20- /// Translators : This is a theme name.
21- theme.append (theme_name, _("Compact"));
22- break;
23- case "Matte":
24- /// Translators : This is a theme name.
25- theme.append (theme_name, _("Matte"));
26- break;
27- case "Transparent":
28- /// Translators : This is a theme name.
29- theme.append (theme_name, _("Transparent"));
30- break;
31- default:
32- theme.append (theme_name, theme_name);
33- break;
34- }
35- }
36-
37- theme.active_id = dock_preferences.Theme;
38- theme.changed.connect (() => {
39- dock_preferences.Theme = theme.get_active_id ();
40- });
41-
42 monitor = new Gtk.ComboBoxText ();
43 monitor.halign = Gtk.Align.START;
44 monitor.hexpand = true;
45@@ -141,13 +107,6 @@
46 attach (monitor_label, 1, 4, 1, 1);
47 attach (monitor, 2, 4, 1, 1);
48
49- if (themes_list.size > 0) {
50- var theme_label = new Gtk.Label (_("Theme:"));
51- theme_label.set_halign (Gtk.Align.END);
52- attach (theme_label, 1, 2, 1, 1);
53- attach (theme, 2, 2, 1, 1);
54- }
55-
56 check_for_screens ();
57 }
58

Subscribers

People subscribed via source and target branches

to all changes: