Branch: refs/heads/document-messages Author: Matthew Brush matt@geany.org Committer: Matthew Brush matt@geany.org Date: Mon, 04 Jun 2012 21:29:23 Commit: 4e5a7231bf5f7c739b0bc1cd8d55e771cebf7758 https://github.com/geany/geany/commit/4e5a7231bf5f7c739b0bc1cd8d55e771cebf77...
Log Message: ----------- Always select current editor font when showing the font dialog
Previously, choosing another font and then pressing cancel would keep the font selected rather than resetting it to the current editor font because the dialog is not destroyed between showings.
Modified Paths: -------------- src/dialogs.c
Modified: src/dialogs.c 4 files changed, 2 insertions(+), 2 deletions(-) =================================================================== @@ -922,10 +922,10 @@ void dialogs_show_open_font() g_signal_connect(GTK_FONT_SELECTION_DIALOG(ui_widgets.open_fontsel)->apply_button, "clicked", G_CALLBACK(on_font_apply_button_clicked), NULL);
- gtk_font_selection_dialog_set_font_name( - GTK_FONT_SELECTION_DIALOG(ui_widgets.open_fontsel), interface_prefs.editor_font); gtk_window_set_transient_for(GTK_WINDOW(ui_widgets.open_fontsel), GTK_WINDOW(main_widgets.window)); } + gtk_font_selection_dialog_set_font_name( + GTK_FONT_SELECTION_DIALOG(ui_widgets.open_fontsel), interface_prefs.editor_font); /* We make sure the dialog is visible. */ gtk_window_present(GTK_WINDOW(ui_widgets.open_fontsel)); #endif
@@ Diff output truncated at 100000 characters. @@
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: TBD).