comparison src/gtkprefs.c @ 12154:24bde295d755

[gaim-migrate @ 14455] Migrate the old idle reporting preference in a way to cause least confusion committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Sat, 19 Nov 2005 13:52:03 +0000
parents cda86ce5b026
children 762bb28154bf
comparison
equal deleted inserted replaced
12153:abe41ae8dd82 12154:24bde295d755
1897 gaim_prefs_connect_callback(prefs, "/gaim/gtk/smileys/theme", 1897 gaim_prefs_connect_callback(prefs, "/gaim/gtk/smileys/theme",
1898 smiley_theme_pref_cb, NULL); 1898 smiley_theme_pref_cb, NULL);
1899 } 1899 }
1900 1900
1901 void gaim_gtk_prefs_update_old() { 1901 void gaim_gtk_prefs_update_old() {
1902 const char *tmp;
1902 /* Rename some old prefs */ 1903 /* Rename some old prefs */
1903 gaim_prefs_rename("/gaim/gtk/logging/log_ims", "/core/logging/log_ims"); 1904 gaim_prefs_rename("/gaim/gtk/logging/log_ims", "/core/logging/log_ims");
1904 gaim_prefs_rename("/gaim/gtk/logging/log_chats", "/core/logging/log_chats"); 1905 gaim_prefs_rename("/gaim/gtk/logging/log_chats", "/core/logging/log_chats");
1905 gaim_prefs_rename("/core/conversations/placement", 1906 gaim_prefs_rename("/core/conversations/placement",
1906 "/gaim/gtk/conversations/placement"); 1907 "/gaim/gtk/conversations/placement");
1912 * The latter can be removed before 2.0.0 is released, or after that if it's forgotten. */ 1913 * The latter can be removed before 2.0.0 is released, or after that if it's forgotten. */
1913 gaim_prefs_rename_boolean_toggle("/gaim/gtk/conversations/ignore_colors", 1914 gaim_prefs_rename_boolean_toggle("/gaim/gtk/conversations/ignore_colors",
1914 "/gaim/gtk/conversations/show_incoming_formatting"); 1915 "/gaim/gtk/conversations/show_incoming_formatting");
1915 gaim_prefs_rename_boolean_toggle("/gaim/gtk/conversations/ignore_formatting", 1916 gaim_prefs_rename_boolean_toggle("/gaim/gtk/conversations/ignore_formatting",
1916 "/gaim/gtk/conversations/show_incoming_formatting"); 1917 "/gaim/gtk/conversations/show_incoming_formatting");
1918
1919 /* this string pref turned into a boolean, try to be friendly */
1920 tmp = gaim_prefs_get_string("/gaim/gtk/idle/reporting_method");
1921 if (tmp != NULL && !strcmp(tmp, "none")) {
1922 gaim_prefs_set_bool("/gaim/gtk/idle/report", FALSE);
1923 }
1917 1924
1918 /* Remove some no-longer-used prefs */ 1925 /* Remove some no-longer-used prefs */
1919 gaim_prefs_remove("/gaim/gtk/blist/auto_expand_contacts"); 1926 gaim_prefs_remove("/gaim/gtk/blist/auto_expand_contacts");
1920 gaim_prefs_remove("/gaim/gtk/blist/button_style"); 1927 gaim_prefs_remove("/gaim/gtk/blist/button_style");
1921 gaim_prefs_remove("/gaim/gtk/blist/grey_idle_buddies"); 1928 gaim_prefs_remove("/gaim/gtk/blist/grey_idle_buddies");
1943 gaim_prefs_remove("/gaim/gtk/conversations/im/hide_on_send"); 1950 gaim_prefs_remove("/gaim/gtk/conversations/im/hide_on_send");
1944 gaim_prefs_remove("/gaim/gtk/conversations/chat/color_nicks"); 1951 gaim_prefs_remove("/gaim/gtk/conversations/chat/color_nicks");
1945 gaim_prefs_remove("/gaim/gtk/conversations/chat/raise_on_events"); 1952 gaim_prefs_remove("/gaim/gtk/conversations/chat/raise_on_events");
1946 gaim_prefs_remove("/gaim/gtk/conversations/ignore_fonts"); 1953 gaim_prefs_remove("/gaim/gtk/conversations/ignore_fonts");
1947 gaim_prefs_remove("/gaim/gtk/conversations/ignore_font_sizes"); 1954 gaim_prefs_remove("/gaim/gtk/conversations/ignore_font_sizes");
1948 gaim_prefs_remove("/gaim/gtk/idle/method"); 1955 gaim_prefs_remove("/gaim/gtk/idle/reporting_method");
1949 gaim_prefs_remove("/gaim/gtk/logging/individual_logs"); 1956 gaim_prefs_remove("/gaim/gtk/logging/individual_logs");
1950 gaim_prefs_remove("/gaim/gtk/sound/signon"); 1957 gaim_prefs_remove("/gaim/gtk/sound/signon");
1951 gaim_prefs_remove("/gaim/gtk/sound/silent_signon"); 1958 gaim_prefs_remove("/gaim/gtk/sound/silent_signon");
1952 gaim_prefs_remove("/gaim/gtk/away/queue_messages"); 1959 gaim_prefs_remove("/gaim/gtk/away/queue_messages");
1953 gaim_prefs_remove("/plugins/gtk/docklet/queue_messages"); 1960 gaim_prefs_remove("/plugins/gtk/docklet/queue_messages");