Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. /*
  2.  * Copyright 2009 Mark Benjamin <netsurf-browser.org.MarkBenjamin@dfgh.net>
  3.  *
  4.  * This file is part of NetSurf, http://www.netsurf-browser.org/
  5.  *
  6.  * NetSurf is free software; you can redistribute it and/or modify
  7.  * it under the terms of the GNU General Public License as published by
  8.  * the Free Software Foundation; version 2 of the License.
  9.  *
  10.  * NetSurf is distributed in the hope that it will be useful,
  11.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.  * GNU General Public License for more details.
  14.  *
  15.  * You should have received a copy of the GNU General Public License
  16.  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  17.  */
  18.  
  19. #include <stdbool.h>
  20. #include <string.h>
  21.  
  22. #include "utils/log.h"
  23.  
  24. /* callback functions for search implementation */
  25. static void gui_search_set_status(bool found, void *p);
  26. static void gui_search_set_hourglass(bool active, void *p);
  27. static void gui_search_add_recent(const char *string, void *p);
  28. static void gui_search_set_forward_state(bool active, void *p);
  29. static void gui_search_set_back_state(bool active, void *p);
  30.  
  31. /**
  32. * Change the displayed search status.
  33. * \param found  search pattern matched in text
  34. * \param p the pointer sent to search_verify_new() / search_create_context()
  35. */
  36. void gui_search_set_status(bool found, void *p)
  37. {
  38. }
  39.  
  40. /**
  41. * display hourglass while searching
  42. * \param active start/stop indicator
  43. * \param p the pointer sent to search_verify_new() / search_create_context()
  44. */
  45. void gui_search_set_hourglass(bool active, void *p)
  46. {
  47. }
  48.  
  49. /**
  50. * add search string to recent searches list
  51. * \param string search pattern
  52. * \param p the pointer sent to search_verify_new() / search_create_context()
  53. */
  54. void gui_search_add_recent(const char *string, void *p)
  55. {
  56. }
  57.  
  58. /**
  59. * activate search forwards button in gui
  60. * \param active activate/inactivate
  61. * \param p the pointer sent to search_verify_new() / search_create_context()
  62. */
  63. void gui_search_set_forward_state(bool active, void *p)
  64. {
  65. }
  66.  
  67. /**
  68. * activate search forwards button in gui
  69. * \param active activate/inactivate
  70. * \param p the pointer sent to search_verify_new() / search_create_context()
  71. */
  72. void gui_search_set_back_state(bool active, void *p)
  73. {
  74. }
  75.