Commit 9f5905ab5aa13f78b06ba4dbf665d86261d36371

Authored by perry.werneck@gmail.com
1 parent b8b2fc19

Salvando configuracao de cores

Showing 1 changed file with 11 additions and 1 deletions   Show diff stats
src/gtk/colors.c
... ... @@ -317,7 +317,17 @@
317 317  
318 318 if(gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_ACCEPT)
319 319 {
320   - // Acepted, save in configuration file
  320 + // Accepted, save in configuration file
  321 + int f;
  322 + GString *str = g_string_new("");
  323 + for(f=0;f<V3270_COLOR_COUNT;f++)
  324 + {
  325 + if(f)
  326 + g_string_append_c(str,',');
  327 + g_string_append_printf(str,"%s",gdk_color_to_string(v3270_get_color(widget,f)));
  328 + }
  329 + set_string_to_config("terminal","colors","%s",str->str);
  330 + g_string_free(str,TRUE);
321 331 }
322 332 else
323 333 {
... ...