Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1878 in orxonox.OLD for orxonox/branches/gui


Ignore:
Timestamp:
May 8, 2004, 12:38:26 AM (21 years ago)
Author:
bensch
Message:

orxonox/branches/gui/console: made log-window scrollable

File:
1 edited

Legend:

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

    r1877 r1878  
    2929GtkWidget* OrxonoxConsoleLog::createLog()
    3030{
    31   frame = gtk_frame_new ("Console Log:");
     31  //frame = gtk_frame_new ("Console Log:");
     32  frame = gtk_scrolled_window_new (NULL, NULL);
     33
     34  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (frame),
     35                                  GTK_POLICY_AUTOMATIC,
     36                                  GTK_POLICY_AUTOMATIC);
     37
     38  gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (frame),
     39                                       GTK_SHADOW_IN);
    3240  gtk_container_set_border_width (GTK_CONTAINER(frame), 5);
    33   {
    34     logbox = gtk_hbox_new (FALSE, 5);
    35     {
    36       log = gtk_text_view_new();
    37       gtk_box_pack_start(GTK_BOX(logbox), log, TRUE, TRUE, 5);
    38       gtk_text_view_set_editable(GTK_TEXT_VIEW(log), FALSE);
    39      
    40     }
    41     gtk_container_add(GTK_CONTAINER(frame), logbox);
    42   }
     41 
     42  log = gtk_text_view_new();
     43  gtk_text_view_set_editable(GTK_TEXT_VIEW(log), FALSE);
     44  gtk_container_add(GTK_CONTAINER(frame), log);
     45 
    4346  return (frame);
    4447}
Note: See TracChangeset for help on using the changeset viewer.