Branch: refs/heads/master Author: Frank Lanitz frank@frank.uvena.de Committer: GitHub noreply@github.com Date: Wed, 22 Nov 2017 21:20:00 UTC Commit: 4050f61334d7e02159ef7eae71682af175e64b15 https://github.com/geany/geany-plugins/commit/4050f61334d7e02159ef7eae71682a...
Log Message: ----------- Merge pull request #649 from b4n/workbench/small-stuff
Various small fixes for the Workbench plugin
Modified Paths: -------------- workbench/src/dialogs.c workbench/src/sidebar.c
Modified: workbench/src/dialogs.c 8 lines changed, 3 insertions(+), 5 deletions(-) =================================================================== @@ -337,7 +337,7 @@ gboolean dialogs_workbench_settings(WORKBENCH *workbench) { gint result; GtkWidget *w_rescan_projects_on_open; - GtkWidget *dialog, *label, *content_area; + GtkWidget *dialog, *content_area; GtkWidget *vbox, *hbox, *table; GtkDialogFlags flags; gboolean changed, rescan_projects_on_open, rescan_projects_on_open_old; @@ -358,10 +358,8 @@ gboolean dialogs_workbench_settings(WORKBENCH *workbench) gtk_table_set_row_spacings(GTK_TABLE(table), 5); gtk_table_set_col_spacings(GTK_TABLE(table), 10);
- label = gtk_label_new(_("Rescan all projects on open:")); - gtk_misc_set_alignment(GTK_MISC(label), 0, 0); - w_rescan_projects_on_open = gtk_check_button_new(); - ui_table_add_row(GTK_TABLE(table), 0, label, w_rescan_projects_on_open, NULL); + w_rescan_projects_on_open = gtk_check_button_new_with_mnemonic(_("_Rescan all projects on open")); + ui_table_add_row(GTK_TABLE(table), 0, w_rescan_projects_on_open, NULL); gtk_widget_set_tooltip_text(w_rescan_projects_on_open, _("If the option is activated (default), then all projects will be re-scanned" " on opening of the workbench."));
Modified: workbench/src/sidebar.c 3 lines changed, 2 insertions(+), 1 deletions(-) =================================================================== @@ -595,7 +595,8 @@ static void sidebar_update_workbench(GtkTreeIter *iter, gint *position) gchar text[200];
count = workbench_get_project_count(wb_globals.opened_wb); - length = g_snprintf(text, sizeof(text), _("%s: %u Projects"), + length = g_snprintf(text, sizeof(text), + g_dngettext(GETTEXT_PACKAGE, "%s: %u Project", "%s: %u Projects", count), workbench_get_name(wb_globals.opened_wb), count); if (length < (gint)(sizeof(text)-1) && workbench_is_modified(wb_globals.opened_wb)) {
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).