Mercurial > pidgin.yaz
comparison pidgin/plugins/timestamp.c @ 16062:07554cc5d090
Rename /purple/gtk preferences back to /gaim/gtk to allow for smooth upgrades
until someone comes up with something cleverererer
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Wed, 11 Apr 2007 13:38:05 +0000 |
parents | 32c366eeeb99 |
children | 3d41d0d7fb9b |
comparison
equal
deleted
inserted
replaced
16061:3b86ad370861 | 16062:07554cc5d090 |
---|---|
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 |