Mercurial > pidgin.yaz
comparison src/gtkdialogs.c @ 10175:53410b84336f
[gaim-migrate @ 11290]
I wrote a helper function that creates the imhtml and toolbar and
puts them in a widget and what not. And I changed some places
to use this. And I removed some whitespace from log.c. And I
changed the conversation colors back to normal. And I'm not
committing everything in my tree, so let me know if this doesn't
compile. And that's all.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 14 Nov 2004 01:52:25 +0000 |
parents | cf45c2a6a7cf |
children | 17dcff7a5c77 |
comparison
equal
deleted
inserted
replaced
10174:8dd4535dd359 | 10175:53410b84336f |
---|---|
162 { | 162 { |
163 GtkWidget *hbox; | 163 GtkWidget *hbox; |
164 GtkWidget *vbox; | 164 GtkWidget *vbox; |
165 GtkWidget *logo; | 165 GtkWidget *logo; |
166 GtkWidget *label; | 166 GtkWidget *label; |
167 GtkWidget *sw; | 167 GtkWidget *frame; |
168 GtkWidget *text; | 168 GtkWidget *text; |
169 GtkWidget *bbox; | 169 GtkWidget *bbox; |
170 GtkWidget *button; | 170 GtkWidget *button; |
171 GtkTextIter iter; | 171 GtkTextIter iter; |
172 GString *str; | 172 GString *str; |
201 gtk_label_set_line_wrap(GTK_LABEL(label), TRUE); | 201 gtk_label_set_line_wrap(GTK_LABEL(label), TRUE); |
202 gtk_misc_set_alignment(GTK_MISC(label), 0.5, 0); | 202 gtk_misc_set_alignment(GTK_MISC(label), 0.5, 0); |
203 gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0); | 203 gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0); |
204 g_free(labeltext); | 204 g_free(labeltext); |
205 | 205 |
206 sw = gtk_scrolled_window_new(NULL, NULL); | 206 frame = gaim_gtk_create_imhtml(FALSE, &text, NULL); |
207 gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(sw), | 207 gtk_box_pack_start(GTK_BOX(vbox), frame, TRUE, TRUE, 0); |
208 GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS); | |
209 gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(sw), GTK_SHADOW_IN); | |
210 gtk_box_pack_start(GTK_BOX(vbox), sw, TRUE, TRUE, 0); | |
211 | |
212 text = gtk_imhtml_new(NULL, NULL); | |
213 gtk_container_add(GTK_CONTAINER(sw), text); | |
214 gaim_setup_imhtml(text); | |
215 | 208 |
216 str = g_string_sized_new(4096); | 209 str = g_string_sized_new(4096); |
217 | 210 |
218 g_string_append(str, | 211 g_string_append(str, |
219 _("Gaim is a modular messaging client capable of using " | 212 _("Gaim is a modular messaging client capable of using " |
314 g_string_append(str, "<BR/>"); | 307 g_string_append(str, "<BR/>"); |
315 | 308 |
316 gtk_imhtml_append_text(GTK_IMHTML(text), str->str, GTK_IMHTML_NO_SCROLL); | 309 gtk_imhtml_append_text(GTK_IMHTML(text), str->str, GTK_IMHTML_NO_SCROLL); |
317 g_string_free(str, TRUE); | 310 g_string_free(str, TRUE); |
318 | 311 |
319 gtk_adjustment_set_value(gtk_scrolled_window_get_vadjustment(GTK_SCROLLED_WINDOW(sw)), 0); | |
320 gtk_text_buffer_get_start_iter(gtk_text_view_get_buffer(GTK_TEXT_VIEW(text)), &iter); | 312 gtk_text_buffer_get_start_iter(gtk_text_view_get_buffer(GTK_TEXT_VIEW(text)), &iter); |
321 gtk_text_buffer_place_cursor(gtk_text_view_get_buffer(GTK_TEXT_VIEW(text)), &iter); | 313 gtk_text_buffer_place_cursor(gtk_text_view_get_buffer(GTK_TEXT_VIEW(text)), &iter); |
322 | 314 |
323 /* Close Button */ | 315 /* Close Button */ |
324 bbox = gtk_hbutton_box_new(); | 316 bbox = gtk_hbutton_box_new(); |