class SearchEntryDemo

Entry/Search Entry

GtkEntry allows to display icons and progress information.
This demo shows how to use these features in a search entry.

Public Class Methods

new(main_window) click to toggle source
# File gtk3/sample/gtk-demo/search_entry.rb, line 11
def initialize(main_window)
  @main_window = main_window

  initialize_window
  initialize_box
  initialize_entry
  initialize_menu
  @menu.attach_to_widget(@entry)
  initialize_notebook
  @window.signal_connect("destroy") { finish_search }
end

Public Instance Methods

run() click to toggle source
# File gtk3/sample/gtk-demo/search_entry.rb, line 23
def run
  if !@window.visible?
    @window.show_all
  else
    @window.destroy
  end
  @window
end