/[weechat]/weechat/src/gui/gui-common.c
ViewVC logotype

Diff of /weechat/src/gui/gui-common.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.69 by flashcode, Tue Nov 29 08:23:03 2005 UTC revision 1.70 by flashcode, Tue Dec 6 18:21:00 2005 UTC
# Line 137  gui_window_new (t_gui_window *parent, in Line 137  gui_window_new (t_gui_window *parent, in
137      t_gui_window_tree *ptr_tree, *child1, *child2, *ptr_leaf;      t_gui_window_tree *ptr_tree, *child1, *child2, *ptr_leaf;
138            
139      #ifdef DEBUG      #ifdef DEBUG
140      wee_log_printf ("Creating new window (x:%d, y:%d, width:%d, height:%d)\n",      weechat_log_printf ("Creating new window (x:%d, y:%d, width:%d, height:%d)\n",
141                      x, y, width, height);                          x, y, width, height);
142      #endif      #endif
143            
144      if (parent)      if (parent)
# Line 353  gui_buffer_new (t_gui_window *window, vo Line 353  gui_buffer_new (t_gui_window *window, vo
353      t_gui_buffer *new_buffer, *ptr_buffer;      t_gui_buffer *new_buffer, *ptr_buffer;
354            
355      #ifdef DEBUG      #ifdef DEBUG
356      wee_log_printf ("Creating new buffer\n");      weechat_log_printf ("Creating new buffer\n");
357      #endif      #endif
358            
359      /* use first buffer if no server was assigned to this buffer */      /* use first buffer if no server was assigned to this buffer */
# Line 665  gui_buffer_free (t_gui_buffer *buffer, i Line 665  gui_buffer_free (t_gui_buffer *buffer, i
665  }  }
666    
667  /*  /*
668   * gui_new_line: create new line for a buffer   * gui_line_new: create new line for a buffer
669   */   */
670    
671  t_gui_line *  t_gui_line *
672  gui_new_line (t_gui_buffer *buffer)  gui_line_new (t_gui_buffer *buffer)
673  {  {
674      t_gui_line *new_line, *ptr_line;      t_gui_line *new_line, *ptr_line;
675            
# Line 693  gui_new_line (t_gui_buffer *buffer) Line 693  gui_new_line (t_gui_buffer *buffer)
693      }      }
694      else      else
695      {      {
696          wee_log_printf (_("Not enough memory for new line\n"));          weechat_log_printf (_("Not enough memory for new line\n"));
697          return NULL;          return NULL;
698      }      }
699            
# Line 708  gui_new_line (t_gui_buffer *buffer) Line 708  gui_new_line (t_gui_buffer *buffer)
708          buffer->lines = ptr_line;          buffer->lines = ptr_line;
709          ptr_line->prev_line = NULL;          ptr_line->prev_line = NULL;
710          buffer->num_lines--;          buffer->num_lines--;
         //if (buffer->first_line_displayed)  
