From f8768399d32b817ecaccd2f28f43e8e0d55a06e6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ji=C5=99=C3=AD=20Techet?= Date: Sat, 4 Dec 2021 17:19:16 +0100 Subject: [PATCH] Make the New Project dialog a little wider With the current width, the created project file name gets hidden even for not-so-long paths. Consider for instance the following path: /home/my_name/projects/project/project.geany It consists of 43 characters where "/home/my_name/projects/" is a typical prefix of someone with not terribly long user name and also "project/project.geany" is fairly normal project name and directory name length. Even though the patch says 40, this 43-character string still fits in on my machine (50 makes the window a little too wide). --- src/project.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/project.c b/src/project.c index 1a75df0d7..a23798344 100644 --- a/src/project.c +++ b/src/project.c @@ -195,7 +195,7 @@ void project_new(gboolean from_folder) e.file_name = gtk_entry_new(); gtk_entry_set_activates_default(GTK_ENTRY(e.file_name), TRUE); ui_entry_add_clear_icon(GTK_ENTRY(e.file_name)); - gtk_entry_set_width_chars(GTK_ENTRY(e.file_name), 30); + gtk_entry_set_width_chars(GTK_ENTRY(e.file_name), 40); tooltip = g_strdup_printf( _("Path of the file representing the project and storing its settings. " "It should normally have the \"%s\" extension."), "."GEANY_PROJECT_EXT); -- 2.11.4.GIT