Merge lp:~charlesk/gnome-control-center/indicator-visibility into lp:~ubuntu-desktop/gnome-control-center/ubuntu

Proposed by Charles Kerr
Status: Work in progress
Proposed branch: lp:~charlesk/gnome-control-center/indicator-visibility
Merge into: lp:~ubuntu-desktop/gnome-control-center/ubuntu
Diff against target: 58 lines (+43/-0)
2 files modified
debian/patches/60_add_sound_indicator_visibility.patch (+42/-0)
debian/patches/series (+1/-0)
To merge this branch: bzr merge lp:~charlesk/gnome-control-center/indicator-visibility
Reviewer Review Type Date Requested Status
Conor Curran (community) Approve
Ubuntu Desktop Pending
Review via email: mp+90930@code.launchpad.net

Description of the change

Adds a visibility toggle for the sound indicator for Bug #829648

This is my first submission of a downstream patch for an upstream package, so cluestick lessons are welcomed.

To post a comment you must log in.
Revision history for this message
Charles Kerr (charlesk) wrote :

Switching to "Work in progress" -- this relies on indicator-sound 0.8.1.0-plus-one to be released first

334. By Charles Kerr

Use g_settings_bind() instead of reinventing the wheel with a bunch of GSettings<->checkbox glue code

Revision history for this message
Conor Curran (cjcurran) :
review: Approve
Revision history for this message
Robert Ancell (robert-ancell) wrote :

Is this still applicable?

Unmerged revisions

334. By Charles Kerr

Use g_settings_bind() instead of reinventing the wheel with a bunch of GSettings<->checkbox glue code

333. By Charles Kerr

 * 60_add_sound_indicator_visibility.patch
   - New patch to add a visibility toggle for the sound indicator (LP: #829648)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'debian/patches/60_add_sound_indicator_visibility.patch'
2--- debian/patches/60_add_sound_indicator_visibility.patch 1970-01-01 00:00:00 +0000
3+++ debian/patches/60_add_sound_indicator_visibility.patch 2012-02-02 21:39:18 +0000
4@@ -0,0 +1,42 @@
5+--- a/panels/sound/gvc-mixer-dialog.c
6++++ b/panels/sound/gvc-mixer-dialog.c
7+@@ -80,6 +80,7 @@
8+ GtkWidget *click_feedback_button;
9+ GtkWidget *audible_bell_button;
10+ GtkSizeGroup *size_group;
11++ GSettings *indicator_settings;
12+
13+ gdouble last_input_peak;
14+ guint num_apps;
15+@@ -1752,6 +1753,7 @@
16+ {
17+ GObject *object;
18+ GvcMixerDialog *self;
19++ GtkWidget *w;
20+ GtkWidget *main_vbox;
21+ GtkWidget *label;
22+ GtkWidget *alignment;
23+@@ -2012,6 +2014,14 @@
24+ G_CALLBACK (on_control_card_removed),
25+ self);
26+
27++ w = gtk_check_button_new_with_mnemonic(_( "_Show sound volume in the menu bar xyzzy"));
28++ alignment = gtk_alignment_new (0, 0, 1, 1);
29++ gtk_alignment_set_padding (GTK_ALIGNMENT (alignment), 12, 0, 5, 5);
30++ gtk_container_add (GTK_CONTAINER (alignment), w);
31++ gtk_box_pack_start (GTK_BOX (main_vbox), alignment, FALSE, FALSE, 0);
32++ self->priv->indicator_settings = g_settings_new ("com.canonical.indicator.sound");
33++ g_settings_bind (self->priv->indicator_settings, "visible", w, "active", G_SETTINGS_BIND_DEFAULT);
34++
35+ gtk_widget_show_all (main_vbox);
36+
37+ streams = gvc_mixer_control_get_streams (self->priv->mixer_control);
38+@@ -2036,6 +2046,8 @@
39+ {
40+ GvcMixerDialog *dialog = GVC_MIXER_DIALOG (object);
41+
42++ g_clear_object (&dialog->priv->indicator_settings);
43++
44+ if (dialog->priv->mixer_control != NULL) {
45+ g_signal_handlers_disconnect_by_func (dialog->priv->mixer_control,
46+ on_control_stream_added,
47
48=== modified file 'debian/patches/series'
49--- debian/patches/series 2012-01-25 16:38:52 +0000
50+++ debian/patches/series 2012-02-02 21:39:18 +0000
51@@ -17,6 +17,7 @@
52 55_user_accounts_hide_controls.patch
53 56_use_ubuntu_info_branding.patch
54 57_use_nonsymbolic_keyboard_icon.patch
55+60_add_sound_indicator_visibility.patch
56 90_force_fallback.patch
57 91_configure_cheese.patch
58 90_git_sound_tab_order.patch

Subscribers

People subscribed via source and target branches