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:
@ -36,7 +36,7 @@ int main( int argc,
|
||||
/* Set a handler for delete_event that immediately
|
||||
* exits GTK. */
|
||||
g_signal_connect (GTK_OBJECT (window), "delete_event",
|
||||
GTK_SIGNAL_FUNC (delete_event), NULL);
|
||||
GTK_SIGNAL_FUNC (delete_event), NULL);
|
||||
|
||||
/* Sets the border width of the window. */
|
||||
gtk_container_set_border_width (GTK_CONTAINER (window), 20);
|
||||
@ -53,11 +53,11 @@ int main( int argc,
|
||||
/* When the button is clicked, we call the "callback" function
|
||||
* with a pointer to "button 1" as its argument */
|
||||
g_signal_connect (GTK_OBJECT (button), "clicked",
|
||||
GTK_SIGNAL_FUNC (callback), (gpointer) "button 1");
|
||||
GTK_SIGNAL_FUNC (callback), (gpointer) "button 1");
|
||||
|
||||
|
||||
/* Insert button 1 into the upper left quadrant of the table */
|
||||
gtk_table_attach_defaults (GTK_TABLE(table), button, 0, 1, 0, 1);
|
||||
gtk_table_attach_defaults (GTK_TABLE (table), button, 0, 1, 0, 1);
|
||||
|
||||
gtk_widget_show (button);
|
||||
|
||||
@ -68,9 +68,9 @@ int main( int argc,
|
||||
/* When the button is clicked, we call the "callback" function
|
||||
* with a pointer to "button 2" as its argument */
|
||||
g_signal_connect (GTK_OBJECT (button), "clicked",
|
||||
GTK_SIGNAL_FUNC (callback), (gpointer) "button 2");
|
||||
GTK_SIGNAL_FUNC (callback), (gpointer) "button 2");
|
||||
/* Insert button 2 into the upper right quadrant of the table */
|
||||
gtk_table_attach_defaults (GTK_TABLE(table), button, 1, 2, 0, 1);
|
||||
gtk_table_attach_defaults (GTK_TABLE (table), button, 1, 2, 0, 1);
|
||||
|
||||
gtk_widget_show (button);
|
||||
|
||||
@ -80,11 +80,11 @@ int main( int argc,
|
||||
/* When the button is clicked, we call the "delete_event" function
|
||||
* and the program exits */
|
||||
g_signal_connect (GTK_OBJECT (button), "clicked",
|
||||
GTK_SIGNAL_FUNC (delete_event), NULL);
|
||||
GTK_SIGNAL_FUNC (delete_event), NULL);
|
||||
|
||||
/* Insert the quit button into the both
|
||||
* lower quadrants of the table */
|
||||
gtk_table_attach_defaults (GTK_TABLE(table), button, 0, 2, 1, 2);
|
||||
gtk_table_attach_defaults (GTK_TABLE (table), button, 0, 2, 1, 2);
|
||||
|
||||
gtk_widget_show (button);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user