summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2001-05-03 23:35:48 +0000
committerJose Antonio Ortega Ruiz <jao@gnu.org>2001-05-03 23:35:48 +0000
commitcc232117b722d2e1c2f347183e00ff174e7e7eaa (patch)
treeb2f90f9717b9cd2baa97f136094157f97e7eabcb
parentc9c662689acb86d42c1cc99cff1944bf226e756e (diff)
downloadmdk-cc232117b722d2e1c2f347183e00ff174e7e7eaa.tar.gz
mdk-cc232117b722d2e1c2f347183e00ff174e7e7eaa.tar.bz2
(change_font_) setting current font on fontsel dialog when available
-rw-r--r--mixgtk/mixgtk_fontsel.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/mixgtk/mixgtk_fontsel.c b/mixgtk/mixgtk_fontsel.c
index 5f24776..4467925 100644
--- a/mixgtk/mixgtk_fontsel.c
+++ b/mixgtk/mixgtk_fontsel.c
@@ -1,7 +1,7 @@
/* -*-c-*- -------------- mixgtk_fontsel.c :
* Implementation of the functions declared in mixgtk_fontsel.h
* ------------------------------------------------------------------
- * Last change: Time-stamp: "2001-04-29 16:40:33 jao"
+ * Last change: Time-stamp: "2001-05-04 01:09:20 jao"
* ------------------------------------------------------------------
* Copyright (C) 2001 Free Software Foundation, Inc.
*
@@ -57,8 +57,17 @@ static winfo infos_[WIDGET_NO_];
void
change_font_ (mixgtk_widget_id_t widget)
{
+ winfo *info = (winfo *) g_hash_table_lookup (winfo_,
+ GINT_TO_POINTER (widget));
+ g_assert (info);
widget_ = widget;
+
+ if (info->font)
+ gtk_font_selection_dialog_set_font_name
+ (GTK_FONT_SELECTION_DIALOG (fontsel_dialog_), info->font);
+
gtk_widget_show (fontsel_dialog_);
+
}