[gnome-builder/wip/gtk4-port: 669/736] libide/gui: improve preference window size and titles
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port: 669/736] libide/gui: improve preference window size and titles
- Date: Tue, 26 Apr 2022 01:46:34 +0000 (UTC)
commit b70a627d4ea93b991bc4362457926e3b6c20a86c
Author: Christian Hergert <chergert redhat com>
Date: Wed Apr 20 08:57:33 2022 -0700
libide/gui: improve preference window size and titles
src/libide/gui/ide-application-actions.c | 4 ++--
src/libide/gui/ide-workbench.c | 9 +++++++++
2 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/src/libide/gui/ide-application-actions.c b/src/libide/gui/ide-application-actions.c
index 3f47fdf53..d3e51da41 100644
--- a/src/libide/gui/ide-application-actions.c
+++ b/src/libide/gui/ide-application-actions.c
@@ -74,8 +74,8 @@ ide_application_actions_preferences (GSimpleAction *action,
window = g_object_new (IDE_TYPE_PREFERENCES_WINDOW,
"mode", IDE_PREFERENCES_MODE_APPLICATION,
"transient-for", toplevel,
- "default-width", 1300,
- "default-height", 800,
+ "default-width", 1050,
+ "default-height", 700,
"title", _("Builder — Preferences"),
NULL);
gtk_application_add_window (GTK_APPLICATION (self), window);
diff --git a/src/libide/gui/ide-workbench.c b/src/libide/gui/ide-workbench.c
index e10eb6ae3..4dbb62323 100644
--- a/src/libide/gui/ide-workbench.c
+++ b/src/libide/gui/ide-workbench.c
@@ -2640,8 +2640,17 @@ ide_workbench_action_configure (IdeWorkbench *self,
if (!found)
{
+ g_autofree char *title = NULL;
+ g_autofree char *window_title = NULL;
+
+ title = ide_context_dup_title (self->context);
+ window_title = g_strdup_printf (_("Builder — %s"), title);
+
window = g_object_new (IDE_TYPE_PREFERENCES_WINDOW,
"mode", IDE_PREFERENCES_MODE_PROJECT,
+ "default-width", 1050,
+ "default-height", 700,
+ "title", window_title,
NULL);
gtk_window_group_add_window (GTK_WINDOW_GROUP (self), window);
gtk_window_present (window);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]