[geany/geany] 4e5a72: Always select current editor font when showing the font dialog

Matthew Brush git-noreply at xxxxx
Mon Jun 4 21:29:23 UTC 2012

Branch:      refs/heads/master
Author:      Matthew Brush <matt at geany.org>
Committer:   Matthew Brush <matt at geany.org>
Date:        Mon, 04 Jun 2012 21:29:23
Commit:      4e5a7231bf5f7c739b0bc1cd8d55e771cebf7758

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:

Modified: src/dialogs.c
4 files changed, 2 insertions(+), 2 deletions(-)
@@ -922,10 +922,10 @@ void dialogs_show_open_font()
 					"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. */

@@ Diff output truncated at 100000 characters. @@

This E-Mail was brought to you by github_commit_mail.py (Source: TBD).

More information about the Commits mailing list