projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove font information from cell attributes and sheet model.
[pspp-builds.git]
/
src
/
ui
/
gui
/
data-editor.c
diff --git
a/src/ui/gui/data-editor.c
b/src/ui/gui/data-editor.c
index d4cbae1e6716640ea5d2f85c878c91422c410e9f..c242f764f5ad02dac73c92227ff664f2a8912ccf 100644
(file)
--- a/
src/ui/gui/data-editor.c
+++ b/
src/ui/gui/data-editor.c
@@
-1038,9
+1038,19
@@
static void
fonts_activate (GtkMenuItem *menuitem, gpointer data)
{
struct data_editor *de = data;
fonts_activate (GtkMenuItem *menuitem, gpointer data)
{
struct data_editor *de = data;
+ PangoFontDescription *current_font;
+ gchar *font_name;
GtkWidget *dialog =
gtk_font_selection_dialog_new (_("Font Selection"));
GtkWidget *dialog =
gtk_font_selection_dialog_new (_("Font Selection"));
+
+ current_font = GTK_WIDGET(de->data_editor)->style->font_desc;
+ font_name = pango_font_description_to_string (current_font);
+
+ gtk_font_selection_dialog_set_font_name (dialog, font_name);
+
+ g_free (font_name);
+
gtk_window_set_transient_for (GTK_WINDOW (dialog),
GTK_WINDOW (get_widget_assert (de->xml,
"data_editor")));
gtk_window_set_transient_for (GTK_WINDOW (dialog),
GTK_WINDOW (get_widget_assert (de->xml,
"data_editor")));