mssh-gconf.c 535 B

1234567891011121314151617181920212223
  1. #include <vte/vte.h>
  2. #include "mssh-gconf.h"
  3. #include "mssh-window.h"
  4. #include "mssh-terminal.h"
  5. void mssh_gconf_notify_font(GConfClient *client, guint cnxn_id,
  6. GConfEntry *entry, gpointer data)
  7. {
  8. GConfValue *value;
  9. const gchar *font;
  10. int i;
  11. MSSHWindow *window = MSSH_WINDOW(data);
  12. value = gconf_entry_get_value(entry);
  13. font = gconf_value_get_string(value);
  14. for(i = 0; i < window->terminals->len; i++)
  15. {
  16. vte_terminal_set_font_from_string(VTE_TERMINAL(g_array_index(
  17. window->terminals, MSSHTerminal*, i)), font);
  18. }
  19. }