sound: Rename new sound panel to replace old one
|
@ -17,7 +17,7 @@ panels = [
|
||||||
'region',
|
'region',
|
||||||
'search',
|
'search',
|
||||||
'sharing',
|
'sharing',
|
||||||
'sound-new',
|
'sound',
|
||||||
'universal-access',
|
'universal-access',
|
||||||
'user-accounts'
|
'user-accounts'
|
||||||
]
|
]
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "cc-alert-chooser.h"
|
#include "cc-alert-chooser.h"
|
||||||
#include "cc-sound-button.h"
|
#include "cc-sound-button.h"
|
||||||
#include "cc-sound-new-resources.h"
|
#include "cc-sound-resources.h"
|
||||||
|
|
||||||
#define KEY_SOUNDS_SCHEMA "org.gnome.desktop.sound"
|
#define KEY_SOUNDS_SCHEMA "org.gnome.desktop.sound"
|
||||||
|
|
||||||
|
@ -236,7 +236,7 @@ cc_alert_chooser_class_init (CcAlertChooserClass *klass)
|
||||||
|
|
||||||
object_class->dispose = cc_alert_chooser_dispose;
|
object_class->dispose = cc_alert_chooser_dispose;
|
||||||
|
|
||||||
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/control-center/sound-new/cc-alert-chooser.ui");
|
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/control-center/sound/cc-alert-chooser.ui");
|
||||||
|
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcAlertChooser, bark_button);
|
gtk_widget_class_bind_template_child (widget_class, CcAlertChooser, bark_button);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcAlertChooser, drip_button);
|
gtk_widget_class_bind_template_child (widget_class, CcAlertChooser, drip_button);
|
||||||
|
@ -254,7 +254,7 @@ cc_alert_chooser_init (CcAlertChooser *self)
|
||||||
g_autofree gchar *alert_name = NULL;
|
g_autofree gchar *alert_name = NULL;
|
||||||
g_autoptr(GError) error = NULL;
|
g_autoptr(GError) error = NULL;
|
||||||
|
|
||||||
g_resources_register (cc_sound_new_get_resource ());
|
g_resources_register (cc_sound_get_resource ());
|
||||||
|
|
||||||
gtk_widget_init_template (GTK_WIDGET (self));
|
gtk_widget_init_template (GTK_WIDGET (self));
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "cc-sound-new-resources.h"
|
#include "cc-sound-resources.h"
|
||||||
#include "cc-balance-slider.h"
|
#include "cc-balance-slider.h"
|
||||||
#include "gvc-channel-map-private.h"
|
#include "gvc-channel-map-private.h"
|
||||||
|
|
||||||
|
@ -78,7 +78,7 @@ cc_balance_slider_class_init (CcBalanceSliderClass *klass)
|
||||||
|
|
||||||
object_class->dispose = cc_balance_slider_dispose;
|
object_class->dispose = cc_balance_slider_dispose;
|
||||||
|
|
||||||
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/control-center/sound-new/cc-balance-slider.ui");
|
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/control-center/sound/cc-balance-slider.ui");
|
||||||
|
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcBalanceSlider, adjustment);
|
gtk_widget_class_bind_template_child (widget_class, CcBalanceSlider, adjustment);
|
||||||
|
|
||||||
|
@ -88,7 +88,7 @@ cc_balance_slider_class_init (CcBalanceSliderClass *klass)
|
||||||
void
|
void
|
||||||
cc_balance_slider_init (CcBalanceSlider *self)
|
cc_balance_slider_init (CcBalanceSlider *self)
|
||||||
{
|
{
|
||||||
g_resources_register (cc_sound_new_get_resource ());
|
g_resources_register (cc_sound_get_resource ());
|
||||||
|
|
||||||
gtk_widget_init_template (GTK_WIDGET (self));
|
gtk_widget_init_template (GTK_WIDGET (self));
|
||||||
}
|
}
|
|
@ -17,7 +17,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "cc-device-combo-box.h"
|
#include "cc-device-combo-box.h"
|
||||||
#include "cc-sound-new-resources.h"
|
#include "cc-sound-resources.h"
|
||||||
|
|
||||||
struct _CcDeviceComboBox
|
struct _CcDeviceComboBox
|
||||||
{
|
{
|
||||||
|
@ -120,7 +120,7 @@ cc_device_combo_box_class_init (CcDeviceComboBoxClass *klass)
|
||||||
|
|
||||||
object_class->dispose = cc_device_combo_box_dispose;
|
object_class->dispose = cc_device_combo_box_dispose;
|
||||||
|
|
||||||
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/control-center/sound-new/cc-device-combo-box.ui");
|
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/control-center/sound/cc-device-combo-box.ui");
|
||||||
|
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcDeviceComboBox, device_model);
|
gtk_widget_class_bind_template_child (widget_class, CcDeviceComboBox, device_model);
|
||||||
}
|
}
|
||||||
|
@ -128,7 +128,7 @@ cc_device_combo_box_class_init (CcDeviceComboBoxClass *klass)
|
||||||
void
|
void
|
||||||
cc_device_combo_box_init (CcDeviceComboBox *self)
|
cc_device_combo_box_init (CcDeviceComboBox *self)
|
||||||
{
|
{
|
||||||
g_resources_register (cc_sound_new_get_resource ());
|
g_resources_register (cc_sound_get_resource ());
|
||||||
|
|
||||||
gtk_widget_init_template (GTK_WIDGET (self));
|
gtk_widget_init_template (GTK_WIDGET (self));
|
||||||
}
|
}
|
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "cc-sound-new-resources.h"
|
#include "cc-sound-resources.h"
|
||||||
#include "cc-fade-slider.h"
|
#include "cc-fade-slider.h"
|
||||||
#include "gvc-channel-map-private.h"
|
#include "gvc-channel-map-private.h"
|
||||||
|
|
||||||
|
@ -78,7 +78,7 @@ cc_fade_slider_class_init (CcFadeSliderClass *klass)
|
||||||
|
|
||||||
object_class->dispose = cc_fade_slider_dispose;
|
object_class->dispose = cc_fade_slider_dispose;
|
||||||
|
|
||||||
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/control-center/sound-new/cc-fade-slider.ui");
|
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/control-center/sound/cc-fade-slider.ui");
|
||||||
|
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcFadeSlider, adjustment);
|
gtk_widget_class_bind_template_child (widget_class, CcFadeSlider, adjustment);
|
||||||
|
|
||||||
|
@ -88,7 +88,7 @@ cc_fade_slider_class_init (CcFadeSliderClass *klass)
|
||||||
void
|
void
|
||||||
cc_fade_slider_init (CcFadeSlider *self)
|
cc_fade_slider_init (CcFadeSlider *self)
|
||||||
{
|
{
|
||||||
g_resources_register (cc_sound_new_get_resource ());
|
g_resources_register (cc_sound_get_resource ());
|
||||||
|
|
||||||
gtk_widget_init_template (GTK_WIDGET (self));
|
gtk_widget_init_template (GTK_WIDGET (self));
|
||||||
}
|
}
|
|
@ -20,7 +20,7 @@
|
||||||
#include <glib/gi18n.h>
|
#include <glib/gi18n.h>
|
||||||
|
|
||||||
#include "cc-output-test-dialog.h"
|
#include "cc-output-test-dialog.h"
|
||||||
#include "cc-sound-new-resources.h"
|
#include "cc-sound-resources.h"
|
||||||
#include "cc-speaker-test-button.h"
|
#include "cc-speaker-test-button.h"
|
||||||
|
|
||||||
struct _CcOutputTestDialog
|
struct _CcOutputTestDialog
|
||||||
|
@ -64,7 +64,7 @@ cc_output_test_dialog_class_init (CcOutputTestDialogClass *klass)
|
||||||
|
|
||||||
object_class->dispose = cc_output_test_dialog_dispose;
|
object_class->dispose = cc_output_test_dialog_dispose;
|
||||||
|
|
||||||
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/control-center/sound-new/cc-output-test-dialog.ui");
|
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/control-center/sound/cc-output-test-dialog.ui");
|
||||||
|
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcOutputTestDialog, front_center_speaker_button);
|
gtk_widget_class_bind_template_child (widget_class, CcOutputTestDialog, front_center_speaker_button);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcOutputTestDialog, front_left_speaker_button);
|
gtk_widget_class_bind_template_child (widget_class, CcOutputTestDialog, front_left_speaker_button);
|
||||||
|
@ -87,7 +87,7 @@ cc_output_test_dialog_init (CcOutputTestDialog *self)
|
||||||
GtkSettings *settings;
|
GtkSettings *settings;
|
||||||
g_autofree gchar *theme_name = NULL;
|
g_autofree gchar *theme_name = NULL;
|
||||||
|
|
||||||
g_resources_register (cc_sound_new_get_resource ());
|
g_resources_register (cc_sound_get_resource ());
|
||||||
|
|
||||||
gtk_widget_init_template (GTK_WIDGET (self));
|
gtk_widget_init_template (GTK_WIDGET (self));
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "cc-profile-combo-box.h"
|
#include "cc-profile-combo-box.h"
|
||||||
#include "cc-sound-new-resources.h"
|
#include "cc-sound-resources.h"
|
||||||
|
|
||||||
struct _CcProfileComboBox
|
struct _CcProfileComboBox
|
||||||
{
|
{
|
||||||
|
@ -70,7 +70,7 @@ cc_profile_combo_box_class_init (CcProfileComboBoxClass *klass)
|
||||||
|
|
||||||
object_class->dispose = cc_profile_combo_box_dispose;
|
object_class->dispose = cc_profile_combo_box_dispose;
|
||||||
|
|
||||||
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/control-center/sound-new/cc-profile-combo-box.ui");
|
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/control-center/sound/cc-profile-combo-box.ui");
|
||||||
|
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcProfileComboBox, profile_model);
|
gtk_widget_class_bind_template_child (widget_class, CcProfileComboBox, profile_model);
|
||||||
|
|
||||||
|
@ -80,7 +80,7 @@ cc_profile_combo_box_class_init (CcProfileComboBoxClass *klass)
|
||||||
void
|
void
|
||||||
cc_profile_combo_box_init (CcProfileComboBox *self)
|
cc_profile_combo_box_init (CcProfileComboBox *self)
|
||||||
{
|
{
|
||||||
g_resources_register (cc_sound_new_get_resource ());
|
g_resources_register (cc_sound_get_resource ());
|
||||||
|
|
||||||
gtk_widget_init_template (GTK_WIDGET (self));
|
gtk_widget_init_template (GTK_WIDGET (self));
|
||||||
}
|
}
|
|
@ -17,7 +17,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "cc-sound-button.h"
|
#include "cc-sound-button.h"
|
||||||
#include "cc-sound-new-resources.h"
|
#include "cc-sound-resources.h"
|
||||||
|
|
||||||
struct _CcSoundButton
|
struct _CcSoundButton
|
||||||
{
|
{
|
||||||
|
@ -78,7 +78,7 @@ cc_sound_button_class_init (CcSoundButtonClass *klass)
|
||||||
object_class->set_property = cc_sound_button_set_property;
|
object_class->set_property = cc_sound_button_set_property;
|
||||||
object_class->get_property = cc_sound_button_get_property;
|
object_class->get_property = cc_sound_button_get_property;
|
||||||
|
|
||||||
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/control-center/sound-new/cc-sound-button.ui");
|
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/control-center/sound/cc-sound-button.ui");
|
||||||
|
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcSoundButton, image);
|
gtk_widget_class_bind_template_child (widget_class, CcSoundButton, image);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcSoundButton, label);
|
gtk_widget_class_bind_template_child (widget_class, CcSoundButton, label);
|
||||||
|
@ -94,7 +94,7 @@ cc_sound_button_class_init (CcSoundButtonClass *klass)
|
||||||
void
|
void
|
||||||
cc_sound_button_init (CcSoundButton *self)
|
cc_sound_button_init (CcSoundButton *self)
|
||||||
{
|
{
|
||||||
g_resources_register (cc_sound_new_get_resource ());
|
g_resources_register (cc_sound_get_resource ());
|
||||||
|
|
||||||
gtk_widget_init_template (GTK_WIDGET (self));
|
gtk_widget_init_template (GTK_WIDGET (self));
|
||||||
}
|
}
|
|
@ -38,13 +38,13 @@
|
||||||
#include "cc-level-bar.h"
|
#include "cc-level-bar.h"
|
||||||
#include "cc-output-test-dialog.h"
|
#include "cc-output-test-dialog.h"
|
||||||
#include "cc-profile-combo-box.h"
|
#include "cc-profile-combo-box.h"
|
||||||
#include "cc-sound-new-panel.h"
|
#include "cc-sound-panel.h"
|
||||||
#include "cc-sound-new-resources.h"
|
#include "cc-sound-resources.h"
|
||||||
#include "cc-stream-list-box.h"
|
#include "cc-stream-list-box.h"
|
||||||
#include "cc-subwoofer-slider.h"
|
#include "cc-subwoofer-slider.h"
|
||||||
#include "cc-volume-slider.h"
|
#include "cc-volume-slider.h"
|
||||||
|
|
||||||
struct _CcSoundNewPanel
|
struct _CcSoundPanel
|
||||||
{
|
{
|
||||||
CcPanel parent_instance;
|
CcPanel parent_instance;
|
||||||
|
|
||||||
|
@ -74,7 +74,7 @@ struct _CcSoundNewPanel
|
||||||
GSettings *sound_settings;
|
GSettings *sound_settings;
|
||||||
};
|
};
|
||||||
|
|
||||||
CC_PANEL_REGISTER (CcSoundNewPanel, cc_sound_new_panel)
|
CC_PANEL_REGISTER (CcSoundPanel, cc_sound_panel)
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
|
@ -85,14 +85,14 @@ enum
|
||||||
#define KEY_SOUNDS_SCHEMA "org.gnome.desktop.sound"
|
#define KEY_SOUNDS_SCHEMA "org.gnome.desktop.sound"
|
||||||
|
|
||||||
static void
|
static void
|
||||||
allow_amplified_changed_cb (CcSoundNewPanel *self)
|
allow_amplified_changed_cb (CcSoundPanel *self)
|
||||||
{
|
{
|
||||||
cc_volume_slider_set_is_amplified (self->output_volume_slider,
|
cc_volume_slider_set_is_amplified (self->output_volume_slider,
|
||||||
g_settings_get_boolean (self->sound_settings, "allow-volume-above-100-percent"));
|
g_settings_get_boolean (self->sound_settings, "allow-volume-above-100-percent"));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
output_device_changed_cb (CcSoundNewPanel *self)
|
output_device_changed_cb (CcSoundPanel *self)
|
||||||
{
|
{
|
||||||
GvcMixerUIDevice *device;
|
GvcMixerUIDevice *device;
|
||||||
GvcMixerStream *stream = NULL;
|
GvcMixerStream *stream = NULL;
|
||||||
|
@ -125,7 +125,7 @@ output_device_changed_cb (CcSoundNewPanel *self)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
input_device_changed_cb (CcSoundNewPanel *self)
|
input_device_changed_cb (CcSoundPanel *self)
|
||||||
{
|
{
|
||||||
GvcMixerUIDevice *device;
|
GvcMixerUIDevice *device;
|
||||||
GvcMixerStream *stream = NULL;
|
GvcMixerStream *stream = NULL;
|
||||||
|
@ -143,7 +143,7 @@ input_device_changed_cb (CcSoundNewPanel *self)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
test_output_configuration_button_clicked_cb (CcSoundNewPanel *self)
|
test_output_configuration_button_clicked_cb (CcSoundPanel *self)
|
||||||
{
|
{
|
||||||
GvcMixerUIDevice *device;
|
GvcMixerUIDevice *device;
|
||||||
GvcMixerStream *stream = NULL;
|
GvcMixerStream *stream = NULL;
|
||||||
|
@ -160,55 +160,55 @@ test_output_configuration_button_clicked_cb (CcSoundNewPanel *self)
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char *
|
static const char *
|
||||||
cc_sound_new_panel_get_help_uri (CcPanel *panel)
|
cc_sound_panel_get_help_uri (CcPanel *panel)
|
||||||
{
|
{
|
||||||
return "help:gnome-help/media#sound";
|
return "help:gnome-help/media#sound";
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
cc_sound_new_panel_finalize (GObject *object)
|
cc_sound_panel_finalize (GObject *object)
|
||||||
{
|
{
|
||||||
CcSoundNewPanel *panel = CC_SOUND_NEW_PANEL (object);
|
CcSoundPanel *panel = CC_SOUND_PANEL (object);
|
||||||
|
|
||||||
g_clear_object (&panel->mixer_control);
|
g_clear_object (&panel->mixer_control);
|
||||||
g_clear_object (&panel->sound_settings);
|
g_clear_object (&panel->sound_settings);
|
||||||
|
|
||||||
G_OBJECT_CLASS (cc_sound_new_panel_parent_class)->finalize (object);
|
G_OBJECT_CLASS (cc_sound_panel_parent_class)->finalize (object);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
cc_sound_new_panel_class_init (CcSoundNewPanelClass *klass)
|
cc_sound_panel_class_init (CcSoundPanelClass *klass)
|
||||||
{
|
{
|
||||||
GObjectClass *object_class = G_OBJECT_CLASS (klass);
|
GObjectClass *object_class = G_OBJECT_CLASS (klass);
|
||||||
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
|
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
|
||||||
CcPanelClass *panel_class = CC_PANEL_CLASS (klass);
|
CcPanelClass *panel_class = CC_PANEL_CLASS (klass);
|
||||||
|
|
||||||
panel_class->get_help_uri = cc_sound_new_panel_get_help_uri;
|
panel_class->get_help_uri = cc_sound_panel_get_help_uri;
|
||||||
|
|
||||||
object_class->finalize = cc_sound_new_panel_finalize;
|
object_class->finalize = cc_sound_panel_finalize;
|
||||||
|
|
||||||
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/control-center/sound-new/cc-sound-new-panel.ui");
|
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/control-center/sound/cc-sound-panel.ui");
|
||||||
|
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcSoundNewPanel, balance_slider);
|
gtk_widget_class_bind_template_child (widget_class, CcSoundPanel, balance_slider);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcSoundNewPanel, fade_row);
|
gtk_widget_class_bind_template_child (widget_class, CcSoundPanel, fade_row);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcSoundNewPanel, fade_slider);
|
gtk_widget_class_bind_template_child (widget_class, CcSoundPanel, fade_slider);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcSoundNewPanel, input_device_combo_box);
|
gtk_widget_class_bind_template_child (widget_class, CcSoundPanel, input_device_combo_box);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcSoundNewPanel, input_level_bar);
|
gtk_widget_class_bind_template_child (widget_class, CcSoundPanel, input_level_bar);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcSoundNewPanel, input_list_box);
|
gtk_widget_class_bind_template_child (widget_class, CcSoundPanel, input_list_box);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcSoundNewPanel, input_profile_combo_box);
|
gtk_widget_class_bind_template_child (widget_class, CcSoundPanel, input_profile_combo_box);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcSoundNewPanel, input_profile_row);
|
gtk_widget_class_bind_template_child (widget_class, CcSoundPanel, input_profile_row);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcSoundNewPanel, input_volume_slider);
|
gtk_widget_class_bind_template_child (widget_class, CcSoundPanel, input_volume_slider);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcSoundNewPanel, label_size_group);
|
gtk_widget_class_bind_template_child (widget_class, CcSoundPanel, label_size_group);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcSoundNewPanel, main_box);
|
gtk_widget_class_bind_template_child (widget_class, CcSoundPanel, main_box);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcSoundNewPanel, output_device_combo_box);
|
gtk_widget_class_bind_template_child (widget_class, CcSoundPanel, output_device_combo_box);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcSoundNewPanel, output_level_bar);
|
gtk_widget_class_bind_template_child (widget_class, CcSoundPanel, output_level_bar);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcSoundNewPanel, output_list_box);
|
gtk_widget_class_bind_template_child (widget_class, CcSoundPanel, output_list_box);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcSoundNewPanel, output_profile_combo_box);
|
gtk_widget_class_bind_template_child (widget_class, CcSoundPanel, output_profile_combo_box);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcSoundNewPanel, output_profile_row);
|
gtk_widget_class_bind_template_child (widget_class, CcSoundPanel, output_profile_row);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcSoundNewPanel, output_volume_slider);
|
gtk_widget_class_bind_template_child (widget_class, CcSoundPanel, output_volume_slider);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcSoundNewPanel, stream_list_box);
|
gtk_widget_class_bind_template_child (widget_class, CcSoundPanel, stream_list_box);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcSoundNewPanel, subwoofer_row);
|
gtk_widget_class_bind_template_child (widget_class, CcSoundPanel, subwoofer_row);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcSoundNewPanel, subwoofer_slider);
|
gtk_widget_class_bind_template_child (widget_class, CcSoundPanel, subwoofer_slider);
|
||||||
|
|
||||||
gtk_widget_class_bind_template_callback (widget_class, input_device_changed_cb);
|
gtk_widget_class_bind_template_callback (widget_class, input_device_changed_cb);
|
||||||
gtk_widget_class_bind_template_callback (widget_class, output_device_changed_cb);
|
gtk_widget_class_bind_template_callback (widget_class, output_device_changed_cb);
|
||||||
|
@ -226,9 +226,9 @@ cc_sound_new_panel_class_init (CcSoundNewPanelClass *klass)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
cc_sound_new_panel_init (CcSoundNewPanel *self)
|
cc_sound_panel_init (CcSoundPanel *self)
|
||||||
{
|
{
|
||||||
g_resources_register (cc_sound_new_get_resource ());
|
g_resources_register (cc_sound_get_resource ());
|
||||||
|
|
||||||
gtk_widget_init_template (GTK_WIDGET (self));
|
gtk_widget_init_template (GTK_WIDGET (self));
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
#define CC_TYPE_SOUND_NEW_PANEL (cc_sound_new_panel_get_type ())
|
#define CC_TYPE_SOUND_PANEL (cc_sound_panel_get_type ())
|
||||||
G_DECLARE_FINAL_TYPE (CcSoundNewPanel, cc_sound_new_panel, CC, SOUND_NEW_PANEL, CcPanel)
|
G_DECLARE_FINAL_TYPE (CcSoundPanel, cc_sound_panel, CC, SOUND_PANEL, CcPanel)
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<interface>
|
<interface>
|
||||||
<!-- interface-requires gtk+ 3.0 -->
|
<!-- interface-requires gtk+ 3.0 -->
|
||||||
<template class="CcSoundNewPanel" parent="CcPanel">
|
<template class="CcSoundPanel" parent="CcPanel">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkScrolledWindow">
|
<object class="GtkScrolledWindow">
|
||||||
|
@ -108,14 +108,14 @@
|
||||||
<object class="CcDeviceComboBox" id="output_device_combo_box">
|
<object class="CcDeviceComboBox" id="output_device_combo_box">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="hexpand">True</property>
|
<property name="hexpand">True</property>
|
||||||
<signal name="changed" handler="output_device_changed_cb" object="CcSoundNewPanel" swapped="yes"/>
|
<signal name="changed" handler="output_device_changed_cb" object="CcSoundPanel" swapped="yes"/>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkButton">
|
<object class="GtkButton">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="label" translatable="yes">Test</property>
|
<property name="label" translatable="yes">Test</property>
|
||||||
<signal name="clicked" handler="test_output_configuration_button_clicked_cb" object="CcSoundNewPanel" swapped="yes"/>
|
<signal name="clicked" handler="test_output_configuration_button_clicked_cb" object="CcSoundPanel" swapped="yes"/>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
|
@ -289,7 +289,7 @@
|
||||||
<object class="CcDeviceComboBox" id="input_device_combo_box">
|
<object class="CcDeviceComboBox" id="input_device_combo_box">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="hexpand">True</property>
|
<property name="hexpand">True</property>
|
||||||
<signal name="changed" handler="input_device_changed_cb" object="CcSoundNewPanel" swapped="yes"/>
|
<signal name="changed" handler="input_device_changed_cb" object="CcSoundPanel" swapped="yes"/>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
|
@ -19,7 +19,7 @@
|
||||||
#include <gsound.h>
|
#include <gsound.h>
|
||||||
#include <pulse/pulseaudio.h>
|
#include <pulse/pulseaudio.h>
|
||||||
|
|
||||||
#include "cc-sound-new-resources.h"
|
#include "cc-sound-resources.h"
|
||||||
#include "cc-speaker-test-button.h"
|
#include "cc-speaker-test-button.h"
|
||||||
|
|
||||||
struct _CcSpeakerTestButton
|
struct _CcSpeakerTestButton
|
||||||
|
@ -202,7 +202,7 @@ cc_speaker_test_button_class_init (CcSpeakerTestButtonClass *klass)
|
||||||
|
|
||||||
object_class->dispose = cc_speaker_test_button_dispose;
|
object_class->dispose = cc_speaker_test_button_dispose;
|
||||||
|
|
||||||
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/control-center/sound-new/cc-speaker-test-button.ui");
|
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/control-center/sound/cc-speaker-test-button.ui");
|
||||||
|
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcSpeakerTestButton, image);
|
gtk_widget_class_bind_template_child (widget_class, CcSpeakerTestButton, image);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcSpeakerTestButton, label);
|
gtk_widget_class_bind_template_child (widget_class, CcSpeakerTestButton, label);
|
||||||
|
@ -213,7 +213,7 @@ cc_speaker_test_button_class_init (CcSpeakerTestButtonClass *klass)
|
||||||
void
|
void
|
||||||
cc_speaker_test_button_init (CcSpeakerTestButton *self)
|
cc_speaker_test_button_init (CcSpeakerTestButton *self)
|
||||||
{
|
{
|
||||||
g_resources_register (cc_sound_new_get_resource ());
|
g_resources_register (cc_sound_get_resource ());
|
||||||
|
|
||||||
gtk_widget_init_template (GTK_WIDGET (self));
|
gtk_widget_init_template (GTK_WIDGET (self));
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "cc-sound-new-resources.h"
|
#include "cc-sound-resources.h"
|
||||||
#include "cc-stream-row.h"
|
#include "cc-stream-row.h"
|
||||||
#include "cc-volume-slider.h"
|
#include "cc-volume-slider.h"
|
||||||
|
|
||||||
|
@ -53,7 +53,7 @@ cc_stream_row_class_init (CcStreamRowClass *klass)
|
||||||
|
|
||||||
object_class->dispose = cc_stream_row_dispose;
|
object_class->dispose = cc_stream_row_dispose;
|
||||||
|
|
||||||
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/control-center/sound-new/cc-stream-row.ui");
|
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/control-center/sound/cc-stream-row.ui");
|
||||||
|
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcStreamRow, label_box);
|
gtk_widget_class_bind_template_child (widget_class, CcStreamRow, label_box);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcStreamRow, icon_image);
|
gtk_widget_class_bind_template_child (widget_class, CcStreamRow, icon_image);
|
||||||
|
@ -64,7 +64,7 @@ cc_stream_row_class_init (CcStreamRowClass *klass)
|
||||||
void
|
void
|
||||||
cc_stream_row_init (CcStreamRow *self)
|
cc_stream_row_init (CcStreamRow *self)
|
||||||
{
|
{
|
||||||
g_resources_register (cc_sound_new_get_resource ());
|
g_resources_register (cc_sound_get_resource ());
|
||||||
|
|
||||||
gtk_widget_init_template (GTK_WIDGET (self));
|
gtk_widget_init_template (GTK_WIDGET (self));
|
||||||
}
|
}
|
|
@ -19,7 +19,7 @@
|
||||||
#include <pulse/pulseaudio.h>
|
#include <pulse/pulseaudio.h>
|
||||||
#include <gvc-mixer-control.h>
|
#include <gvc-mixer-control.h>
|
||||||
|
|
||||||
#include "cc-sound-new-resources.h"
|
#include "cc-sound-resources.h"
|
||||||
#include "cc-subwoofer-slider.h"
|
#include "cc-subwoofer-slider.h"
|
||||||
#include "gvc-channel-map-private.h"
|
#include "gvc-channel-map-private.h"
|
||||||
|
|
||||||
|
@ -81,7 +81,7 @@ cc_subwoofer_slider_class_init (CcSubwooferSliderClass *klass)
|
||||||
|
|
||||||
object_class->dispose = cc_subwoofer_slider_dispose;
|
object_class->dispose = cc_subwoofer_slider_dispose;
|
||||||
|
|
||||||
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/control-center/sound-new/cc-subwoofer-slider.ui");
|
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/control-center/sound/cc-subwoofer-slider.ui");
|
||||||
|
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcSubwooferSlider, adjustment);
|
gtk_widget_class_bind_template_child (widget_class, CcSubwooferSlider, adjustment);
|
||||||
|
|
||||||
|
@ -93,7 +93,7 @@ cc_subwoofer_slider_init (CcSubwooferSlider *self)
|
||||||
{
|
{
|
||||||
gdouble vol_max_norm;
|
gdouble vol_max_norm;
|
||||||
|
|
||||||
g_resources_register (cc_sound_new_get_resource ());
|
g_resources_register (cc_sound_get_resource ());
|
||||||
|
|
||||||
gtk_widget_init_template (GTK_WIDGET (self));
|
gtk_widget_init_template (GTK_WIDGET (self));
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
#include <gvc-mixer-control.h>
|
#include <gvc-mixer-control.h>
|
||||||
#include <canberra-gtk.h>
|
#include <canberra-gtk.h>
|
||||||
|
|
||||||
#include "cc-sound-new-resources.h"
|
#include "cc-sound-resources.h"
|
||||||
#include "cc-volume-slider.h"
|
#include "cc-volume-slider.h"
|
||||||
|
|
||||||
struct _CcVolumeSlider
|
struct _CcVolumeSlider
|
||||||
|
@ -106,7 +106,7 @@ cc_volume_slider_class_init (CcVolumeSliderClass *klass)
|
||||||
|
|
||||||
object_class->dispose = cc_volume_slider_dispose;
|
object_class->dispose = cc_volume_slider_dispose;
|
||||||
|
|
||||||
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/control-center/sound-new/cc-volume-slider.ui");
|
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/control-center/sound/cc-volume-slider.ui");
|
||||||
|
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcVolumeSlider, mute_button);
|
gtk_widget_class_bind_template_child (widget_class, CcVolumeSlider, mute_button);
|
||||||
gtk_widget_class_bind_template_child (widget_class, CcVolumeSlider, volume_adjustment);
|
gtk_widget_class_bind_template_child (widget_class, CcVolumeSlider, volume_adjustment);
|
||||||
|
@ -121,7 +121,7 @@ cc_volume_slider_init (CcVolumeSlider *self)
|
||||||
{
|
{
|
||||||
gdouble vol_max_norm;
|
gdouble vol_max_norm;
|
||||||
|
|
||||||
g_resources_register (cc_sound_new_get_resource ());
|
g_resources_register (cc_sound_get_resource ());
|
||||||
|
|
||||||
gtk_widget_init_template (GTK_WIDGET (self));
|
gtk_widget_init_template (GTK_WIDGET (self));
|
||||||
|
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
|
@ -39,7 +39,7 @@ sources = files(
|
||||||
'cc-output-test-dialog.c',
|
'cc-output-test-dialog.c',
|
||||||
'cc-profile-combo-box.c',
|
'cc-profile-combo-box.c',
|
||||||
'cc-sound-button.c',
|
'cc-sound-button.c',
|
||||||
'cc-sound-new-panel.c',
|
'cc-sound-panel.c',
|
||||||
'cc-speaker-test-button.c',
|
'cc-speaker-test-button.c',
|
||||||
'cc-stream-list-box.c',
|
'cc-stream-list-box.c',
|
||||||
'cc-stream-row.c',
|
'cc-stream-row.c',
|
||||||
|
@ -74,7 +74,7 @@ resource_data = files(
|
||||||
'cc-output-test-dialog.ui',
|
'cc-output-test-dialog.ui',
|
||||||
'cc-profile-combo-box.ui',
|
'cc-profile-combo-box.ui',
|
||||||
'cc-sound-button.ui',
|
'cc-sound-button.ui',
|
||||||
'cc-sound-new-panel.ui',
|
'cc-sound-panel.ui',
|
||||||
'cc-speaker-test-button.ui',
|
'cc-speaker-test-button.ui',
|
||||||
'cc-stream-row.ui',
|
'cc-stream-row.ui',
|
||||||
'cc-subwoofer-slider.ui',
|
'cc-subwoofer-slider.ui',
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<gresources>
|
<gresources>
|
||||||
<gresource prefix="/org/gnome/control-center/sound-new">
|
<gresource prefix="/org/gnome/control-center/sound">
|
||||||
<file preprocess="xml-stripblanks">cc-alert-chooser.ui</file>
|
<file preprocess="xml-stripblanks">cc-alert-chooser.ui</file>
|
||||||
<file preprocess="xml-stripblanks">cc-balance-slider.ui</file>
|
<file preprocess="xml-stripblanks">cc-balance-slider.ui</file>
|
||||||
<file preprocess="xml-stripblanks">cc-device-combo-box.ui</file>
|
<file preprocess="xml-stripblanks">cc-device-combo-box.ui</file>
|
||||||
|
@ -8,7 +8,7 @@
|
||||||
<file preprocess="xml-stripblanks">cc-output-test-dialog.ui</file>
|
<file preprocess="xml-stripblanks">cc-output-test-dialog.ui</file>
|
||||||
<file preprocess="xml-stripblanks">cc-profile-combo-box.ui</file>
|
<file preprocess="xml-stripblanks">cc-profile-combo-box.ui</file>
|
||||||
<file preprocess="xml-stripblanks">cc-sound-button.ui</file>
|
<file preprocess="xml-stripblanks">cc-sound-button.ui</file>
|
||||||
<file preprocess="xml-stripblanks">cc-sound-new-panel.ui</file>
|
<file preprocess="xml-stripblanks">cc-sound-panel.ui</file>
|
||||||
<file preprocess="xml-stripblanks">cc-speaker-test-button.ui</file>
|
<file preprocess="xml-stripblanks">cc-speaker-test-button.ui</file>
|
||||||
<file preprocess="xml-stripblanks">cc-stream-row.ui</file>
|
<file preprocess="xml-stripblanks">cc-stream-row.ui</file>
|
||||||
<file preprocess="xml-stripblanks">cc-subwoofer-slider.ui</file>
|
<file preprocess="xml-stripblanks">cc-subwoofer-slider.ui</file>
|
|
@ -179,14 +179,14 @@ panels/sharing/cc-sharing-panel.ui
|
||||||
panels/sharing/gnome-sharing-panel.desktop.in.in
|
panels/sharing/gnome-sharing-panel.desktop.in.in
|
||||||
panels/sharing/networks.ui
|
panels/sharing/networks.ui
|
||||||
panels/sharing/org.gnome.controlcenter.remote-login-helper.policy.in.in
|
panels/sharing/org.gnome.controlcenter.remote-login-helper.policy.in.in
|
||||||
panels/sound-new/cc-alert-slider.ui
|
panels/sound/cc-alert-slider.ui
|
||||||
panels/sound-new/cc-balance-slider.ui
|
panels/sound/cc-balance-slider.ui
|
||||||
panels/sound-new/cc-fade-slider.ui
|
panels/sound/cc-fade-slider.ui
|
||||||
panels/sound-new/cc-output-test-dialog.c
|
panels/sound/cc-output-test-dialog.c
|
||||||
panels/sound-new/cc-output-test-dialog.ui
|
panels/sound/cc-output-test-dialog.ui
|
||||||
panels/sound-new/cc-sound-panel.ui
|
panels/sound/cc-sound-panel.ui
|
||||||
panels/sound-new/cc-volume-slider.c
|
panels/sound/cc-volume-slider.c
|
||||||
panels/sound-new/gnome-sound-panel.desktop.in.in
|
panels/sound/gnome-sound-panel.desktop.in.in
|
||||||
panels/thunderbolt/cc-bolt-device-dialog.c
|
panels/thunderbolt/cc-bolt-device-dialog.c
|
||||||
panels/thunderbolt/cc-bolt-device-dialog.ui
|
panels/thunderbolt/cc-bolt-device-dialog.ui
|
||||||
panels/thunderbolt/cc-bolt-device-entry.c
|
panels/thunderbolt/cc-bolt-device-entry.c
|
||||||
|
|
|
@ -56,7 +56,7 @@ extern GType cc_privacy_panel_get_type (void);
|
||||||
extern GType cc_region_panel_get_type (void);
|
extern GType cc_region_panel_get_type (void);
|
||||||
extern GType cc_search_panel_get_type (void);
|
extern GType cc_search_panel_get_type (void);
|
||||||
extern GType cc_sharing_panel_get_type (void);
|
extern GType cc_sharing_panel_get_type (void);
|
||||||
extern GType cc_sound_new_panel_get_type (void);
|
extern GType cc_sound_panel_get_type (void);
|
||||||
#ifdef BUILD_THUNDERBOLT
|
#ifdef BUILD_THUNDERBOLT
|
||||||
extern GType cc_bolt_panel_get_type (void);
|
extern GType cc_bolt_panel_get_type (void);
|
||||||
#endif /* BUILD_THUNDERBOLT */
|
#endif /* BUILD_THUNDERBOLT */
|
||||||
|
@ -109,7 +109,7 @@ static CcPanelLoaderVtable default_panels[] =
|
||||||
PANEL_TYPE("region", cc_region_panel_get_type, NULL),
|
PANEL_TYPE("region", cc_region_panel_get_type, NULL),
|
||||||
PANEL_TYPE("search", cc_search_panel_get_type, NULL),
|
PANEL_TYPE("search", cc_search_panel_get_type, NULL),
|
||||||
PANEL_TYPE("sharing", cc_sharing_panel_get_type, NULL),
|
PANEL_TYPE("sharing", cc_sharing_panel_get_type, NULL),
|
||||||
PANEL_TYPE("sound", cc_sound_new_panel_get_type, NULL),
|
PANEL_TYPE("sound", cc_sound_panel_get_type, NULL),
|
||||||
#ifdef BUILD_THUNDERBOLT
|
#ifdef BUILD_THUNDERBOLT
|
||||||
PANEL_TYPE("thunderbolt", cc_bolt_panel_get_type, NULL),
|
PANEL_TYPE("thunderbolt", cc_bolt_panel_get_type, NULL),
|
||||||
#endif
|
#endif
|
||||||
|
|