minor gui nag fix: setting font name in font selection dialog
authorAlfons Hoogervorst <alfons@proteus.demon.nl>
Sun, 3 Jun 2001 22:30:31 +0000 (22:30 +0000)
committerAlfons Hoogervorst <alfons@proteus.demon.nl>
Sun, 3 Jun 2001 22:30:31 +0000 (22:30 +0000)
AUTHORS
ChangeLog.claws
src/prefs_common.c

diff --git a/AUTHORS b/AUTHORS
index 1c52efd..b78ddd4 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -17,6 +17,9 @@ sylpheed-w32 (http://www.gnupg.org/cvs-access.html)
 
 contributors (beside the above; based on Changelog)
 
+       Alte
+       Pierric Descamps
+       Ohmasa
        Stephen Anthony
        HIRAMATSU
        Jorge Van Hemelryck
index 4c04eba..cbfb3d0 100644 (file)
@@ -1,3 +1,10 @@
+2001-06-03 [alfons]
+
+       * src/prefs_common.c:
+
+               (prefs_font_select): pass font name in font entry box to font
+               selection dialog.
+
 2001-06-03 [sergey]
 
        * src/smtp.c (smtp_ok): fixed sock_gets() error handling.
index 336ac40..b6a7520 100644 (file)
@@ -2580,6 +2580,10 @@ static void display_item_key_pressed(GtkWidget *widget, GdkEventKey *event,
 
 static void prefs_font_select(GtkButton *button, GtkEntry *entry)
 {
+       gchar *font_name;
+       
+       g_return_if_fail(entry != NULL);
+       
        if (!font_sel_win) {
                font_sel_win = gtk_font_selection_dialog_new
                        (_("Font selection"));
@@ -2604,6 +2608,9 @@ static void prefs_font_select(GtkButton *button, GtkEntry *entry)
                         GTK_OBJECT(font_sel_win));
        }
 
+       font_name = gtk_editable_get_chars(GTK_EDITABLE(entry), 0, -1);
+       gtk_font_selection_dialog_set_font_name(GTK_FONT_SELECTION_DIALOG(font_sel_win), font_name);
+       g_free(font_name);
        manage_window_set_transient(GTK_WINDOW(font_sel_win));
        gtk_window_set_modal(GTK_WINDOW(font_sel_win), TRUE);
        gtk_widget_grab_focus