Merge lp:~diwic/unity-control-center/lp1376776 into lp:unity-control-center

Proposed by David Henningsson
Status: Merged
Approved by: Sebastien Bacher
Approved revision: 12796
Merged at revision: 12796
Proposed branch: lp:~diwic/unity-control-center/lp1376776
Merge into: lp:unity-control-center
Diff against target: 28 lines (+6/-3)
1 file modified
panels/sound/gvc-mixer-dialog.c (+6/-3)
To merge this branch: bzr merge lp:~diwic/unity-control-center/lp1376776
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Sebastien Bacher Approve
Review via email: mp+241530@code.launchpad.net

Commit message

When the treeview is programmatically updated, the treeview fires a signal that the active item has changed. To distinguish this from a user click, we check the active flag. This was done for output but not for input. (LP: #1376776)

Description of the change

When the treeview is programmatically updated, the treeview fires a signal that the active item has changed. To distinguish this from a user click, we check the active flag. This was done for output but not for input. (LP: #1376776)

To post a comment you must log in.
Revision history for this message
Sebastien Bacher (seb128) wrote :

thanks!

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
David Henningsson (diwic) wrote :

Ping?

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'panels/sound/gvc-mixer-dialog.c'
2--- panels/sound/gvc-mixer-dialog.c 2014-09-16 13:39:04 +0000
3+++ panels/sound/gvc-mixer-dialog.c 2014-11-12 10:00:20 +0000
4@@ -1506,7 +1506,7 @@
5 {
6 GtkTreeModel *model;
7 GtkTreeIter iter;
8- gboolean toggled;
9+ gboolean active;
10 guint id;
11
12 if (gtk_tree_selection_get_selected (selection, &model, &iter) == FALSE) {
13@@ -1516,10 +1516,13 @@
14
15 gtk_tree_model_get (model, &iter,
16 ID_COLUMN, &id,
17- ACTIVE_COLUMN, &toggled,
18+ ACTIVE_COLUMN, &active,
19 -1);
20
21- toggled ^= 1;
22+ g_debug ("\n\n on_input_selection_changed - active %i \n\n", active);
23+ if (active)
24+ return;
25+
26 GvcMixerUIDevice *input;
27 //g_debug ("on_input_selection_changed - try swap to input with id %u", id);
28 input = gvc_mixer_control_lookup_input_id (dialog->priv->mixer_control, id);

Subscribers

People subscribed via source and target branches