| 29 #include "signals.h" |
29 #include "signals.h" |
| 30 #include "version.h" |
30 #include "version.h" |
| 31 |
31 |
| 32 #include "gtkimhtml.h" |
32 #include "gtkimhtml.h" |
| 33 #include "gtkplugin.h" |
33 #include "gtkplugin.h" |
| |
34 #include "gtkprefs.h" |
| 34 #include "gtkutils.h" |
35 #include "gtkutils.h" |
| 35 |
36 |
| 36 #define TIMESTAMP_PLUGIN_ID "gtk-timestamp" |
37 #define TIMESTAMP_PLUGIN_ID "gtk-timestamp" |
| 37 |
38 |
| 38 /* minutes externally, seconds internally, and milliseconds in preferences */ |
39 /* minutes externally, seconds internally, and milliseconds in preferences */ |
| 61 gtk_text_view_get_line_yrange( |
62 gtk_text_view_get_line_yrange( |
| 62 GTK_TEXT_VIEW(imhtml), &iter, &y, &height); |
63 GTK_TEXT_VIEW(imhtml), &iter, &y, &height); |
| 63 if (((y + height) - (rect.y + rect.height)) > height && |
64 if (((y + height) - (rect.y + rect.height)) > height && |
| 64 gtk_text_buffer_get_char_count(buffer)) { |
65 gtk_text_buffer_get_char_count(buffer)) { |
| 65 gboolean smooth = purple_prefs_get_bool( |
66 gboolean smooth = purple_prefs_get_bool( |
| 66 "/purple/gtk/conversations/use_smooth_scrolling"); |
67 PIDGIN_PREFS_ROOT "/conversations/use_smooth_scrolling"); |
| 67 gtk_imhtml_scroll_to_end(GTK_IMHTML(imhtml), smooth); |
68 gtk_imhtml_scroll_to_end(GTK_IMHTML(imhtml), smooth); |
| 68 } |
69 } |
| 69 } |
70 } |
| 70 |
71 |
| 71 static gboolean |
72 static gboolean |