Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Fri, 04 Jul 2014 15:53:24 UTC Commit: 7f7f66978bca26581cae16f27b6e8bf4e58d1a54 https://github.com/geany/geany/commit/7f7f66978bca26581cae16f27b6e8bf4e58d1a...
Log Message: ----------- Add tooltips to explain the purpose of the New Project dialog fields
Modified Paths: -------------- src/project.c
Modified: src/project.c 7 lines changed, 7 insertions(+), 0 deletions(-) =================================================================== @@ -110,6 +110,7 @@ void project_new(void) GtkWidget *button; GtkWidget *bbox; GtkWidget *label; + gchar *tooltip; PropertyDialogElements *e;
if (! project_ask_close()) @@ -143,6 +144,7 @@ void project_new(void) gtk_entry_set_activates_default(GTK_ENTRY(e->name), TRUE); ui_entry_add_clear_icon(GTK_ENTRY(e->name)); gtk_entry_set_max_length(GTK_ENTRY(e->name), MAX_NAME_LEN); + gtk_widget_set_tooltip_text(e->name, _("Project name"));
ui_table_add_row(GTK_TABLE(table), 0, label, e->name, NULL);
@@ -153,6 +155,11 @@ void project_new(void) 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); + 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); + gtk_widget_set_tooltip_text(e->file_name, tooltip); + g_free(tooltip); button = gtk_button_new(); g_signal_connect(button, "clicked", G_CALLBACK(on_file_save_button_clicked), e); image = gtk_image_new_from_stock(GTK_STOCK_OPEN, GTK_ICON_SIZE_BUTTON);
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).