[gtk+] Update docs to match actual API
- From: Matthias Clasen <matthiasc src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk+] Update docs to match actual API
- Date: Mon, 8 Jun 2009 10:17:17 -0400 (EDT)
commit a01a4df697321efb127a9162c5252305e6456df2
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Jun 8 09:54:59 2009 -0400
Update docs to match actual API
Remove references to gtk_info_bar_set_contents(), and update
the example to use gtk_info_bar_get_content_area().
---
gtk/gtkinfobar.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/gtk/gtkinfobar.c b/gtk/gtkinfobar.c
index cf1cb42..ee3b33a 100644
--- a/gtk/gtkinfobar.c
+++ b/gtk/gtkinfobar.c
@@ -67,7 +67,7 @@
* gtk_info_bar_new_with_buttons(). The sensitivity of action widgets
* can be controlled with gtk_info_bar_set_response_sensitive().
* To add widgets to the main content area of a #GtkInfoBar, use
- * gtk_info_bar_set_contents().
+ * gtk_info_bar_get_content_area() and add your widgets to the container.
*
* Similar to #GtkMessageDialog, the contents of a #GtkInfoBar can by
* classified as error message, warning, informational message, etc,
@@ -82,7 +82,8 @@
* gtk_widget_set_no_show_all (info_bar, TRUE);
* message_label = gtk_label_new ("");
* gtk_widget_show (message_label);
- * gtk_info_bar_set_contents (GTK_INFO_BAR (info_bar), message_label);
+ * content_area = gtk_info_bar_get_content_area (GTK_INFO_BAR (info_bar));
+ * gtk_container_add (GTK_CONTAINER (content_area), message_label);
* gtk_info_bar_add_button (GTK_INFO_BAR (info_bar),
* GTK_STOCK_OK, GTK_RESPONSE_OK);
* g_signal_connect (info_bar, "response",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]