[gnome-control-center] sound: Use header bar in the testing dialog
- From: Yosef Or Boczko <yoseforb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] sound: Use header bar in the testing dialog
- Date: Mon, 28 Apr 2014 14:37:26 +0000 (UTC)
commit 62c00c7a9a6d05fc2f6dba7cb41a73212d4a552a
Author: Yosef Or Boczko <yoseforb src gnome org>
Date: Mon Mar 24 09:20:58 2014 +0200
sound: Use header bar in the testing dialog
https://bugzilla.gnome.org/show_bug.cgi?id=724299
panels/sound/gvc-mixer-dialog.c | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/panels/sound/gvc-mixer-dialog.c b/panels/sound/gvc-mixer-dialog.c
index 554d91e..3cb59d8 100644
--- a/panels/sound/gvc-mixer-dialog.c
+++ b/panels/sound/gvc-mixer-dialog.c
@@ -1589,12 +1589,13 @@ on_test_speakers_clicked (GvcComboBox *widget,
return;
}
title = g_strdup_printf (_("Speaker Testing for %s"), gvc_mixer_ui_device_get_description (output));
- d = gtk_dialog_new_with_buttons (title,
- GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (widget))),
- GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
- _("_Close"), GTK_RESPONSE_CLOSE,
- NULL);
- gtk_window_set_resizable (GTK_WINDOW (d), FALSE);
+ d = g_object_new (GTK_TYPE_DIALOG, "title", title,
+ "transient-for", GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET
(widget))),
+ "modal", TRUE,
+ "destroy-with-parent", TRUE,
+ "use-header-bar", TRUE,
+ "resizable", FALSE,
+ NULL);
g_free (title);
speaker_test = gvc_speaker_test_new (dialog->priv->mixer_control,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]