Mercurial > pidgin
comparison src/about.c @ 9006:bffe8d1adb8b
[gaim-migrate @ 9782]
This tries to fix that click on about's imhtml and random selection bug.
It fails.
It's somewhat less noticable about now though, you have to scroll and then
click, and instead of just click.
committer: Tailor Script <tailor@pidgin.im>
author | Tim Ringenbach <marv@pidgin.im> |
---|---|
date | Sat, 22 May 2004 04:39:44 +0000 |
parents | 92d57a8971b0 |
children | 68712f777fa4 |
comparison
equal
deleted
inserted
replaced
9005:230cf4032e3d | 9006:bffe8d1adb8b |
---|---|
47 GtkWidget *label; | 47 GtkWidget *label; |
48 GtkWidget *sw; | 48 GtkWidget *sw; |
49 GtkWidget *text; | 49 GtkWidget *text; |
50 GtkWidget *bbox; | 50 GtkWidget *bbox; |
51 GtkWidget *button; | 51 GtkWidget *button; |
52 GtkTextIter iter; | |
52 char *str, *labeltext; | 53 char *str, *labeltext; |
53 | 54 |
54 if (about != NULL) | 55 if (about != NULL) |
55 return; | 56 return; |
56 | 57 |
215 "<BR>", NULL); | 216 "<BR>", NULL); |
216 gtk_imhtml_append_text(GTK_IMHTML(text), str, GTK_IMHTML_NO_SCROLL); | 217 gtk_imhtml_append_text(GTK_IMHTML(text), str, GTK_IMHTML_NO_SCROLL); |
217 g_free(str); | 218 g_free(str); |
218 | 219 |
219 gtk_adjustment_set_value(gtk_scrolled_window_get_vadjustment(GTK_SCROLLED_WINDOW(sw)), 0); | 220 gtk_adjustment_set_value(gtk_scrolled_window_get_vadjustment(GTK_SCROLLED_WINDOW(sw)), 0); |
220 | 221 gtk_text_buffer_get_start_iter(gtk_text_view_get_buffer(GTK_TEXT_VIEW(text)), &iter); |
222 gtk_text_buffer_place_cursor(gtk_text_view_get_buffer(GTK_TEXT_VIEW(text)), &iter); | |
223 | |
221 /* Close Button */ | 224 /* Close Button */ |
222 bbox = gtk_hbutton_box_new(); | 225 bbox = gtk_hbutton_box_new(); |
223 gtk_button_box_set_layout(GTK_BUTTON_BOX(bbox), GTK_BUTTONBOX_END); | 226 gtk_button_box_set_layout(GTK_BUTTON_BOX(bbox), GTK_BUTTONBOX_END); |
224 gtk_box_pack_start(GTK_BOX(vbox), bbox, FALSE, FALSE, 0); | 227 gtk_box_pack_start(GTK_BOX(vbox), bbox, FALSE, FALSE, 0); |
225 | 228 |