Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1907 in orxonox.OLD


Ignore:
Timestamp:
Jun 1, 2004, 4:22:06 PM (20 years ago)
Author:
bensch
Message:

orxonox/branches/gui/console: segmentation fault fixed.

Location:
orxonox/branches/gui/console
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/gui/console/orxonox_console_entry.cc

    r1893 r1907  
    4848    {
    4949      entry = gtk_entry_new();
    50       //g_signal_connect(GTK_ENTRY(entry), "activate", G_CALLBACK(submit), entry);
     50      g_signal_connect(GTK_ENTRY(entry), "activate", G_CALLBACK(submit), this);
    5151      gtk_box_pack_start(GTK_BOX(entrybox), entry, TRUE, TRUE, 5);
    5252     
     
    7272  entry->sendtoLog(entryText);
    7373  gtk_entry_set_text(GTK_ENTRY(entry->entry),"");
    74   entryText;
    7574  return;
    7675}
     
    8079{
    8180  consoleLog->appendText(submitText);
    82 
    8381  return;
    8482}
  • orxonox/branches/gui/console/orxonox_console_log.cc

    r1890 r1907  
    5555void OrxonoxConsoleLog::appendText(char* append)
    5656{
    57   char* buffer = new char;
    58   sprintf (buffer, "%s\n", append);
    5957  if (verbose>=1)
    60     printf ("appending %s\n", append);
    61   gtk_text_buffer_insert_at_cursor (log, buffer, -1);
     58    printf ("appending: %s\n", append);
     59  strcat (append,"\n");
     60  gtk_text_buffer_insert_at_cursor (log, append, -1);
    6261  return;
    6362}
Note: See TracChangeset for help on using the changeset viewer.