Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1908 in orxonox.OLD for orxonox


Ignore:
Timestamp:
Jun 2, 2004, 12:55:48 AM (20 years ago)
Author:
bensch
Message:

orxonox/branches/gui/console: now appending from top, so that new lines are directly visible.

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

Legend:

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

    r1893 r1908  
    4141  vbox_main = gtk_vbox_new(FALSE, 5);
    4242    {
     43      gtk_box_pack_start(GTK_BOX(vbox_main), entry.createEntry(), FALSE, FALSE, 0);
    4344      gtk_box_pack_start(GTK_BOX(vbox_main), log.createLog(), TRUE, TRUE, 0);
    44       gtk_box_pack_start(GTK_BOX(vbox_main), entry.createEntry(), FALSE, FALSE, 0);
    4545      entry.setLog(&log);
    4646    }
  • orxonox/branches/gui/console/orxonox_console_log.cc

    r1907 r1908  
    4747    gtk_container_add(GTK_CONTAINER(scrollframe), logView);
    4848    gtk_container_add(GTK_CONTAINER(frame),scrollframe);
    49     gtk_text_buffer_set_text (log, "Orxonox Console:\n", -1);
     49    gtk_text_buffer_set_text (log, "Orxonox Console started.\n", -1);
    5050
    5151  }
     
    5555void OrxonoxConsoleLog::appendText(char* append)
    5656{
     57  GtkTextIter iter;
    5758  if (verbose>=1)
    5859    printf ("appending: %s\n", append);
    5960  strcat (append,"\n");
     61  gtk_text_buffer_get_start_iter (log, &iter);
     62  gtk_text_buffer_place_cursor (log, &iter);
    6063  gtk_text_buffer_insert_at_cursor (log, append, -1);
    6164  return;
Note: See TracChangeset for help on using the changeset viewer.