Trivial formatting fixes to all examples, simple functional fixes to

* docs/tutorial/gtk-tut.sgml, docs/examples/*: Trivial formatting
	fixes to all examples, simple functional fixes to rangewidgets example.
This commit is contained in:
Matthias Clasen
2002-02-19 01:25:26 +00:00
parent c3940d4a07
commit bd73a312f0
51 changed files with 1525 additions and 1448 deletions

View File

@ -26,7 +26,7 @@ int main( int argc,
gtk_widget_set_size_request (GTK_WIDGET (window), 200, 100);
gtk_window_set_title (GTK_WINDOW (window), "GTK Menu Test");
g_signal_connect (GTK_OBJECT (window), "delete_event",
(GtkSignalFunc) gtk_main_quit, NULL);
GTK_SIGNAL_FUNC (gtk_main_quit), NULL);
/* Init the menu-widget, and remember -- never
* gtk_show_widget() the menu widget!!
@ -53,7 +53,8 @@ int main( int argc,
/* Do something interesting when the menuitem is selected */
g_signal_connect_swapped (GTK_OBJECT (menu_items), "activate",
GTK_SIGNAL_FUNC (menuitem_response), (gpointer) g_strdup (buf));
GTK_SIGNAL_FUNC (menuitem_response),
(gpointer) g_strdup (buf));
/* Show the widget */
gtk_widget_show (menu_items);
@ -83,7 +84,8 @@ int main( int argc,
/* Create a button to which to attach menu as a popup */
button = gtk_button_new_with_label ("press me");
g_signal_connect_swapped (GTK_OBJECT (button), "event",
GTK_SIGNAL_FUNC (button_press), GTK_OBJECT (menu));
GTK_SIGNAL_FUNC (button_press),
GTK_OBJECT (menu));
gtk_box_pack_end (GTK_BOX (vbox), button, TRUE, TRUE, 2);
gtk_widget_show (button);