From ce575a009a3d39ccdfee964961012a6b45bcc2b7 Mon Sep 17 00:00:00 2001 From: GMT 2002 Tony Gale Date: Sun, 27 Oct 2002 11:44:25 +0000 Subject: [PATCH] minor cleanups, remove refs to gtk_menu_append Sun Oct 27 11:41:37 GMT 2002 Tony Gale * docs/tutorial/gtk-tut.sgml: minor cleanups, remove refs to gtk_menu_append *docs/faq/gtk-faq.sgml: remove ref to gtk_menu_append --- ChangeLog | 7 ++++++ ChangeLog.pre-2-10 | 7 ++++++ ChangeLog.pre-2-2 | 7 ++++++ ChangeLog.pre-2-4 | 7 ++++++ ChangeLog.pre-2-6 | 7 ++++++ ChangeLog.pre-2-8 | 7 ++++++ docs/faq/gtk-faq.sgml | 4 ++-- docs/tutorial/gtk-tut.sgml | 38 +++++++++++++++++++++++------- examples/progressbar/progressbar.c | 2 +- 9 files changed, 74 insertions(+), 12 deletions(-) diff --git a/ChangeLog b/ChangeLog index ef0fd3f90..cb3381850 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Sun Oct 27 11:41:37 GMT 2002 Tony Gale + + * docs/tutorial/gtk-tut.sgml: + minor cleanups, remove refs to gtk_menu_append + + *docs/faq/gtk-faq.sgml: remove ref to gtk_menu_append + Fri Oct 25 23:36:30 2002 Soeren Sandmann * gtk/gtkmenu.c: Change NAVIGATION_REGION_OVERSHOOT from 50 to 5. diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index ef0fd3f90..cb3381850 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,10 @@ +Sun Oct 27 11:41:37 GMT 2002 Tony Gale + + * docs/tutorial/gtk-tut.sgml: + minor cleanups, remove refs to gtk_menu_append + + *docs/faq/gtk-faq.sgml: remove ref to gtk_menu_append + Fri Oct 25 23:36:30 2002 Soeren Sandmann * gtk/gtkmenu.c: Change NAVIGATION_REGION_OVERSHOOT from 50 to 5. diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index ef0fd3f90..cb3381850 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,10 @@ +Sun Oct 27 11:41:37 GMT 2002 Tony Gale + + * docs/tutorial/gtk-tut.sgml: + minor cleanups, remove refs to gtk_menu_append + + *docs/faq/gtk-faq.sgml: remove ref to gtk_menu_append + Fri Oct 25 23:36:30 2002 Soeren Sandmann * gtk/gtkmenu.c: Change NAVIGATION_REGION_OVERSHOOT from 50 to 5. diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index ef0fd3f90..cb3381850 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,10 @@ +Sun Oct 27 11:41:37 GMT 2002 Tony Gale + + * docs/tutorial/gtk-tut.sgml: + minor cleanups, remove refs to gtk_menu_append + + *docs/faq/gtk-faq.sgml: remove ref to gtk_menu_append + Fri Oct 25 23:36:30 2002 Soeren Sandmann * gtk/gtkmenu.c: Change NAVIGATION_REGION_OVERSHOOT from 50 to 5. diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index ef0fd3f90..cb3381850 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,10 @@ +Sun Oct 27 11:41:37 GMT 2002 Tony Gale + + * docs/tutorial/gtk-tut.sgml: + minor cleanups, remove refs to gtk_menu_append + + *docs/faq/gtk-faq.sgml: remove ref to gtk_menu_append + Fri Oct 25 23:36:30 2002 Soeren Sandmann * gtk/gtkmenu.c: Change NAVIGATION_REGION_OVERSHOOT from 50 to 5. diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index ef0fd3f90..cb3381850 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,10 @@ +Sun Oct 27 11:41:37 GMT 2002 Tony Gale + + * docs/tutorial/gtk-tut.sgml: + minor cleanups, remove refs to gtk_menu_append + + *docs/faq/gtk-faq.sgml: remove ref to gtk_menu_append + Fri Oct 25 23:36:30 2002 Soeren Sandmann * gtk/gtkmenu.c: Change NAVIGATION_REGION_OVERSHOOT from 50 to 5. diff --git a/docs/faq/gtk-faq.sgml b/docs/faq/gtk-faq.sgml index 82f3e8b48..9fd5ca536 100644 --- a/docs/faq/gtk-faq.sgml +++ b/docs/faq/gtk-faq.sgml @@ -2,7 +2,7 @@ - August 24th 2002 + October 27th 2002 GTK+ FAQ @@ -2531,7 +2531,7 @@ separation line in a menu, just insert an empty menu item: menuitem = gtk_menu_item_new(); -gtk_menu_append(GTK_MENU(menu), menuitem); +gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem); gtk_widget_show(menuitem); diff --git a/docs/tutorial/gtk-tut.sgml b/docs/tutorial/gtk-tut.sgml index 6f76b2223..6002da3ee 100755 --- a/docs/tutorial/gtk-tut.sgml +++ b/docs/tutorial/gtk-tut.sgml @@ -5,7 +5,7 @@ - August 26, 2002 + October 27, 2002 GTK+ 2.0 Tutorial @@ -28,6 +28,26 @@ + + +Tutorial Availability + +A copy of this tutorial in SGML and HTML is distributed with each +source code release of GTK+. For binary distributions, please check with +you vendor. + +A copy is available online for reference at www.gtk.org/tutorial. + +A packaged verion of this tutorial is available from + +ftp.gtk.org/pub/gtk/tutorial which contains the tutorial in +various different formats. This +package is primary for those people wanting to have the tutorial +available for offline reference and for printing. + + + Introduction @@ -3840,7 +3860,7 @@ values to indicate the direction in which the progress bar moves: As well as indicating the amount of progress that has occured, the progress bar may be set to just indicate that there is some activity. This can be useful in situations where progress cannot be measured against -a value range. To following function indicates that some progress has been +a value range. The following function indicates that some progress has been made. @@ -4038,7 +4058,7 @@ int main( int argc, gtk_widget_show (separator); /* rows, columns, homogeneous */ - table = gtk_table_new (2, 2, FALSE); + table = gtk_table_new (2, 3, FALSE); gtk_box_pack_start (GTK_BOX (vbox), table, FALSE, TRUE, 0); gtk_widget_show (table); @@ -4174,7 +4194,7 @@ more of the following flags. -GTK_DIALOG_DESTROY_WITH_PARENTS +GTK_DIALOG_DESTROY_WITH_PARENT ensures that the dialog window is destroyed together with the specified parent. @@ -8269,7 +8289,7 @@ item with a label already packed into it, and the other just creates a blank menu item. Once you've created a menu item you have to put it into a menu. This -is done using the function gtk_menu_append. In order to capture when +is done using the function gtk_menu_shelll_append. In order to capture when the item is selected by the user, we need to connect to the activate signal in the usual way. So, if we wanted to create a standard File menu, with the options Open, Save, and @@ -8284,9 +8304,9 @@ standard File menu, with the options Open, quit_item = gtk_menu_item_new_with_label ("Quit"); /* Add them to the menu */ - gtk_menu_append (GTK_MENU (file_menu), open_item); - gtk_menu_append (GTK_MENU (file_menu), save_item); - gtk_menu_append (GTK_MENU (file_menu), quit_item); + gtk_menu_shell_append (GTK_MENU_SHELL (file_menu), open_item); + gtk_menu_shell_append (GTK_MENU_SHELL (file_menu), save_item); + gtk_menu_shell_append (GTK_MENU_SHELL (file_menu), quit_item); /* Attach the callback functions to the activate signal */ g_signal_connect_swapped (G_OBJECT (open_item), "activate", @@ -8365,7 +8385,7 @@ attached: Use multiple calls to gtk_menu_item_new() for each item you -wish to have on your menu. And use gtk_menu_append() to put each of +wish to have on your menu. And use gtk_menu_shell_append() to put each of these new items on to the menu. diff --git a/examples/progressbar/progressbar.c b/examples/progressbar/progressbar.c index 7420d24d7..f4a9aec8e 100644 --- a/examples/progressbar/progressbar.c +++ b/examples/progressbar/progressbar.c @@ -140,7 +140,7 @@ int main( int argc, gtk_widget_show (separator); /* rows, columns, homogeneous */ - table = gtk_table_new (2, 2, FALSE); + table = gtk_table_new (2, 3, FALSE); gtk_box_pack_start (GTK_BOX (vbox), table, FALSE, TRUE, 0); gtk_widget_show (table); -- 2.43.2