diff options
author | flavio <fdanesse@gmail.com> | 2013-10-24 15:55:48 (GMT) |
---|---|---|
committer | flavio <fdanesse@gmail.com> | 2013-10-24 15:55:48 (GMT) |
commit | 2cf979b0df0090656a79e69d42b529b54f25a43e (patch) | |
tree | d043a60c13074f85ce96117a86e125933fd44338 | |
parent | 6646b15ecb331b6ab9a1d04279decf85e8ec7cac (diff) |
Correcciones
-rw-r--r-- | WorkPanel.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/WorkPanel.py b/WorkPanel.py index 6cd9237..c4140c9 100644 --- a/WorkPanel.py +++ b/WorkPanel.py @@ -439,7 +439,17 @@ class Notebook_SourceView(Gtk.Notebook): ### Código. elif accion == "Formato": - dialogo = DialogoFormato(parent_window = self.get_toplevel()) + scrolled = paginas[self.get_current_page()] + source = scrolled.get_children()[0] + + description = source.get_pango_context().get_font_description() + + nombre = description.get_family() + size = description.get_size()/1000 + + dialogo = DialogoFormato( + parent_window = self.get_toplevel(), + fuente = nombre, tamanio = size) respuesta = dialogo.run() |