Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Someone
Sunday, July 22nd, 2007 at 11:31:10am UTC 

  1. patch hunk:
  2.  
  3. Index: apps/settings_menu.c
  4. ===================================================================
  5. --- apps/settings_menu.c        (revision 12132)
  6. +++ apps/settings_menu.c        (working copy)
  7. @@ -1196,8 +1196,15 @@
  8.  #ifdef CONFIG_BACKLIGHT
  9.  static bool set_bl_filter_first_keypress(void)
  10.  {
  11. -    bool result = set_bool( str(LANG_BACKLIGHT_FILTER_FIRST_KEYPRESS),
  12. -                            &global_settings.bl_filter_first_keypress );
  13. +    static const struct opt_items names[] = {
  14. +        { STR(LANG_BACKLIGHT_FILTER_MODE0) },
  15. +        { STR(LANG_BACKLIGHT_FILTER_MODE1) },
  16. +        { STR(LANG_BACKLIGHT_FILTER_MODE2) },
  17. +        { STR(LANG_BACKLIGHT_FILTER_MODE3) }
  18. +    };
  19. +    bool result = set_option(str(LANG_BACKLIGHT_FILTER_FIRST_KEYPRESS),
  20. +                             &global_settings.bl_filter_first_keypress,
  21. +                             INT, names, 4, NULL );
  22.      set_backlight_filter_keypress(global_settings.bl_filter_first_keypress);
  23.      return result;
  24.  }
  25.  
  26. rej file:
  27.  
  28. --- apps/menus/settings_menu.c.orig     2007-07-22 03:00:00.000000000 +0200
  29. +++ apps/menus/settings_menu.c  2007-07-22 03:00:00.000000000 +0200
  30. ***************
  31. *** 1196,1203 ****
  32.   #ifdef CONFIG_BACKLIGHT
  33.   static bool set_bl_filter_first_keypress(void)
  34.   {
  35. -     bool result = set_bool( str(LANG_BACKLIGHT_FILTER_FIRST_KEYPRESS),
  36. -                             &global_settings.bl_filter_first_keypress );
  37.       set_backlight_filter_keypress(global_settings.bl_filter_first_keypress);
  38.       return result;
  39.   }
  40. --- 1196,1210 ----
  41.   #ifdef CONFIG_BACKLIGHT
  42.   static bool set_bl_filter_first_keypress(void)
  43.   {
  44. +     static const struct opt_items names[] = {
  45. +         { STR(LANG_BACKLIGHT_FILTER_MODE0) },
  46. +         { STR(LANG_BACKLIGHT_FILTER_MODE1) },
  47. +         { STR(LANG_BACKLIGHT_FILTER_MODE2) },
  48. +         { STR(LANG_BACKLIGHT_FILTER_MODE3) }
  49. +     };
  50. +     bool result = set_option(str(LANG_BACKLIGHT_FILTER_FIRST_KEYPRESS),
  51. +                              &global_settings.bl_filter_first_keypress,
  52. +                              INT, names, 4, NULL );
  53.       set_backlight_filter_keypress(global_settings.bl_filter_first_keypress);
  54.       return result;
  55.   }

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus
worth-right