Class: Gtk::InfoBar
- Inherits:
-
Object
- Object
- Gtk::InfoBar
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#action_area ⇒ Gtk::Box
Returns the action area of info_bar.
-
#add_action_widget(child, response_id) ⇒ nil
Add an activatable widget to the action area of a Gtk::InfoBar, connecting a signal handler that will emit the Gtk::InfoBar::response signal on the message area when the widget is activated.
-
#add_button(button_text, response_id) ⇒ Gtk::Button
Adds a button with the given text and sets things up so that clicking the button will emit the “response” signal with the given response_id.
-
#add_buttons(first_button_text, array) ⇒ nil
Adds more buttons, same as calling gtk_info_bar_add_button() repeatedly.
-
#content_area ⇒ Gtk::Box
Returns the content area of info_bar.
-
#default_response=(response_id) ⇒ nil
Sets the last widget in the info bar’s action area with the given response_id as the default widget for the dialog.
-
#message_type ⇒ Gtk::MessageType
The type of the message.
-
#message_type=(message_type) ⇒ Gtk::MessageType
The type of the message.
-
#new ⇒ Gtk::Widget
Creates a new Gtk::InfoBar object.
-
#new_with_buttons(first_button_text, array) ⇒ Gtk::Widget
Creates a new Gtk::InfoBar with buttons.
-
#response(response_id) ⇒ nil
Emits the “response” signal with the given response_id.
-
#revealed ⇒ TrueClass
The current value of the GtkInfoBar:revealed property.
- #revealed=(revealed) ⇒ TrueClass
-
#revealed? ⇒ TrueClass
Revealed.
-
#set_response_sensitive(response_id, setting) ⇒ nil
Calls gtk_widget_set_sensitive (widget, setting) for each widget in the info bars’s action area with the given response_id.
-
#show_close_button ⇒ TrueClass
Returns whether the widget will display a standard close button.
-
#show_close_button=(show_close_button) ⇒ TrueClass
Whether to include a standard close button.
-
#show_close_button? ⇒ TrueClass
Whether to include a standard close button.
Instance Method Details
#action_area ⇒ Gtk::Box
Returns the action area of info_bar.
#add_action_widget(child, response_id) ⇒ nil
Add an activatable widget to the action area of a Gtk::InfoBar, connecting a signal handler that will emit the Gtk::InfoBar::response signal on the message area when the widget is activated. The widget is appended to the end of the message areas action area.
#add_button(button_text, response_id) ⇒ Gtk::Button
Adds a button with the given text and sets things up so that clicking the button will emit the “response” signal with the given response_id. The button is appended to the end of the info bars’s action area. The button widget is returned, but usually you don’t need it. that was added
#add_buttons(first_button_text, array) ⇒ nil
Adds more buttons, same as calling gtk_info_bar_add_button() repeatedly. The variable argument list should be nil-terminated as with gtk_info_bar_new_with_buttons(). Each button must have both text and response ID.
#content_area ⇒ Gtk::Box
Returns the content area of info_bar.
#default_response=(response_id) ⇒ nil
Sets the last widget in the info bar’s action area with the given response_id as the default widget for the dialog. Pressing “Enter” normally activates the default widget.
Note that this function currently requires info_bar to be added to a widget hierarchy.
#message_type ⇒ Gtk::MessageType
The type of the message.
The type may be used to determine the appearance of the info bar.
#message_type=(message_type) ⇒ Gtk::MessageType
The type of the message.
The type may be used to determine the appearance of the info bar.
#new ⇒ Gtk::Widget
Creates a new Gtk::InfoBar object.
#new_with_buttons(first_button_text, array) ⇒ Gtk::Widget
Creates a new Gtk::InfoBar with buttons. Button text/response ID pairs should be listed, with a nil pointer ending the list. Button text can be either a stock ID such as %GTK_STOCK_OK, or some arbitrary text. A response ID can be any positive number, or one of the values in the Gtk::ResponseType enumeration. If the user clicks one of these dialog buttons, GtkInfoBar will emit the “response” signal with the corresponding response ID.
#response(response_id) ⇒ nil
Emits the “response” signal with the given response_id.
#revealed ⇒ TrueClass
Returns the current value of the GtkInfoBar:revealed property.
#revealed=(revealed) ⇒ TrueClass
#revealed? ⇒ TrueClass
Returns revealed.
#set_response_sensitive(response_id, setting) ⇒ nil
Calls gtk_widget_set_sensitive (widget, setting) for each widget in the info bars’s action area with the given response_id. A convenient way to sensitize/desensitize dialog buttons.
#show_close_button ⇒ TrueClass
Returns whether the widget will display a standard close button.
#show_close_button=(show_close_button) ⇒ TrueClass
Whether to include a standard close button.
#show_close_button? ⇒ TrueClass
Whether to include a standard close button.