summaryrefslogtreecommitdiff
path: root/src/gui/gtk
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-12-01 17:09:23 +0100
committerSebastien Helleu <flashcode@flashtux.org>2011-12-01 17:09:23 +0100
commit0765f113d0e582e69550bb5ef8c1a66e9ce68dfd (patch)
tree9e84848dca285fa882ad4b1cf1cf23d089efd1f0 /src/gui/gtk
parentfcbf297a14b5d7f19515595ffd58276c3c2b531d (diff)
downloadweechat-0765f113d0e582e69550bb5ef8c1a66e9ce68dfd.zip
core: replace some C++ comments by C comments
Diffstat (limited to 'src/gui/gtk')
-rw-r--r--src/gui/gtk/gui-gtk-chat.c11
-rw-r--r--src/gui/gtk/gui-gtk-main.c4
2 files changed, 8 insertions, 7 deletions
diff --git a/src/gui/gtk/gui-gtk-chat.c b/src/gui/gtk/gui-gtk-chat.c
index ddbf062da..e78f9e23b 100644
--- a/src/gui/gtk/gui-gtk-chat.c
+++ b/src/gui/gtk/gui-gtk-chat.c
@@ -381,9 +381,11 @@ gui_chat_draw (struct t_gui_buffer *buffer, int erase)
void
gui_chat_draw_line (struct t_gui_buffer *buffer, struct t_gui_line *line)
{
- //struct t_gui_window *ptr_win;
- //unsigned char *message_without_color;
- //GtkTextIter start, end;
+ /*
+ struct t_gui_window *ptr_win;
+ unsigned char *message_without_color;
+ GtkTextIter start, end;
+ */
(void) buffer;
(void) line;
@@ -401,8 +403,7 @@ gui_chat_draw_line (struct t_gui_buffer *buffer, struct t_gui_line *line)
"\n", -1);
gtk_text_buffer_get_bounds (GUI_WINDOW_OBJECTS(ptr_win)->textbuffer_chat,
&start, &end);
- // TODO
- //gtk_text_buffer_apply_tag (ptr_win->textbuffer_chat, ptr_win->texttag_chat, &start, &end);
+ gtk_text_buffer_apply_tag (ptr_win->textbuffer_chat, ptr_win->texttag_chat, &start, &end);
free (message_without_color);
}
}
diff --git a/src/gui/gtk/gui-gtk-main.c b/src/gui/gtk/gui-gtk-main.c
index d6a7d0e3d..a36cd291f 100644
--- a/src/gui/gtk/gui-gtk-main.c
+++ b/src/gui/gtk/gui-gtk-main.c
@@ -143,7 +143,7 @@ gui_main_init ()
gtk_widget_show (gui_gtk_scrolledwindow_chat);
gtk_paned_pack1 (GTK_PANED (gui_gtk_hpaned1), gui_gtk_scrolledwindow_chat,
FALSE, TRUE);
- //gtk_box_pack_start (GTK_PANED (hpaned1), scrolledwindow_chat, TRUE, TRUE, 0);
+ /*gtk_box_pack_start (GTK_PANED (hpaned1), scrolledwindow_chat, TRUE, TRUE, 0);*/
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (gui_gtk_scrolledwindow_chat),
GTK_POLICY_NEVER, GTK_POLICY_ALWAYS);
gtk_widget_modify_text (gui_gtk_scrolledwindow_chat, GTK_STATE_NORMAL, &color_fg);
@@ -153,7 +153,7 @@ gui_main_init ()
gtk_widget_show (gui_gtk_scrolledwindow_nick);
gtk_paned_pack2 (GTK_PANED (gui_gtk_hpaned1), gui_gtk_scrolledwindow_nick,
FALSE, TRUE);
- //gtk_box_pack_start (GTK_PANED (hpaned1), scrolledwindow_nick, TRUE, TRUE, 0);
+ /*gtk_box_pack_start (GTK_PANED (hpaned1), scrolledwindow_nick, TRUE, TRUE, 0);*/
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (gui_gtk_scrolledwindow_nick),
GTK_POLICY_NEVER, GTK_POLICY_ALWAYS);
gtk_widget_modify_text (gui_gtk_scrolledwindow_nick, GTK_STATE_NORMAL, &color_fg);