711          gui_draw_buffer_chat (buffer, 1);          gui_draw_buffer_chat (buffer, 1);
712      }      }
713            
# Line 774  gui_add_to_line (t_gui_buffer *buffer, i Line 773  gui_add_to_line (t_gui_buffer *buffer, i
773      if (buffer->line_complete)      if (buffer->line_complete)
774      {      {
775          buffer->line_complete = 0;          buffer->line_complete = 0;
776          if (!gui_new_line (buffer))          if (!gui_line_new (buffer))
777              return;              return;
778      }      }
779            
# Line 880  gui_printf_internal (t_gui_buffer *buffe Line 879  gui_printf_internal (t_gui_buffer *buffe
879            
880          if (buffer == NULL)          if (buffer == NULL)
881          {          {
882              wee_log_printf ("WARNING: gui_printf_internal without buffer! This is a bug, "              weechat_log_printf ("WARNING: gui_printf_internal without buffer! This is a bug, "
883                              "please send to developers - thanks\n");                                  "please send to developers - thanks\n");
884              return;              return;
885          }          }
886                    
# Line 1045  gui_infobar_printf (int time_displayed, Line 1044  gui_infobar_printf (int time_displayed,
1044              gui_draw_buffer_infobar (gui_current_window->buffer, 1);              gui_draw_buffer_infobar (gui_current_window->buffer, 1);
1045          }          }
1046          else          else
1047              wee_log_printf (_("Not enough memory for infobar message\n"));              weechat_log_printf (_("Not enough memory for infobar message\n"));
1048      }      }
1049            
1050      if (buf2)      if (buf2)
# Line 1616  gui_buffer_move_to_number (t_gui_window Line 1615  gui_buffer_move_to_number (t_gui_window
1615  void  void
1616  gui_window_print_log (t_gui_window *window)  gui_window_print_log (t_gui_window *window)
1617  {  {
1618      wee_log_printf ("[window (addr:0x%X)]\n", window);      weechat_log_printf ("[window (addr:0x%X)]\n", window);
1619      wee_log_printf ("  win_x . . . . . . . : %d\n",   window->win_x);      weechat_log_printf ("  win_x . . . . . . . : %d\n",   window->win_x);
1620      wee_log_printf ("  win_y . . . . . . . : %d\n",   window->win_y);      weechat_log_printf ("  win_y . . . . . . . : %d\n",   window->win_y);
1621      wee_log_printf ("  win_width . . . . . : %d\n",   window->win_width);      weechat_log_printf ("  win_width . . . . . : %d\n",   window->win_width);
1622      wee_log_printf ("  win_height. . . . . : %d\n",   window->win_height);      weechat_log_printf ("  win_height. . . . . : %d\n",   window->win_height);
1623      wee_log_printf ("  win_width_pct . . . : %d\n",   window->win_width_pct);      weechat_log_printf ("  win_width_pct . . . : %d\n",   window->win_width_pct);
1624      wee_log_printf ("  win_height_pct. . . : %d\n",   window->win_height_pct);      weechat_log_printf ("  win_height_pct. . . : %d\n",   window->win_height_pct);
1625      wee_log_printf ("  win_chat_x. . . . . : %d\n",   window->win_chat_x);      weechat_log_printf ("  win_chat_x. . . . . : %d\n",   window->win_chat_x);
1626      wee_log_printf ("  win_chat_y. . . . . : %d\n",   window->win_chat_y);      weechat_log_printf ("  win_chat_y. . . . . : %d\n",   window->win_chat_y);
1627      wee_log_printf ("  win_chat_width. . . : %d\n",   window->win_chat_width);      weechat_log_printf ("  win_chat_width. . . : %d\n",   window->win_chat_width);
1628      wee_log_printf ("  win_chat_height . . : %d\n",   window->win_chat_height);      weechat_log_printf ("  win_chat_height . . : %d\n",   window->win_chat_height);
1629      wee_log_printf ("  win_chat_cursor_x . : %d\n",   window->win_chat_cursor_x);      weechat_log_printf ("  win_chat_cursor_x . : %d\n",   window->win_chat_cursor_x);
1630      wee_log_printf ("  win_chat_cursor_y . : %d\n",   window->win_chat_cursor_y);      weechat_log_printf ("  win_chat_cursor_y . : %d\n",   window->win_chat_cursor_y);
1631      wee_log_printf ("  win_nick_x. . . . . : %d\n",   window->win_nick_x);      weechat_log_printf ("  win_nick_x. . . . . : %d\n",   window->win_nick_x);
1632      wee_log_printf ("  win_nick_y. . . . . : %d\n",   window->win_nick_y);      weechat_log_printf ("  win_nick_y. . . . . : %d\n",   window->win_nick_y);
1633      wee_log_printf ("  win_nick_width. . . : %d\n",   window->win_nick_width);      weechat_log_printf ("  win_nick_width. . . : %d\n",   window->win_nick_width);
1634      wee_log_printf ("  win_nick_height . . : %d\n",   window->win_nick_height);      weechat_log_printf ("  win_nick_height . . : %d\n",   window->win_nick_height);
1635      wee_log_printf ("  win_nick_start. . . : %d\n",   window->win_nick_start);      weechat_log_printf ("  win_nick_start. . . : %d\n",   window->win_nick_start);
1636      wee_log_printf ("  win_title . . . . . : 0x%X\n", window->win_title);      weechat_log_printf ("  win_title . . . . . : 0x%X\n", window->win_title);
1637      wee_log_printf ("  win_chat. . . . . . : 0x%X\n", window->win_chat);      weechat_log_printf ("  win_chat. . . . . . : 0x%X\n", window->win_chat);
1638      wee_log_printf ("  win_nick. . . . . . : 0x%X\n", window->win_nick);      weechat_log_printf ("  win_nick. . . . . . : 0x%X\n", window->win_nick);
1639      wee_log_printf ("  win_status. . . . . : 0x%X\n", window->win_status);      weechat_log_printf ("  win_status. . . . . : 0x%X\n", window->win_status);
1640      wee_log_printf ("  win_infobar . . . . : 0x%X\n", window->win_infobar);      weechat_log_printf ("  win_infobar . . . . : 0x%X\n", window->win_infobar);
1641      wee_log_printf ("  win_input . . . . . : 0x%X\n", window->win_input);      weechat_log_printf ("  win_input . . . . . : 0x%X\n", window->win_input);
1642      wee_log_printf ("  win_separator . . . : 0x%X\n", window->win_separator);      weechat_log_printf ("  win_separator . . . : 0x%X\n", window->win_separator);
1643      wee_log_printf ("  textview_chat . . . : 0x%X\n", window->textview_chat);      weechat_log_printf ("  textview_chat . . . : 0x%X\n", window->textview_chat);
1644      wee_log_printf ("  textbuffer_chat . . : 0x%X\n", window->textbuffer_chat);      weechat_log_printf ("  textbuffer_chat . . : 0x%X\n", window->textbuffer_chat);
1645      wee_log_printf ("  texttag_chat. . . . : 0x%X\n", window->texttag_chat);      weechat_log_printf ("  texttag_chat. . . . : 0x%X\n", window->texttag_chat);
1646      wee_log_printf ("  textview_nicklist . : 0x%X\n", window->textview_nicklist);      weechat_log_printf ("  textview_nicklist . : 0x%X\n", window->textview_nicklist);
1647      wee_log_printf ("  textbuffer_nicklist : 0x%X\n", window->textbuffer_nicklist);      weechat_log_printf ("  textbuffer_nicklist : 0x%X\n", window->textbuffer_nicklist);
1648      wee_log_printf ("  dcc_first . . . . . : 0x%X\n", window->dcc_first);      weechat_log_printf ("  dcc_first . . . . . : 0x%X\n", window->dcc_first);
1649      wee_log_printf ("  dcc_selected. . . . : 0x%X\n", window->dcc_selected);      weechat_log_printf ("  dcc_selected. . . . : 0x%X\n", window->dcc_selected);
1650      wee_log_printf ("  dcc_last_displayed. : 0x%X\n", window->dcc_last_displayed);      weechat_log_printf ("  dcc_last_displayed. : 0x%X\n", window->dcc_last_displayed);
1651      wee_log_printf ("  buffer. . . . . . . : 0x%X\n", window->buffer);      weechat_log_printf ("  buffer. . . . . . . : 0x%X\n", window->buffer);
1652      wee_log_printf ("  first_line_displayed: %d\n",   window->first_line_displayed);      weechat_log_printf ("  first_line_displayed: %d\n",   window->first_line_displayed);
1653      wee_log_printf ("  start_line. . . . . : 0x%X\n", window->start_line);      weechat_log_printf ("  start_line. . . . . : 0x%X\n", window->start_line);
1654      wee_log_printf ("  start_line_pos. . . : %d\n",   window->start_line_pos);      weechat_log_printf ("  start_line_pos. . . : %d\n",   window->start_line_pos);
1655      wee_log_printf ("  prev_window . . . . : 0x%X\n", window->prev_window);      weechat_log_printf ("  prev_window . . . . : 0x%X\n", window->prev_window);
1656      wee_log_printf ("  next_window . . . . : 0x%X\n", window->next_window);      weechat_log_printf ("  next_window . . . . : 0x%X\n", window->next_window);
1657            
1658  }  }
1659    
# Line 1668  gui_buffer_print_log (t_gui_buffer *buff Line 1667  gui_buffer_print_log (t_gui_buffer *buff
1667      t_gui_line *ptr_line;      t_gui_line *ptr_line;
1668      int num;      int num;
1669            
1670      wee_log_printf ("[buffer (addr:0x%X)]\n", buffer);      weechat_log_printf ("[buffer (addr:0x%X)]\n", buffer);
1671      wee_log_printf ("  num_displayed. . . . : %d\n",   buffer->num_displayed);      weechat_log_printf ("  num_displayed. . . . : %d\n",   buffer->num_displayed);
1672      wee_log_printf ("  number . . . . . . . : %d\n",   buffer->number);      weechat_log_printf ("  number . . . . . . . : %d\n",   buffer->number);
1673      wee_log_printf ("  server . . . . . . . : 0x%X\n", buffer->server);      weechat_log_printf ("  server . . . . . . . : 0x%X\n", buffer->server);
1674      wee_log_printf ("  all_servers. . . . . : %d\n",   buffer->all_servers);      weechat_log_printf ("  all_servers. . . . . : %d\n",   buffer->all_servers);
1675      wee_log_printf ("  channel. . . . . . . : 0x%X\n", buffer->channel);      weechat_log_printf ("  channel. . . . . . . : 0x%X\n", buffer->channel);
1676      wee_log_printf ("  dcc. . . . . . . . . : %d\n",   buffer->dcc);      weechat_log_printf ("  dcc. . . . . . . . . : %d\n",   buffer->dcc);
1677      wee_log_printf ("  lines. . . . . . . . : 0x%X\n", buffer->lines);      weechat_log_printf ("  lines. . . . . . . . : 0x%X\n", buffer->lines);
1678      wee_log_printf ("  last_line. . . . . . : 0x%X\n", buffer->last_line);      weechat_log_printf ("  last_line. . . . . . : 0x%X\n", buffer->last_line);
1679      wee_log_printf ("  last_read_line . . . : 0x%X\n", buffer->last_read_line);      weechat_log_printf ("  last_read_line . . . : 0x%X\n", buffer->last_read_line);
1680      wee_log_printf ("  num_lines. . . . . . : %d\n",   buffer->num_lines);      weechat_log_printf ("  num_lines. . . . . . : %d\n",   buffer->num_lines);
1681      wee_log_printf ("  line_complete. . . . : %d\n",   buffer->line_complete);      weechat_log_printf ("  line_complete. . . . : %d\n",   buffer->line_complete);
1682      wee_log_printf ("  notify_level . . . . : %d\n",   buffer->notify_level);      weechat_log_printf ("  notify_level . . . . : %d\n",   buffer->notify_level);
1683      wee_log_printf ("  log_filename . . . . : '%s'\n", buffer->log_filename);      weechat_log_printf ("  log_filename . . . . : '%s'\n", buffer->log_filename);
1684      wee_log_printf ("  log_file . . . . . . : 0x%X\n", buffer->log_file);      weechat_log_printf ("  log_file . . . . . . : 0x%X\n", buffer->log_file);
1685      wee_log_printf ("  has_input. . . . . . : %d\n",   buffer->has_input);      weechat_log_printf ("  has_input. . . . . . : %d\n",   buffer->has_input);
1686      wee_log_printf ("  input_buffer . . . . : '%s'\n", buffer->input_buffer);      weechat_log_printf ("  input_buffer . . . . : '%s'\n", buffer->input_buffer);
1687      wee_log_printf ("  input_buffer_alloc . : %d\n",   buffer->input_buffer_alloc);      weechat_log_printf ("  input_buffer_alloc . : %d\n",   buffer->input_buffer_alloc);
1688      wee_log_printf ("  input_buffer_size. . : %d\n",   buffer->input_buffer_size);      weechat_log_printf ("  input_buffer_size. . : %d\n",   buffer->input_buffer_size);
1689      wee_log_printf ("  input_buffer_length. : %d\n",   buffer->input_buffer_length);      weechat_log_printf ("  input_buffer_length. : %d\n",   buffer->input_buffer_length);
1690      wee_log_printf ("  input_buffer_pos . . : %d\n",   buffer->input_buffer_pos);      weechat_log_printf ("  input_buffer_pos . . : %d\n",   buffer->input_buffer_pos);
1691      wee_log_printf ("  input_buffer_1st_disp: %d\n",   buffer->input_buffer_1st_display);      weechat_log_printf ("  input_buffer_1st_disp: %d\n",   buffer->input_buffer_1st_display);
1692      wee_log_printf ("  history. . . . . . . : 0x%X\n", buffer->history);      weechat_log_printf ("  history. . . . . . . : 0x%X\n", buffer->history);
1693      wee_log_printf ("  last_history . . . . : 0x%X\n", buffer->last_history);      weechat_log_printf ("  last_history . . . . : 0x%X\n", buffer->last_history);
1694      wee_log_printf ("  ptr_history. . . . . : 0x%X\n", buffer->ptr_history);      weechat_log_printf ("  ptr_history. . . . . : 0x%X\n", buffer->ptr_history);
1695      wee_log_printf ("  prev_buffer. . . . . : 0x%X\n", buffer->prev_buffer);      weechat_log_printf ("  prev_buffer. . . . . : 0x%X\n", buffer->prev_buffer);
1696      wee_log_printf ("  next_buffer. . . . . : 0x%X\n", buffer->next_buffer);      weechat_log_printf ("  next_buffer. . . . . : 0x%X\n", buffer->next_buffer);
1697      wee_log_printf ("\n");      weechat_log_printf ("\n");
1698      wee_log_printf ("  => last 100 lines:\n");      weechat_log_printf ("  => last 100 lines:\n");
1699            
1700      num = 0;      num = 0;
1701      ptr_line = buffer->last_line;      ptr_line = buffer->last_line;
# Line 1713  gui_buffer_print_log (t_gui_buffer *buff Line 1712  gui_buffer_print_log (t_gui_buffer *buff
1712      while (ptr_line)      while (ptr_line)
1713      {      {
1714          num--;          num--;
1715          wee_log_printf ("       line N-%05d: %s\n",          weechat_log_printf ("       line N-%05d: %s\n",
1716                          num,                              num,
1717                          (ptr_line->data) ? ptr_line->data : "(empty)");                              (ptr_line->data) ? ptr_line->data : "(empty)");
1718                    
1719          ptr_line = ptr_line->next_line;          ptr_line = ptr_line->next_line;
1720      }      }

Legend:
Removed from v.1.69  
changed lines
  Added in v.1.70

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26