![]() |
![]() |
![]() |
gedit Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Signals |
GeditMessageAreaPrivate; GeditMessageArea; GtkWidget * gedit_message_area_new (void); GtkWidget * gedit_message_area_new_with_buttons (const gchar *first_button_text, ...); void gedit_message_area_set_contents (GeditMessageArea *message_area, GtkWidget *contents); void gedit_message_area_add_action_widget (GeditMessageArea *message_area, GtkWidget *child, gint response_id); GtkWidget * gedit_message_area_add_button (GeditMessageArea *message_area, const gchar *button_text, gint response_id); GtkWidget * gedit_message_area_add_stock_button_with_text (GeditMessageArea *message_area, const gchar *text, const gchar *stock_id, gint response_id); void gedit_message_area_add_buttons (GeditMessageArea *message_area, const gchar *first_button_text, ...); void gedit_message_area_set_response_sensitive (GeditMessageArea *message_area, gint response_id, gboolean setting); void gedit_message_area_set_default_response (GeditMessageArea *message_area, gint response_id); void gedit_message_area_response (GeditMessageArea *message_area, gint response_id);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkBox +----GtkHBox +----GeditMessageArea +----GeditProgressMessageArea
GtkWidget * gedit_message_area_new (void);
Creates a new GeditMessageArea object.
Returns : |
a new GeditMessageArea object |
GtkWidget * gedit_message_area_new_with_buttons (const gchar *first_button_text, ...);
Creates a new GeditMessageArea with buttons. Button text/response ID pairs should be listed, with a NULL 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 GtkResponseType enumeration. If the user clicks one of these dialog buttons, GeditMessageArea will emit the "response" signal with the corresponding response ID.
|
stock ID or text to go in first button, or NULL |
|
response ID for first button, then additional buttons, ending with NULL |
Returns : |
a new GeditMessageArea |
void gedit_message_area_set_contents (GeditMessageArea *message_area, GtkWidget *contents);
Adds the contents
widget to the contents area of GeditMessageArea.
|
a GeditMessageArea |
|
widget you want to add to the contents area |
void gedit_message_area_add_action_widget (GeditMessageArea *message_area, GtkWidget *child, gint response_id);
|
|
|
|
|
GtkWidget * gedit_message_area_add_button (GeditMessageArea *message_area, const gchar *button_text, gint response_id);
Adds a button with the given text (or a stock button, if button_text is a stock ID) 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 message area's action area. The button widget is returned, but usually you don't need it.
|
a GeditMessageArea |
|
text of button, or stock ID |
|
response ID for the button |
Returns : |
the button widget that was added |
GtkWidget * gedit_message_area_add_stock_button_with_text (GeditMessageArea *message_area, const gchar *text, const gchar *stock_id, gint response_id);
Same as gedit_message_area_add_button()
but with a specific text.
|
a GeditMessageArea |
|
the text to visualize in the button |
|
the stock ID of the button |
|
a response ID |
Returns : |
void gedit_message_area_add_buttons (GeditMessageArea *message_area, const gchar *first_button_text, ...);
Adds more buttons, same as calling gedit_message_area_add_button()
repeatedly.
The variable argument list should be NULL-terminated as with
gedit_message_area_new_with_buttons()
. Each button must have both text and response ID.
|
a GeditMessageArea |
|
button text or stock ID |
|
response ID for first button, then more text-response_id pairs |
void gedit_message_area_set_response_sensitive (GeditMessageArea *message_area, gint response_id, gboolean setting);
Calls gtk_widget_set_sensitive (widget, setting) for each widget in the dialog's action area with the given response_id. A convenient way to sensitize/desensitize dialog buttons.
|
a GeditMessageArea |
|
a response ID |
|
TRUE for sensitive |
void gedit_message_area_set_default_response (GeditMessageArea *message_area, gint response_id);
Emits the 'response' signal with the given response_id
.
|
a GeditMessageArea |
|
a response ID |
void gedit_message_area_response (GeditMessageArea *message_area, gint response_id);
|
|
|
"close"
signalvoid user_function (GeditMessageArea *geditmessagearea, gpointer user_data) : Run Last / Action
|
the object which received the signal. |
|
user data set when the signal handler was connected. |
"response"
signalvoid user_function (GeditMessageArea *geditmessagearea, gint arg1, gpointer user_data) : Run Last
|
the object which received the signal. |
|
|
|
user data set when the signal handler was connected. |