- Timestamp:
- Jun 1, 2004, 4:22:06 PM (21 years ago)
- Location:
- orxonox/branches/gui/console
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/gui/console/orxonox_console_entry.cc
r1893 r1907 48 48 { 49 49 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); 51 51 gtk_box_pack_start(GTK_BOX(entrybox), entry, TRUE, TRUE, 5); 52 52 … … 72 72 entry->sendtoLog(entryText); 73 73 gtk_entry_set_text(GTK_ENTRY(entry->entry),""); 74 entryText;75 74 return; 76 75 } … … 80 79 { 81 80 consoleLog->appendText(submitText); 82 83 81 return; 84 82 } -
orxonox/branches/gui/console/orxonox_console_log.cc
r1890 r1907 55 55 void OrxonoxConsoleLog::appendText(char* append) 56 56 { 57 char* buffer = new char;58 sprintf (buffer, "%s\n", append);59 57 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); 62 61 return; 63 62 }
Note: See TracChangeset
for help on using the changeset viewer.