forked from AuroraMiddleware/gtk
infobar: Remove _get_{action,content}_area()
Accessors like these are weird to have and we can add widgets to the content area via gtk_container_add() as well as add widgets to the action area via gtk_info_bar_add_action_widget().
This commit is contained in:
parent
78a5bf8e21
commit
52979a0e93
@ -1867,8 +1867,6 @@ gtk_info_bar_set_default_response
|
||||
gtk_info_bar_response
|
||||
gtk_info_bar_set_message_type
|
||||
gtk_info_bar_get_message_type
|
||||
gtk_info_bar_get_action_area
|
||||
gtk_info_bar_get_content_area
|
||||
gtk_info_bar_get_show_close_button
|
||||
gtk_info_bar_set_show_close_button
|
||||
gtk_info_bar_get_revealed
|
||||
|
@ -623,42 +623,6 @@ gtk_info_bar_add_action_widget (GtkInfoBar *info_bar,
|
||||
gtk_container_add (GTK_CONTAINER (priv->action_area), child);
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_info_bar_get_action_area:
|
||||
* @info_bar: a #GtkInfoBar
|
||||
*
|
||||
* Returns the action area of @info_bar.
|
||||
*
|
||||
* Returns: (transfer none): the action area
|
||||
*/
|
||||
GtkWidget*
|
||||
gtk_info_bar_get_action_area (GtkInfoBar *info_bar)
|
||||
{
|
||||
GtkInfoBarPrivate *priv = gtk_info_bar_get_instance_private (info_bar);
|
||||
|
||||
g_return_val_if_fail (GTK_IS_INFO_BAR (info_bar), NULL);
|
||||
|
||||
return priv->action_area;
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_info_bar_get_content_area:
|
||||
* @info_bar: a #GtkInfoBar
|
||||
*
|
||||
* Returns the content area of @info_bar.
|
||||
*
|
||||
* Returns: (transfer none): the content area
|
||||
*/
|
||||
GtkWidget*
|
||||
gtk_info_bar_get_content_area (GtkInfoBar *info_bar)
|
||||
{
|
||||
GtkInfoBarPrivate *priv = gtk_info_bar_get_instance_private (info_bar);
|
||||
|
||||
g_return_val_if_fail (GTK_IS_INFO_BAR (info_bar), NULL);
|
||||
|
||||
return priv->content_area;
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_info_bar_add_button:
|
||||
* @info_bar: a #GtkInfoBar
|
||||
|
@ -53,10 +53,6 @@ GDK_AVAILABLE_IN_ALL
|
||||
GtkWidget *gtk_info_bar_new_with_buttons (const gchar *first_button_text,
|
||||
...);
|
||||
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GtkWidget *gtk_info_bar_get_action_area (GtkInfoBar *info_bar);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GtkWidget *gtk_info_bar_get_content_area (GtkInfoBar *info_bar);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
void gtk_info_bar_add_action_widget (GtkInfoBar *info_bar,
|
||||
GtkWidget *child,
|
||||
|
Loading…
Reference in New Issue
Block a user