summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mate-volume-control/dialog-main.c7
-rw-r--r--mate-volume-control/gvc-mixer-dialog.c4
-rw-r--r--mate-volume-control/gvc-mixer-dialog.h4
3 files changed, 12 insertions, 3 deletions
diff --git a/mate-volume-control/dialog-main.c b/mate-volume-control/dialog-main.c
index 08c55fc..64ecfe7 100644
--- a/mate-volume-control/dialog-main.c
+++ b/mate-volume-control/dialog-main.c
@@ -33,6 +33,9 @@
#define DIALOG_POPUP_TIMEOUT 3
+#define DIALOG_DEFAULT_WIDTH 600
+#define DIALOG_DEFAULT_HEIGHT 445
+
static guint popup_id = 0;
static gboolean debug = FALSE;
static gboolean show_version = FALSE;
@@ -94,7 +97,9 @@ context_ready (MateMixerContext *context, UniqueApp *app)
if (app_dialog != NULL)
return;
- app_dialog = GTK_WIDGET (gvc_mixer_dialog_new (context));
+ app_dialog = GTK_WIDGET (gvc_mixer_dialog_new (context,
+ DIALOG_DEFAULT_WIDTH,
+ DIALOG_DEFAULT_HEIGHT));
g_signal_connect (G_OBJECT (app_dialog),
"response",
diff --git a/mate-volume-control/gvc-mixer-dialog.c b/mate-volume-control/gvc-mixer-dialog.c
index 604fcea..8f39f25 100644
--- a/mate-volume-control/gvc-mixer-dialog.c
+++ b/mate-volume-control/gvc-mixer-dialog.c
@@ -2485,12 +2485,14 @@ gvc_mixer_dialog_finalize (GObject *object)
}
GvcMixerDialog *
-gvc_mixer_dialog_new (MateMixerContext *context)
+gvc_mixer_dialog_new (MateMixerContext *context, gint width, gint height)
{
return g_object_new (GVC_TYPE_MIXER_DIALOG,
"icon-name", "multimedia-volume-control",
"title", _("Sound Preferences"),
"context", context,
+ "default-width", width,
+ "default-height", height,
NULL);
}
diff --git a/mate-volume-control/gvc-mixer-dialog.h b/mate-volume-control/gvc-mixer-dialog.h
index 22e522d..c119dd7 100644
--- a/mate-volume-control/gvc-mixer-dialog.h
+++ b/mate-volume-control/gvc-mixer-dialog.h
@@ -55,7 +55,9 @@ struct _GvcMixerDialogClass
GType gvc_mixer_dialog_get_type (void) G_GNUC_CONST;
-GvcMixerDialog * gvc_mixer_dialog_new (MateMixerContext *context);
+GvcMixerDialog * gvc_mixer_dialog_new (MateMixerContext *context,
+ gint width,
+ gint height);
gboolean gvc_mixer_dialog_set_page (GvcMixerDialog *dialog,
const gchar *page);