Merge lp:~elementary-pantheon/switchboard-plug-security-privacy/info-tooltip into lp:~elementary-apps/switchboard-plug-security-privacy/trunk

Proposed by Danielle Foré
Status: Merged
Approved by: Cody Garver
Approved revision: 253
Merged at revision: 253
Proposed branch: lp:~elementary-pantheon/switchboard-plug-security-privacy/info-tooltip
Merge into: lp:~elementary-apps/switchboard-plug-security-privacy/trunk
Diff against target: 55 lines (+2/-29)
1 file modified
src/TrackPanel.vala (+2/-29)
To merge this branch: bzr merge lp:~elementary-pantheon/switchboard-plug-security-privacy/info-tooltip
Reviewer Review Type Date Requested Status
elementary Apps team Pending
Review via email: mp+307235@code.launchpad.net

Commit message

TrackPanel.vala: Remove info_popover in favor of tooltip text

Description of the change

Follow up from some discussion we had before. If there are no interactive elements and only information, we should use (i) with a tooltip. If there are interactive elements then it's ... with a popover.

Since this is only info, should be a tooltip

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/TrackPanel.vala'
2--- src/TrackPanel.vala 2016-03-02 18:05:24 +0000
3+++ src/TrackPanel.vala 2016-09-29 20:38:29 +0000
4@@ -25,7 +25,6 @@
5 private Gtk.RecentManager recent;
6 private List<Gtk.RecentInfo> items;
7
8- private Gtk.Popover info_popover;
9 private Gtk.Popover remove_popover;
10 private Dialogs.AppChooser app_chooser;
11 private ApplicationBlacklist app_blacklist;
12@@ -87,17 +86,8 @@
13
14 create_description_panel ();
15
16- var info_button = new Gtk.ToggleButton ();
17- info_button.tooltip_text = _("Read more…");
18- info_button.image = new Gtk.Image.from_icon_name ("help-info-symbolic", Gtk.IconSize.MENU);
19- info_button.relief = Gtk.ReliefStyle.NONE;
20- info_button.notify["active"].connect (() => {
21- if (info_button.active == false) {
22- info_popover.hide ();
23- } else {
24- info_popover.show_all ();
25- }
26- });
27+ var info_button = new Gtk.Image.from_icon_name ("help-info-symbolic", Gtk.IconSize.MENU);
28+ info_button.tooltip_text = _("This operating system can gather useful statistics about file and app usage to provide extra functionality. If other people can see or access your account, you may wish to limit which items are recorded.");
29
30 var record_grid = new Gtk.Grid ();
31 record_grid.column_spacing = 12;
32@@ -105,23 +95,6 @@
33 record_grid.add (record_switch);
34 record_grid.add (info_button);
35
36- /* Info Popover */
37-
38- var explain_label = new Gtk.Label (_("This operating system can gather useful statistics about file and app usage to provide extra functionality. If other people can see or access your account, you may wish to limit which items are recorded."));
39- explain_label.wrap = true;
40- explain_label.max_width_chars = 60;
41-
42- var info_popover_grid = new Gtk.Grid ();
43- info_popover_grid.margin = 12;
44-
45- info_popover = new Gtk.Popover (info_button);
46- info_popover.add (info_popover_grid);
47- info_popover.closed.connect (() => {
48- info_button.active = false;
49- });
50-
51- info_popover_grid.add (explain_label);
52-
53 /* Remove Popover */
54
55 var clear_data = new Gtk.ToggleButton.with_label (_("Clear Usage Data…"));

Subscribers

People subscribed via source and target branches