[geany/geany] f87683: Make the New Project dialog a little wider

Jiří Techet git-noreply at geany.org
Fri May 13 00:19:38 UTC 2022


Branch:      refs/heads/master
Author:      Jiří Techet <techet at gmail.com>
Committer:   Jiří Techet <techet at gmail.com>
Date:        Sat, 19 Mar 2022 16:50:30 UTC
Commit:      f8768399d32b817ecaccd2f28f43e8e0d55a06e6
             https://github.com/geany/geany/commit/f8768399d32b817ecaccd2f28f43e8e0d55a06e6

Log Message:
-----------
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).


Modified Paths:
--------------
    src/project.c

Modified: src/project.c
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -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);



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list